kirenbahm / ENP_TOOLS

Scripts used to pre- and post-process data
0 stars 2 forks source link

Fix an inconsistent datum issue #48

Closed LAGO-Support closed 3 years ago

LAGO-Support commented 3 years ago

Data from DFE files have inconsistent datums and this fix will shift NAVD88 datums to NGVD29. Subsequent scripts will read the converted data.

LAGO-Support commented 3 years ago

Conversion to NGVD29 only occurs if the station datum is NAVD88 and the conversion value is not 0.

kirenbahm commented 3 years ago

Hi Kham, Thanks for your work on this important edit. The timeseries values look good, but I would like something slightly different in the header of the ascii output. I think the vertical datum and ground surface elevation should all be NGVD29. I have put an example below. Let me know if this change can be implemented and still work correctly with the downstream code.

=============================== INPUT FILE:

station: LS

agency: NPS_ENP

ground surface elevation ft: -3.87

latitude: 25.23516

longitude: -80.45680

vertical datum: NAVD88

conversion: -1.539

stn|type|date time|value(feet)|validation_date

LS|stage|2002-07-21 13:10|-0.6890|2019-08-21 LS|stage|2002-07-21 13:20|-0.6890|2019-08-21 LS|stage|2002-07-21 13:30|-0.6890|2019-08-21 LS|stage|2002-07-21 13:40|-0.6890|2019-08-21 LS|stage|2002-07-21 13:50|-0.6790|2019-08-21 LS|stage|2002-07-21 14:00|-0.6790|2019-08-21 LS|stage|2002-07-21 14:10|-0.6790|2019-08-21 LS|stage|2002-07-21 14:20|-0.6790|2019-08-21

=============================== OUTPUT FILE (After Lago Edits):

station: LS

agency: NPS_ENP

ground surface elevation ft: -3.87

latitude: 25.23516

longitude: -80.45680

vertical datum: NAVD88 (Will Convert values to NGVD29 Datum)

conversion: -1.539

stn|type|date time|value(feet)|validation_date|Flag

LS|stage|2002-07-21 13:10|0.8500|2019-08-21| LS|stage|2002-07-21 13:20|0.8500|2019-08-21| LS|stage|2002-07-21 13:30|0.8500|2019-08-21| LS|stage|2002-07-21 13:40|0.8500|2019-08-21| LS|stage|2002-07-21 13:50|0.8600|2019-08-21| LS|stage|2002-07-21 14:00|0.8600|2019-08-21| LS|stage|2002-07-21 14:10|0.8600|2019-08-21| LS|stage|2002-07-21 14:20|0.8600|2019-08-21|

=============================== DESIRED OUTPUT FILE:

station: LS

agency: NPS_ENP

ground surface elevation ft: -2.33

latitude: 25.23516

longitude: -80.45680

vertical datum: NGVD29

conversion: -1.539

stn|type|date time|value(feet)|validation_date|Flag

LS|stage|2002-07-21 13:10|0.8500|2019-08-21| LS|stage|2002-07-21 13:20|0.8500|2019-08-21| LS|stage|2002-07-21 13:30|0.8500|2019-08-21| LS|stage|2002-07-21 13:40|0.8500|2019-08-21| LS|stage|2002-07-21 13:50|0.8600|2019-08-21| LS|stage|2002-07-21 14:00|0.8600|2019-08-21| LS|stage|2002-07-21 14:10|0.8600|2019-08-21| LS|stage|2002-07-21 14:20|0.8600|2019-08-21|