nationalparkservice / EnvironmentalSetting_Toolkit

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

findStation: add indicator for USHCN #1

Closed llnelson closed 6 years ago

llnelson commented 6 years ago

Add USHCN boolean to output data frame

llnelson commented 6 years ago

Chose to match on substring of COOP ID column (6..11). Copied file locally from (FTP link), then removed '#' characters. Note the two online sources files (FTP and CDIAC) are identical. Also, chose not to use a flag value of C.

Source example here: (stations.txt at CDIAC Site) (Docs)


Originally, matching on NAME fields. But, should match on last 6 digits of column 1 (COOP ID) and first 6 chars of SID1.

Also, consider 3 options for hcnFlag: Y, N, C where C indicates a component station