Skip to content
Snippets Groups Projects

added 30 year normals

Merged Tucker Gary Siegel requested to merge 30_year_normals into master
10 files
+ 3061
89
Compare changes
  • Side-by-side
  • Inline
Files
10
+ 4
2
@@ -13,10 +13,12 @@ The data in mongodb has the following fields:
* ```max_temps``` - Maximum daily temperature as an array. One element is one day
* ```normal``` - Indicates whether the data is a 30 year normal or not
Go to ```/docs``` to view the Swagger generated API docs
#### API Endpoints
* ```POST /api/:product/:year```
* Required url params: ```product``` and ```year```. Product is the crop (corn and soybean only supported)
* Body requires latitude and longitude
* Required url params: ```product``` and ```year```. Product is the crop (supports corn, soybean, wheat, tomatoes, potatoes, peas, sunflowers, sugar beets, etc.)
* ```product``` must be singular. As in, send "soybean" not "soybeans"
* Body requires ```latitude``` and ```longitude```, ```t_base``` is an optional parameter if a farmer decides to set their own base temperater in fahrenheit
* returns the gdd calculated for that year up to the most recent date of the year. If the year is before the current, the data will cover 01/01 to 12/31. If it is the current year, 01/01 - current date. But the current year is not included
### How to run
Loading