nationalparkservice / EnvironmentalSetting_Toolkit

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

Micro-drought generates erroneous NA #63

Open llnelson opened 2 years ago

llnelson commented 2 years ago

Alex found this when trying vanilla ACIS query for station 29668.

mdsource<-EnvironmentalSettingToolkit::getWxObservations(climateStations = "29668", climateParameters = list("pcpn"), sdate="1981-01-01", duration = "yly", interval = "yly", reduceCodes = "run_le_0.01", metric = "CSP3") mdsource$pcpn_in_runYear[order(mdsource$name)]

md<-EnvironmentalSettingToolkit::getRunCounts(rawCounts = mdsource, runLength = 7, metric = "CSP3") md$cntGERunLength_7[order(md$name)]