ncss-tech / soilDB

soilDB: Simplified Access to National Cooperative Soil Survey Databases
http://ncss-tech.github.io/soilDB/
GNU General Public License v3.0
81 stars 20 forks source link

`fetchSCAN` upgrades #184

Open brownag opened 3 years ago

brownag commented 3 years ago
brownag commented 2 years ago

A note that now with explicit support for hourly data we should be able to put those data into correct timezone to make accurate datetime objects for data from across multiple timezones.

The StationMetadata should include stationDataTimeZone attribute which can be added to cached SCAN_SNOTEL_metadata data object in the package rather than queried on the fly. This value can be used inside the fetchSCAN internal methods for conversion of each sensor time series within a site https://www.nrcs.usda.gov/wps/portal/wcc/home/dataAccessHelp/webService/webServiceReference/

stationDataTimeZone | BigDecimal | The time zone in which the station collects data. -- | -- | --
dylanbeaudette commented 1 year ago

An example:

This does not work, but close.

https://wcc.sc.egov.usda.gov/reportGenerator/view_csv/customSingleStationReport,metric/daily/2189:CA:SCAN/%7Cid=%22%22%7Cname/POR_BEGIN,POR_END/TAVG::value