OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
merge_met_reanalysis Namespace Reference

Functions

def enforce_range (values, param)
 
def smooth_latlon (old_arr, width=3)
 
def fix_bias (old_dat, new_dat, width=3)
 
def merge_met_reanalysis (file_upd, file_nrt, file_tpl, file_out=None)
 
def apply_reanalysis_bias (h4_nrt, h4_upd, h4_out, width=11)
 
def expand_reanalysis_file (h4_nrt, h4_upd, h4_out, expand_array=False)
 

Variables

int NY_OUT = 181
 
int NX_OUT = 360
 
dictionary PARAM_RANGES
 
dictionary params = PARAM_RANGES.keys()
 
 parser = argparse.ArgumentParser(description='Adjust predicted met files with bias derived from NCEP Reanalysis.')
 
 metavar
 
 help
 
 nargs
 
 args = parser.parse_args()
 
 dict_args = vars(args)
 

Function Documentation

◆ apply_reanalysis_bias()

def merge_met_reanalysis.apply_reanalysis_bias (   h4_nrt,
  h4_upd,
  h4_out,
  width = 11 
)

Definition at line 135 of file merge_met_reanalysis.py.

◆ enforce_range()

def merge_met_reanalysis.enforce_range (   values,
  param 
)

Definition at line 28 of file merge_met_reanalysis.py.

◆ expand_reanalysis_file()

def merge_met_reanalysis.expand_reanalysis_file (   h4_nrt,
  h4_upd,
  h4_out,
  expand_array = False 
)

Definition at line 164 of file merge_met_reanalysis.py.

◆ fix_bias()

def merge_met_reanalysis.fix_bias (   old_dat,
  new_dat,
  width = 3 
)

Definition at line 45 of file merge_met_reanalysis.py.

◆ merge_met_reanalysis()

def merge_met_reanalysis.merge_met_reanalysis (   file_upd,
  file_nrt,
  file_tpl,
  file_out = None 
)

Definition at line 58 of file merge_met_reanalysis.py.

◆ smooth_latlon()

def merge_met_reanalysis.smooth_latlon (   old_arr,
  width = 3 
)

Definition at line 37 of file merge_met_reanalysis.py.

Variable Documentation

◆ args

args = parser.parse_args()

Definition at line 203 of file merge_met_reanalysis.py.

◆ dict_args

dict_args = vars(args)

Definition at line 204 of file merge_met_reanalysis.py.

◆ help

help

Definition at line 198 of file merge_met_reanalysis.py.

◆ metavar

metavar

Definition at line 198 of file merge_met_reanalysis.py.

◆ nargs

nargs

Definition at line 200 of file merge_met_reanalysis.py.

◆ NX_OUT

int NX_OUT = 360

Definition at line 16 of file merge_met_reanalysis.py.

◆ NY_OUT

int NY_OUT = 181

Definition at line 15 of file merge_met_reanalysis.py.

◆ PARAM_RANGES

dictionary PARAM_RANGES
Initial value:
1 = {
2  'z_wind' : [-50, 50],
3  'm_wind' : [-50, 50],
4  'press' : [850, 1084],
5  'rel_hum': [ 0, 100],
6  'p_water': [ 0, 200]
7 }

Definition at line 18 of file merge_met_reanalysis.py.

◆ params

dictionary params = PARAM_RANGES.keys()

Definition at line 25 of file merge_met_reanalysis.py.

◆ parser

parser = argparse.ArgumentParser(description='Adjust predicted met files with bias derived from NCEP Reanalysis.')

Definition at line 197 of file merge_met_reanalysis.py.