In the DPIRD Weather API swagger page, all time intervals besides "daily" take etoShortCrop and etoTallCrop to source evapotranspiration values (in addition to evapotranspiration which fetches both). The "daily" timeframe only accepts evapotranspirationShortCrop and evapotranspirationTallCrop.
This is not problematic if not querying those variables by name, ie passing them to the values argument of get_dpird_summaries(), but it is an issue when a user passes values = "all" or queries those specific variables.
It gets a bit more complicated as there are internal checks for the variables passed to the values argument (weatherOz throws an error):
The opposite is true for the rest of the time intervals. I have reached out to the eConnect team in hope that the daily naming will match the other time intervals.
Perhaps as a temporary fix, I could add evapotranspirationShortCrop and evapotranspirationTallCrop to the dpird_summary_values dataset/vector as etoShortCrop, etoTallCrop are already included.
In the DPIRD Weather API swagger page, all time intervals besides "daily" take
etoShortCrop
andetoTallCrop
to source evapotranspiration values (in addition toevapotranspiration
which fetches both). The "daily" timeframe only acceptsevapotranspirationShortCrop
andevapotranspirationTallCrop
.This is not problematic if not querying those variables by name, ie passing them to the
values
argument ofget_dpird_summaries()
, but it is an issue when a user passesvalues = "all"
or queries those specific variables.It gets a bit more complicated as there are internal checks for the variables passed to the
values
argument (weatherOz throws an error):And if you pass the short name, the API throws a HTTP 400 error:
The opposite is true for the rest of the time intervals. I have reached out to the eConnect team in hope that the daily naming will match the other time intervals.
Perhaps as a temporary fix, I could add
evapotranspirationShortCrop
andevapotranspirationTallCrop
to thedpird_summary_values
dataset/vector asetoShortCrop
,etoTallCrop
are already included.