DOI-USGS / mda.streams

backend tools for powstreams
Creative Commons Zero v1.0 Universal
3 stars 8 forks source link

Archive ts #226

Closed jordansread closed 8 years ago

jordansread commented 8 years ago

for #223

This was a little funkier than expected and I am not sure if I hit the desired behavior on the head with it.

I did repair two small bugs that ended up in my last PR. Also have tested a number of patterns for replacement/archival, etc.

post_ts(files, 'archive')
preparing to post file /var/folders/y_/1qp06xmj2ws0t8kv54q8wxgh0000gp/T//RtmpkmOM2t/nwis_05406479-ts_doobs_nwis.tsv.gz
the ts_doobs_nwis timeseries for site nwis_05406479 already exists
archiving old timeseries as: ARCHIVE_20160324_nwis_05406479-ts_doobs_nwis.tsv.gz
posting file to site nwis_05406479, timeseries ts_doobs_nwis
preparing to post file /var/folders/y_/1qp06xmj2ws0t8kv54q8wxgh0000gp/T//RtmpkmOM2t/nwis_05435950-ts_doobs_nwis.tsv.gz
the ts_doobs_nwis timeseries for site nwis_05435950 already exists
archiving old timeseries as: ARCHIVE_20160324_nwis_05435950-ts_doobs_nwis.tsv.gz
posting file to site nwis_05435950, timeseries ts_doobs_nwis
preparing to post file /var/folders/y_/1qp06xmj2ws0t8kv54q8wxgh0000gp/T//RtmpkmOM2t/nwis_04087119-ts_doobs_nwis.tsv.gz
the ts_doobs_nwis timeseries for site nwis_04087119 already exists
archiving old timeseries as: ARCHIVE_20160324_nwis_04087119-ts_doobs_nwis.tsv.gz
posting file to site nwis_04087119, timeseries ts_doobs_nwis

make and parse functions created for the ARCHIVE files.

aappling-usgs commented 8 years ago

@jread-usgs - i assume there's more coming here when you next get some time, so i'm not merging for now. let me know when i should look again.