Changeset 2195 in lmdz_wrf for trunk/tools/nc_var.py


Ignore:
Timestamp:
Oct 18, 2018, 6:12:36 PM (6 years ago)
Author:
lfita
Message:

Adding:

  • `compute_slice2Dstats': Function to compute stats of variables of a file following slices along 2 variables
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var.py

    r2168 r2195  
    6262## e.g. # nc_var.py -o temporal_stats -S 'Time:WRFtime:day@1@min,LTday@-3@1@min:bottom_top@ZNU,south_north@XLAT,west_east@XLONG' -f wrfout_d01_1995-01-01_00:00:00 -v T2,Q2
    6363## e.g. # nc_var.py -o retrieve_stations -f wrfout_d01_1995-01-01_00:00:00 -S 'tmin_percentiles.nc:stname:None:stlon:stlat:None:nearest:west_east:XLONG:south_north:XLAT:HGT:Time:WRFtime' -v T2,QVAPOR
     64## e.g. # nc_var.py -o compute_slice2Dstats -S 'XLAT,-63.,19.,2.,HGT,250.,7000.,500.,Time|Times:west_east|XLONG:south_north|XLAT' -f wrfout_d01_1995-01-01_00:00:00 -v T2,Q2
    6465
    6566from optparse import OptionParser
     
    8990# compute_opervaralltime: Function to compute opervaralltime: operation of variable successible allover the time-steps
    9091# compute_opervartimes: Function to compute opervartimes: operation of variable for a given sub-set of time-steps
     92# compute_slice2Dstats: Function to compute stats of variables of a file following slices along 2 variables
    9193# compute_tevolboxtraj: Function to compute tevolboxtraj: temporal evolution at a given point along a box following a trajectory
    9294# computevar_model: Function to provide the way to compute a CF-variable providing its name
     
    203205  'chgtimestep', 'chvarname', 'cleaning_varsfile', 'compute_deaccum',                \
    204206  'compute_opersvarsfiles',                                                          \
    205   'compute_opervaralltime', 'compute_opervartimes', 'compute_tevolboxtraj',          \
     207  'compute_opervaralltime', 'compute_opervartimes', 'compute_slice2Dstats',          \
     208  'compute_tevolboxtraj',                                                            \
    206209  'computevar_model', 'curve_section', 'DatesFiles',                                 \
    207210  'DataSetSection', 'DataSetSection_multidims', 'DataSetSection_multivars',          \
     
    342345elif oper == 'compute_opervartimes':
    343346    ncvar.compute_opervartimes(opts.values, opts.ncfile, opts.varname)
     347elif oper == 'compute_slice2Dstats':
     348    ncvar.compute_slice2Dstats(opts.values, opts.ncfile, opts.varname)
    344349elif oper == 'compute_tevolboxtraj':
    345350    ncvar.compute_tevolboxtraj(opts.values, opts.ncfile, opts.varname)
Note: See TracChangeset for help on using the changeset viewer.