seims.preprocess.field_alpha.db_import_interpolation_weights_field.ImportWeightData Class Reference

Inherits object.

Static Public Member Functions

def cal_dis (x1, y1, x2, y2)
 
def idw (x, y, loc_list)
 
def thiessen (x, y, loc_list)
 
def generate_weight_dependent_parameters (conn, maindb, subbsn_id)
 
def climate_itp_weight_thiessen (conn, db_model, subbsn_id, geodata2dbdir)
 
def workflow (cfg, conn, n_subbasins)
 

Detailed Description

Spatial weight and its related data

Member Function Documentation

◆ cal_dis()

def seims.preprocess.field_alpha.db_import_interpolation_weights_field.ImportWeightData.cal_dis (   x1,
  y1,
  x2,
  y2 
)
static
calculate distance between two points

◆ climate_itp_weight_thiessen()

def seims.preprocess.field_alpha.db_import_interpolation_weights_field.ImportWeightData.climate_itp_weight_thiessen (   conn,
  db_model,
  subbsn_id,
  geodata2dbdir 
)
static
Generate and import weight information using Thiessen polygon method.

Args:
    conn:
    db_model: workflow database object
    subbsn_id: subbasin id
    geodata2dbdir: directory to store weight data as txt file

◆ generate_weight_dependent_parameters()

def seims.preprocess.field_alpha.db_import_interpolation_weights_field.ImportWeightData.generate_weight_dependent_parameters (   conn,
  maindb,
  subbsn_id 
)
static
Generate some parameters dependent on weight data and only should be calculated once.
    Such as PHU0 (annual average total potential heat units)
        TMEAN0 (annual average temperature)
    added by Liangjun, 2016-6-17

◆ idw()

def seims.preprocess.field_alpha.db_import_interpolation_weights_field.ImportWeightData.idw (   x,
  y,
  loc_list 
)
static
IDW method for weight
This function is not used currently

◆ thiessen()

def seims.preprocess.field_alpha.db_import_interpolation_weights_field.ImportWeightData.thiessen (   x,
  y,
  loc_list 
)
static
Thiessen polygon method for weights

◆ workflow()

def seims.preprocess.field_alpha.db_import_interpolation_weights_field.ImportWeightData.workflow (   cfg,
  conn,
  n_subbasins 
)
static
Workflow

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