nationalparkservice / EnvironmentalSetting_Toolkit

Tools supporting the NPS IMD Environmental Setting protocol
Other
3 stars 2 forks source link

In getStationMetrics(), response dataframe overwritten if no data available #38

Closed llnelson closed 6 years ago

llnelson commented 6 years ago

ACIS response returns string "no data available". Will retain this and add an sapply()-driven request and a nested list cleanup function to be called prior to writing to CSV.

llnelson commented 6 years ago

The sapply() request necessitates an interim cleanup function to format response objects prior to writing out as CSV. Current code for CSP3 (micro-drought) does not use the sapply() request since the forced list formatting is not necessary (i.e. the getRunCount() 'accommodates' missing data automatically).

llnelson commented 6 years ago

Leaving open since need to check if sapply is needed for departure requests

llnelson commented 6 years ago

Confirmed fixed. 20180518.