Beispiel #1
0
def create_fd(sid, date, interval, item):
    qn = item.get('QN_592', None)
    code = 'FD_STRAHL'
    name = 'Daily sum of diffuse solar radiation'
    value = get_value(item, code, None)
    return Solar(station_id=sid, date=date,
                 interval=interval, name=name, unit='J/cm^2',
                 value=value,
                 information={
                     "QN_592": qn,
                     "code": code,
                 })
Beispiel #2
0
def create_atmo(sid, date, interval, item):
    qn = item.get('QN_592', None)
    code = 'ATMO_STRAHL'
    name = 'Longwave downward radiation'
    value = get_value(item, code, None)
    return Solar(station_id=sid, date=date,
                 interval=interval, name=name, unit='J/cm^2',
                 value=value,
                 information={
                     "QN_592": qn,
                     "code": code,
                 })
Beispiel #3
0
def create_sd(sid, date, interval, item):
    qn = item.get('QN_592', None)
    code = 'SD_STRAHL'
    name = 'Daily sum of sunshine duration'
    value = get_value(item, code, None)
    return Solar(station_id=sid, date=date,
                 interval=interval, name=name, unit='min',
                 value=value,
                 information={
                     "QN_592": qn,
                     "code": code,
                 })
def create_ds_10(sid, date, interval, item):
    qn = item.get('QN', None)
    code = 'DS_10'
    name = 'Diffuse sky radiation'
    value = get_value(item, code, None)
    return Solar(station_id=sid,
                 date=date,
                 interval=interval,
                 name=name,
                 unit='J/cm',
                 value=value,
                 information={
                     "QN_8": qn,
                     "code": code,
                 })
def create_sd_10(sid, date, interval, item):
    qn = item.get('QN', None)
    code = 'SD_10'
    name = 'Sunshine duration'
    value = get_value(item, code, None)
    return Solar(station_id=sid,
                 date=date,
                 interval=interval,
                 name=name,
                 unit='hour',
                 value=value,
                 information={
                     "QN_8": qn,
                     "code": code,
                 })
Beispiel #6
0
def create_zenit(sid, date, interval, item):
    qn = item.get('QN_592', None)
    code = 'ZENIT'
    name = 'Solar zenith angle at mid of interval',
    value = get_value(item, code, None)
    return Solar(station_id=sid,
                 date=date,
                 interval=interval,
                 name=name,
                 unit='degree',
                 value=value,
                 information={
                     "QN_592": qn,
                     "code": code,
                 })
Beispiel #7
0
def create_fg(sid, date, interval, item):
    qn = item.get('QN_592', None)
    code = 'FG_LBERG'
    name = 'Hourly sum of solar incoming radiation'
    value = get_value(item, code, None)
    return Solar(station_id=sid,
                 date=date,
                 interval=interval,
                 name=name,
                 unit='J/cm^2',
                 value=value,
                 information={
                     "QN_592": qn,
                     "code": code,
                 })