Uploaded image for project: 'Cover Crop'
  1. Cover Crop
  2. CCROP-325

Create service endpoint to get growing degree days (independent of decomposition)

XMLWordPrintableJSON

    • Icon: Story Story
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • None
    • None

      Currently GDD calculation is linked to decomposition endpoint. It looks like below

      GET https://fd-api-dev.ncsa.illinois.edu/covercrop/api/decomposition?termination_date=2021-05-05&biomass=772.63&cn_ratio=38.67&dw_dataset_id=71aa6802-4d2f-4a6a-a113-433b4700bd6b

      Here the dw_dataset_id represents the weather files

      We can create an independent endpoint that just uses two inputs: a) start date b) weather file dataset id, and outputs the GDD results. The format can be similar to the decomposition json.

      [{"date": "2021-09-25", "GDD": 14.9}, {"date": "2021-09-26", "GDD": 24.1}, ...]
      

      May be we can return the results for next 365 days, and frontend can decide which ones to display

              sandeeps Sandeep Puthanveetil Satheesan
              vnarah2 Gowtham Naraharisetty
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: