seims.preprocess.hydro_climate_utility.HydroClimateUtilClass Class Reference

Inherits object.

Public Member Functions

def __init__ (self)
 

Static Public Member Functions

def dr (doy)
 
def dec (doy)
 
def ws (lat, dec)
 
def rs (doy, n, lat)
 
def query_climate_sites (clim_db, site_type)
 
def get_time_system_from_data_file (in_file)
 
def get_utcdatetime_from_field_values (flds, values, tsys, tzone=None)
 

Detailed Description

Hydro-Climate utility functions.

Constructor & Destructor Documentation

◆ __init__()

def seims.preprocess.hydro_climate_utility.HydroClimateUtilClass.__init__ (   self)
Empty

Member Function Documentation

◆ dec()

def seims.preprocess.hydro_climate_utility.HydroClimateUtilClass.dec (   doy)
static
Declination.

◆ dr()

def seims.preprocess.hydro_climate_utility.HydroClimateUtilClass.dr (   doy)
static
earth-sun distance

◆ get_time_system_from_data_file()

def seims.preprocess.hydro_climate_utility.HydroClimateUtilClass.get_time_system_from_data_file (   in_file)
static
Get the time system from the data file. The basic format is:
   #<time_system> [<time_zone>], e.g., #LOCALTIME 8, #LOCALTIME -2, #UTCTIME

Returns:
    time_sys: 'UTCTIME' or 'LOCALTIME'
    time_zone(int): Positive for West time zone, and negative for East.

◆ get_utcdatetime_from_field_values()

def seims.preprocess.hydro_climate_utility.HydroClimateUtilClass.get_utcdatetime_from_field_values (   flds,
  values,
  tsys,
  tzone = None 
)
static
Get datetime from field-value lists.

Returns:
    utctime

◆ query_climate_sites()

def seims.preprocess.hydro_climate_utility.HydroClimateUtilClass.query_climate_sites (   clim_db,
  site_type 
)
static
Query climate sites information, return a dict with stationID as key.

◆ rs()

def seims.preprocess.hydro_climate_utility.HydroClimateUtilClass.rs (   doy,
  n,
  lat 
)
static
solar radiation (MJ/m2), n is sunshine duration (hour)

◆ ws()

def seims.preprocess.hydro_climate_utility.HydroClimateUtilClass.ws (   lat,
  dec 
)
static
sunset hour angle

The documentation for this class was generated from the following file: