def create_zfumi(sid, date, interval, item): qn_2 = item.get('QN_2', None) code = 'ZFUMI' name = 'Frost depth at midday for uncovered soil' value = get_value(item, code, None) return SoilTemperature(station_id=sid, date=date, interval=interval, name=name, unit='cm', value=value, information={ "QN": qn_2, "code": code, })
def create_bfgls(sid, date, interval, item): qn_2 = item.get('QN_2', None) code = 'BFGLS' name = 'Soil moisture under grass and loamy sand up to 60 cm depth' value = get_value(item, code, None) return SoilTemperature(station_id=sid, date=date, interval=interval, name=name, unit='%nFK', value=value, information={ "QN": qn_2, "code": code, })
def create_vpgh(sid, date, interval, item): qn_2 = item.get('QN_2', None) code = 'VPGH' name = 'Potential evaporation over grass (Haude)' value = get_value(item, code, None) return SoilTemperature(station_id=sid, date=date, interval=interval, name=name, unit='mm', value=value, information={ "QN": qn_2, "code": code, })
def create_vgsl(sid, date, interval, item): qn_2 = item.get('QN_2', None) code = 'VGSL' name = 'Real evapotranspiration over grass and sandy loam (AMBAV)' value = get_value(item, code, None) return SoilTemperature(station_id=sid, date=date, interval=interval, name=name, unit='mm', value=value, information={ "QN": qn_2, "code": code, })
def create_v_te002(sid, date, interval, item): qn_2 = item.get('QN_2', None) code = 'V_TE002' name = 'Soil temperature in 2 cm depth' value = get_value(item, code, None) return SoilTemperature(station_id=sid, date=date, interval=interval, name=name, unit='°C', value=value, information={ "QN": qn_2, "code": code, })
def create_bf60(sid, date, interval, item): qn_2 = item.get('QN_2', None) code = 'BF60' name = 'Soil moisture under grass and sandy loam between 50 and 60 cm depth in % plant '\ 'usable water' value = get_value(item, code, None) return SoilTemperature(station_id=sid, date=date, interval=interval, name=name, unit='%nFK', value=value, information={ "QN": qn_2, "code": code, })
def create_ts100(sid, date, interval, item): qn_2 = item.get('QN_2', None) code = 'TS100' name = 'Mean daily soil temperature in 5 cm depth for uncovered typical soil in 1 m depth '\ 'mean daily soil' value = get_value(item, code, None) return SoilTemperature(station_id=sid, date=date, interval=interval, name=name, unit='°C', value=value, information={ "QN": qn_2, "code": code, })