soilDB icon indicating copy to clipboard operation
soilDB copied to clipboard

`fetchSCAN` upgrades

Open brownag opened this issue 3 years ago • 2 comments

  • [x] handle error on timeout etc. gracefully and check other error handling logic is applied consistently (empty objects, try-error result)
  • [x] refactor code involving melt ddply etc #161
  • [ ] consider optimizations for requests to AWDB (Air-Water Database) Web Service
  • [ ] address multiple sensors #14
  • [x] Add support for alternate time intervals (e.g. 'hourly') and other custom parameters in batch interface (#260)
  • [ ] Add StationMetadata.stationDataTimeZone to SCAN_SNOTEL_metadata object
  • [ ] Add support for SNOWLITE stations

brownag avatar May 18 '21 16:05 brownag

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.

brownag avatar Aug 16 '22 22:08 brownag

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

dylanbeaudette avatar Mar 31 '23 22:03 dylanbeaudette