Open emontgomery-usgs opened 6 years ago
On a related topic, in pressure displays, if P_1 and P_1ac are both present, P_1a should be used. Also, if a file has P_4023, it should also be displayed. P_4023 is effectively the same as P_1, and and has the standard name of sea_water_pressure, so should get picked up.
This was initially mentioned in ticket #154.
If there's any other form of sea_water_temperature present, tx_1211 should not be displayed. Sensors of this type are inaccurate, and are prone to long lag times, so are not the best source of sea water temperature. I noticed it crept in while looking at https://cmgdata.usgsportals.net/#metadata/64153/station. t
The aqd data caught my eye because the depth associated with it is 0, which is wrong. I think this is because there's no sensor_depth att for P_1. Can the code be changed to compute sensor_depth (WATER_DEPTH-initial_instrument_height), if not available?
Further probing shows those temperatures to be from tx_1211, not a T_28 . In this case, there is mc and exo data available from nominally the same depths for all but the 'a' time period.
If possible could the display logic be changed to show the 'a' time from the aqd, and the b, c, d times from the other sensors?
Also in cases where a variable isn't dimensioned by depth, the depth to use in the portal's station display is water_depth - the variable's initial_instrument_height. Thanks!