precision-sustainable-ag / dst-econ

Cover Crops Econ DST
https://covercrop-econ.org/
0 stars 0 forks source link

Review 05/19/2023: AirTable and Yield #71

Closed rickhitchcock closed 11 months ago

rickhitchcock commented 1 year ago

(From Ray Massey)

I added to the Airtable/commodities table all the commodities that are currently in F&F dropdown list. I also added prices for them and notes on where the prices were obtained (Note: this is a strange year where prices are currently far different from the RMA prices. But I want to have a referenceable price and most farmers know about RMA prices. Of course, this little factoid does not affect your programming. It is just that as I try to make this ready for prime time I have second thoughts about my default values.). I think this means that you can change the hardcoding to referencing this table.

Rick: The program will now build the Cash Crop list from the Commodities Airtable.

Questions that might arise as this is field tested (knowing them might help how you program):

Rick: Unfortunately, the Airtable API sends data in a random order unless a sort key is provided. For this reason, I’ve added a new column named "order", simply to have a way to sort on the order that you’ve entered the crops.

Rick: The Yield tab appears for any Commodities that have one year, three year, and five year data (which is currently Corn and Soybeans only). We can certainly update the text on this page based on the commodity.

On the Yield tab: