Missing barometer height in BUFR files
ladsmund opened this issue · 2 comments
ladsmund commented
The BUFR files are missing heightOfBarometerAboveMeanSeaLevel
when z_boom_u_smooth
I nan.
pypromice/src/pypromice/postprocess/csv2bufr.py
:
#Set measurement heights
if math.isnan(row['z_boom_u_smooth']) is False:
codes_set(ibufr,
'#1#heightOfSensorAboveLocalGroundOrDeckOfMarinePlatform',
row['z_boom_u_smooth']-0.1) # For air temp and RH
codes_set(ibufr,
'#7#heightOfSensorAboveLocalGroundOrDeckOfMarinePlatform',
row['z_boom_u_smooth']+0.4) # For wind speed
if math.isnan(row['gps_alt_fit']) is False:
codes_set(ibufr, 'heightOfBarometerAboveMeanSeaLevel',
row['gps_alt_fit']+row['z_boom_u_smooth']) # For pressure
I don't understand why z_boom_u_smooth
is used to compute heightOfBarometerAboveMeanSeaLevel
. z_boom_u_smooth
is relative to the snow height and not the barometer height above sea level.
I expected to see a constant offset defining the barometer height relative height between the gps receiver:
barometer_height = row['gps_alt_fit'] + barometer_height_relative_to_gps_receiver
ladsmund commented
@PennyHow @patrickjwright Do you have some inputs to this?