Newer
Older
from numpy import float32
from collections import namedtuple
Var = namedtuple('Var', ['type', 'standard_name', 'name', 'description', 'units', 'valid_min', 'valid_max', 'valid_delta'])
database = dict(
box_temp=Var(
float32,
'air_temperature',
'box_temp',
'Auxillary Temperature',
box_pressure=Var(
float32,
'air_pressure',
'box_pressure',
'Pressure inside the data logger enclosure',
paro_air_temp=Var(
float32,
'air_temperature',
'paro_air_temp',
pressure=Var(
float32,
'air_pressure',
'pressure',
'Air pressure as measured from the PAROSCI pressure sensor',
None,
None,
None,
None,
None,
box_rh=Var(
float32,
'relative_humidity',
'box_rh',
'Relative humidity inside the data logger enclosure',
box_air_temp=Var(
float32,
'air_temperature',
'box_air_temp',
'Air temperature inside the data logger enclosure',
air_temp_2=Var(
float32,
'air_temperature',
'air_temp_2',
'Auxillary air temperature',
air_temp_3=Var(
float32,
'air_temperature',
'air_temp_3',
'Auxillary air temperature',
air_temp_4=Var(
float32,
'air_temperature',
'air_temp_4',
'Auxillary air temperature',
air_temp_5=Var(
float32,
'air_temperature',
'air_temp_5',
'Auxillary air temperature',
wind_speed=Var(
float32,
'wind_speed',
'wind_speed',
'Wind speed',
'wind_from_direction',
rh=Var(
float32,
'relative_humidity',
'rh',
'Relative humidity',
air_temp_6_3m=Var(
float32,
'air_temperature',
'air_temp_6_3m',
'Air temperature 6.3m from tower base',
'dew_point_temperature',
None,
None,
None,
None,
None,
air_temp=Var(
float32,
'air_temperature',
'air_temp',
'Air temperature',
solar_flux=Var(
float32,
'solar_flux',
'solar_flux',
'Solar flux',
accum_precip=Var(
float32,
'accumulated_precipitation',
'accum_precip',
'Precipitation accumulated since 0Z',
),
gust=Var(
float32,
'wind_speed_of_gust',
'gust',
'Wind gust over the previous 2 minutes',
'm/s',
'0',
database_dict = {k: v._asdict() for k, v in database.items()}
met_vars = {'air_temp', 'dewpoint', 'rh', 'solar_flux', 'pressure', 'precip', 'accum_precip',
'wind_speed', 'wind_dir', 'gust'}