Example #1
0
def create_mo_rr(sid, date, interval, item):
    qn_6 = item.get('QN_6', None)
    code = 'MO_RR'
    name = 'Monthly sum of precipitation height'
    value = get_value(item, code, None)
    return Kl(station_id=sid, date=date,
              interval=interval, name=name, unit='mm',
              value=value,
              information={
                  "QN_4": qn_6,
                  "code": code,
              })
Example #2
0
def create_mx_rs(sid, date, interval, item):
    qn_6 = item.get('QN_6', None)
    code = 'MX_RS'
    name = 'Monthly maximum of daily precipitation height'
    value = get_value(item, code, None)
    return Kl(station_id=sid, date=date,
              interval=interval, name=name, unit='mm',
              value=value,
              information={
                  "QN_4": qn_6,
                  "code": 'code',
              })
Example #3
0
def create_mx_fx(sid, date, interval, item):
    qn_4 = item.get('QN_4', None)
    code = 'MX_FX'
    name = 'Monthly maximum of daily wind speed'
    value = get_value(item, code, None)
    return Kl(station_id=sid, date=date,
              interval=interval, name=name, unit='m/s',
              value=value,
              information={
                  "QN_4": qn_4,
                  "code": code,
              })
Example #4
0
def create_mx_tn(sid, date, interval, item):
    qn_4 = item.get('QN_4', None)
    code = 'MX_TN'
    name = 'Monthly minimum of daily temperature minima in 2m height'
    value = get_value(item, code, None)
    return Kl(station_id=sid, date=date,
              interval=interval, name=name, unit='°C',
              value=value,
              information={
                  "QN_4": qn_4,
                  "code": code,
              })
Example #5
0
def create_mo_sd_s(sid, date, interval, item):
    qn_4 = item.get('QN_4', None)
    code = 'MO_SD_S'
    name = 'Monthly sum of sunshine duration'
    value = get_value(item, code, None)
    return Kl(station_id=sid, date=date,
              interval=interval, name=name, unit='h',
              value=value,
              information={
                  "QN_4": qn_4,
                  "code": code,
              })
Example #6
0
def create_mo_fk(sid, date, interval, item):
    qn_4 = item.get('QN_4', None)
    code = 'MO_FK'
    name = 'Monthly mean of daily wind speed'
    value = get_value(item, code, None)
    return Kl(station_id=sid, date=date,
              interval=interval, name=name, unit='Bft',
              value=value,
              information={
                  "QN_4": qn_4,
                  "code": code,
              })
Example #7
0
def create_mo_n(sid, date, interval, item):
    qn_4 = item.get('QN_4', None)
    code = 'MO_N'
    name = 'Monthly mean of cloud cover'
    value = get_value(item, code, None)
    return Kl(station_id=sid, date=date,
              interval=interval, name=name, unit='1/8',
              value=value,
              information={
                  "QN_4": qn_4,
                  "code": code,
              })
Example #8
0
def create_mo_tx(sid, date, interval, item):
    qn_4 = item.get('QN_4', None)
    code = 'MO_TX'
    name = 'mMnthly mean of daily temperature maxima in 2m'
    value = get_value(item, code, None)
    return Kl(station_id=sid, date=date,
              interval=interval, name=name, unit='°C',
              value=value,
              information={
                  "QN_4": qn_4,
                  "code": code,
              })
Example #9
0
def create_tnk(sid, date, interval, item):
    qn_4 = item.get('QN_4', None)
    code = 'TNK'
    name = 'Daily minimum of temperature at 2m height'
    value = get_value(item, code, None)
    return Kl(station_id=sid,
              date=date,
              interval=interval,
              name=name,
              unit='°C',
              value=value,
              information={
                  "QN_4": qn_4,
                  "code": code,
              })
Example #10
0
def create_tgk(sid, date, interval, item):
    qn_4 = item.get('QN_4', None)
    code = 'TGK'
    name = 'Daily minimum of air temperature at 5cm above ground'
    value = get_value(item, code, None)
    return Kl(station_id=sid,
              date=date,
              interval=interval,
              name=name,
              unit='°C',
              value=value,
              information={
                  "QN_4": qn_4,
                  "code": code,
              })
Example #11
0
def create_upm(sid, date, interval, item):
    qn_4 = item.get('QN_4', None)
    code = 'UPM'
    name = 'Daily mean of relative humidity'
    value = get_value(item, code, None)
    return Kl(station_id=sid,
              date=date,
              interval=interval,
              name=name,
              unit='%',
              value=value,
              information={
                  "QN_4": qn_4,
                  "code": code,
              })
Example #12
0
def create_pm(sid, date, interval, item):
    qn_4 = item.get('QN_4', None)
    code = 'PM'
    name = 'Daily mean of pressure'
    value = get_value(item, code, None)
    return Kl(station_id=sid,
              date=date,
              interval=interval,
              name=name,
              unit='hPa',
              value=value,
              information={
                  "QN_4": qn_4,
                  "code": code,
              })
Example #13
0
def create_shk_tag(sid, date, interval, item):
    qn_4 = item.get('QN_4', None)
    code = 'SHK_TAG'
    name = 'Daily snow depth'
    value = get_value(item, code, None)
    return Kl(station_id=sid,
              date=date,
              interval=interval,
              name=name,
              unit='cm',
              value=value,
              information={
                  "QN_4": qn_4,
                  "code": code,
              })
Example #14
0
def create_rskf(sid, date, interval, item):
    qn_4 = item.get('QN_4', None)
    code = 'RSKF'
    name = 'Precipitation form'
    value = get_value(item, code, None)
    return Kl(station_id=sid,
              date=date,
              interval=interval,
              name=name,
              unit='~',
              value=value,
              information={
                  "QN_4": qn_4,
                  "code": code,
              })
Example #15
0
def create_fm(sid, date, interval, item):
    qn_3 = item.get('QN_3', None)
    code = 'FM'
    name = 'Daily mean of wind velocity'
    value = get_value(item, code, None)
    return Kl(station_id=sid,
              date=date,
              interval=interval,
              name=name,
              unit='m/s',
              value=value,
              information={
                  "QN_3": qn_3,
                  "code": code,
              })