MPAS-JEDI
|
Functions | |
def | getGridFile (date=initDate, gfsAnaDir=GFSANA_DIR, nCells=40962) |
def | readGrid (date=initDate, gridFile=None, returnR=False) |
def | hasVar (varName, ncFile) |
def | varDims (varName, ncFile) |
def | varAttrs (varName, ncFile) |
def | varDatatype (varName, ncFile) |
def | getPressure (ncData) |
def | getTemperature (ncFile) |
def | varRead (varName, ncFile) |
def | varWrite (varName, varVals, ncFile, varAttrs, dims, datatype) |
def | createHeaderOnlyFile (infile, outfile, date) |
def | varDiff (varName, ncFile1, ncFile2) |
def | main () |
Variables | |
string | ncWriteFormat = 'NETCDF3_64BIT_OFFSET' |
fcHours = os.getenv('fcHours', '0') | |
intervalHours = os.getenv('intervalHours', '6') | |
fcNums = os.getenv('fcNums', '1') | |
initDate = os.getenv('start_init', '2018041500') | |
endDate = os.getenv('end_init', '2018051400') | |
diff2exp = os.getenv('diff2exp', 'False') | |
expDirectory = os.getenv('TOP_DIR','/glade/scratch/$user/pandac/') | |
GFSANA_DIR = os.getenv('GFSANA_DIR', 'Please link GFSANA_DIR') | |
expLongNames = os.getenv('expLongNames', 'please set expLongNames') | |
expNames = os.getenv('expNames','please set expNames') | |
EXP_DIR1 = os.getenv('FCDIAG_WORK_DIR1','FC1DIAG DIR OR FC2DIAG DIR FOR CONTROL') | |
EXP_DIR2 = os.getenv('FCDIAG_WORK_DIR2','FC1DIAG DIR OR FC2DIAG DIR FOR CURRENT/target exp') | |
exp1Name = os.getenv('exp1Name','name for control expt') | |
exp2Name = os.getenv('exp2Name','name for current/target expt') | |
list | aggregatableFileStats = ['RMS','Mean'] |
list | allFileStats = aggregatableFileStats |
string | expStats = 'expmgfs' |
list | varNames2d = ['t2m','surface_pressure','q2','u10','v10'] |
list | varNames3d = ['theta','temperature','rho','pressure','uReconstructZonal','uReconstructMeridional','qv','w'] |
list | varNames = varNames2d + varNames3d |
list | latBands = ['NXTro','Tro','SXTro'] |
list | latBandsBounds = [90.0, 30.0, -30.0, -90.0] |
list | inflationVariables |
dictionary | variableTraits |
dictionary | templateVariables |
int | nlevelSurface = 1 |
int | nlevels = 55 |
int | nlevelsP1 = 56 |
int | ncells = 40962 |
int | fcRange = int(fcHours)/24. |
int | interval = int(intervalHours)/24 |
SDATE = datetime.strptime(initDate,'%Y%m%d%H') | |
EDATE = datetime.strptime(endDate,'%Y%m%d%H') | |
DATEINC = dt.timedelta(days=interval) | |
nExp = len(expNames) | |
def modelsp_utils.createHeaderOnlyFile | ( | infile, | |
outfile, | |||
date | |||
) |
Definition at line 279 of file modelsp_utils.py.
def modelsp_utils.getGridFile | ( | date = initDate , |
|
gfsAnaDir = GFSANA_DIR , |
|||
nCells = 40962 |
|||
) |
def modelsp_utils.getPressure | ( | ncData | ) |
def modelsp_utils.getTemperature | ( | ncFile | ) |
Definition at line 212 of file modelsp_utils.py.
def modelsp_utils.hasVar | ( | varName, | |
ncFile | |||
) |
def modelsp_utils.main | ( | ) |
Definition at line 329 of file modelsp_utils.py.
def modelsp_utils.readGrid | ( | date = initDate , |
|
gridFile = None , |
|||
returnR = False |
|||
) |
def modelsp_utils.varAttrs | ( | varName, | |
ncFile | |||
) |
Definition at line 194 of file modelsp_utils.py.
def modelsp_utils.varDatatype | ( | varName, | |
ncFile | |||
) |
Definition at line 200 of file modelsp_utils.py.
def modelsp_utils.varDiff | ( | varName, | |
ncFile1, | |||
ncFile2 | |||
) |
def modelsp_utils.varDims | ( | varName, | |
ncFile | |||
) |
Definition at line 188 of file modelsp_utils.py.
def modelsp_utils.varRead | ( | varName, | |
ncFile | |||
) |
Definition at line 225 of file modelsp_utils.py.
def modelsp_utils.varWrite | ( | varName, | |
varVals, | |||
ncFile, | |||
varAttrs, | |||
dims, | |||
datatype | |||
) |
list modelsp_utils.aggregatableFileStats = ['RMS','Mean'] |
Definition at line 29 of file modelsp_utils.py.
list modelsp_utils.allFileStats = aggregatableFileStats |
Definition at line 30 of file modelsp_utils.py.
modelsp_utils.DATEINC = dt.timedelta(days=interval) |
Definition at line 157 of file modelsp_utils.py.
modelsp_utils.diff2exp = os.getenv('diff2exp', 'False') |
Definition at line 17 of file modelsp_utils.py.
modelsp_utils.EDATE = datetime.strptime(endDate,'%Y%m%d%H') |
Definition at line 155 of file modelsp_utils.py.
modelsp_utils.endDate = os.getenv('end_init', '2018051400') |
Definition at line 16 of file modelsp_utils.py.
modelsp_utils.exp1Name = os.getenv('exp1Name','name for control expt') |
Definition at line 26 of file modelsp_utils.py.
modelsp_utils.exp2Name = os.getenv('exp2Name','name for current/target expt') |
Definition at line 27 of file modelsp_utils.py.
modelsp_utils.EXP_DIR1 = os.getenv('FCDIAG_WORK_DIR1','FC1DIAG DIR OR FC2DIAG DIR FOR CONTROL') |
Definition at line 24 of file modelsp_utils.py.
modelsp_utils.EXP_DIR2 = os.getenv('FCDIAG_WORK_DIR2','FC1DIAG DIR OR FC2DIAG DIR FOR CURRENT/target exp') |
Definition at line 25 of file modelsp_utils.py.
modelsp_utils.expDirectory = os.getenv('TOP_DIR','/glade/scratch/$user/pandac/') |
Definition at line 18 of file modelsp_utils.py.
modelsp_utils.expLongNames = os.getenv('expLongNames', 'please set expLongNames') |
Definition at line 21 of file modelsp_utils.py.
modelsp_utils.expNames = os.getenv('expNames','please set expNames') |
Definition at line 22 of file modelsp_utils.py.
string modelsp_utils.expStats = 'expmgfs' |
Definition at line 31 of file modelsp_utils.py.
modelsp_utils.fcHours = os.getenv('fcHours', '0') |
Definition at line 12 of file modelsp_utils.py.
modelsp_utils.fcNums = os.getenv('fcNums', '1') |
Definition at line 14 of file modelsp_utils.py.
int modelsp_utils.fcRange = int(fcHours)/24. |
Definition at line 152 of file modelsp_utils.py.
modelsp_utils.GFSANA_DIR = os.getenv('GFSANA_DIR', 'Please link GFSANA_DIR') |
Definition at line 20 of file modelsp_utils.py.
list modelsp_utils.inflationVariables |
Definition at line 38 of file modelsp_utils.py.
modelsp_utils.initDate = os.getenv('start_init', '2018041500') |
Definition at line 15 of file modelsp_utils.py.
int modelsp_utils.interval = int(intervalHours)/24 |
Definition at line 153 of file modelsp_utils.py.
modelsp_utils.intervalHours = os.getenv('intervalHours', '6') |
Definition at line 13 of file modelsp_utils.py.
list modelsp_utils.latBands = ['NXTro','Tro','SXTro'] |
Definition at line 35 of file modelsp_utils.py.
list modelsp_utils.latBandsBounds = [90.0, 30.0, -30.0, -90.0] |
Definition at line 36 of file modelsp_utils.py.
int modelsp_utils.ncells = 40962 |
Definition at line 149 of file modelsp_utils.py.
string modelsp_utils.ncWriteFormat = 'NETCDF3_64BIT_OFFSET' |
Definition at line 10 of file modelsp_utils.py.
modelsp_utils.nExp = len(expNames) |
Definition at line 160 of file modelsp_utils.py.
int modelsp_utils.nlevels = 55 |
Definition at line 147 of file modelsp_utils.py.
int modelsp_utils.nlevelsP1 = 56 |
Definition at line 148 of file modelsp_utils.py.
int modelsp_utils.nlevelSurface = 1 |
Definition at line 146 of file modelsp_utils.py.
modelsp_utils.SDATE = datetime.strptime(initDate,'%Y%m%d%H') |
Definition at line 154 of file modelsp_utils.py.
dictionary modelsp_utils.templateVariables |
Definition at line 137 of file modelsp_utils.py.
dictionary modelsp_utils.variableTraits |
Definition at line 54 of file modelsp_utils.py.
list modelsp_utils.varNames = varNames2d + varNames3d |
Definition at line 34 of file modelsp_utils.py.
list modelsp_utils.varNames2d = ['t2m','surface_pressure','q2','u10','v10'] |
Definition at line 32 of file modelsp_utils.py.
list modelsp_utils.varNames3d = ['theta','temperature','rho','pressure','uReconstructZonal','uReconstructMeridional','qv','w'] |
Definition at line 33 of file modelsp_utils.py.