Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function to upload definitions and summaries from R-Instat to Buckets #90

Open
17 of 19 tasks
lilyclements opened this issue Mar 14, 2024 · 1 comment
Open
17 of 19 tasks

Comments

@lilyclements
Copy link
Collaborator

lilyclements commented Mar 14, 2024

To do to upload the definitions and summaries from R-Instat into buckets:

  1. Define the dialog for someone to set it up.
  2. Build the R function that takes the summary data frame created in our system with the calculation system, and produce an output with the data frame table and json definitions
  3. Write a function which takes the jsons definitions and the summary data frame and uploads them

TODO
Write file to get definitions from R-Instat into json for

  • Annual rain
  • Annual number of rainy days
  • Start rains
  • End rains
  • End season
  • Seasonal length
  • Seasonal rain
  • Seasonal number of rainy days
  • Min/max/mean for min_temperature
  • Min/max/mean for max_temperature
  • Extremes?
  • Crop success
  • Probability season start

Other to do:

  • Define the dialog for someone to set it up.
  • Finish building the R functions
  • Add function to collate the definitions data and R function to send that to the bucket
  • Add in ability in R functions to takes the summary data frame created in our system (only focussed on the definitions so far)
  • Add in functions which reformat from R-Instat to our style in the API
  • Write a function which combines the "add_definitions_to_bucket" for the definitions along with the summary data frame so everything can be done in one line.
@lilyclements
Copy link
Collaborator Author

lilyclements commented Mar 14, 2024

In epicsadata the definitions are now done for all summaries in the annual_rainfall - except for seasonal_n_rainy_days.

In epicsadata the definitions are now done for annual/monthly temperature summaries

I've written up in the "Discussions" on testing this and exploring this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant