Changeset 845 in lmdz_wrf for trunk


Ignore:
Timestamp:
Jun 16, 2016, 6:11:55 PM (8 years ago)
Author:
lfita
Message:

Adding:

  • `computevar_model': Function to provide the way to compute a CF-variable providing its name
Location:
trunk/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var.py

    r820 r845  
    1111## e.g. # nc_var.py -o selvar -f /home/lluis/PY/met_em.d01.1979-01-01_00:00:00.nc -S 'west_east@XLONG_M,south_north@XLAT_M,num_metgrid_levels@int,Time@Times' -v TT,UU,VV,SKINTEMP
    1212## e.g. # nc_var.py -o 'Partialmap_Entiremap' -f carteveg5km.nc -S 'longitude,latitude,std,5000.,Goode,Goode_5km.nc' -v vegetation_map
    13 ## e.g. # nc_var.py -o subbasin -f routing.nc -S Caceres,-57.75,-16.25
     13## e.g. # nc_var.py -o subbasin -f routing.nc -S Caceres,-57.75,-16.25,left
     14## e.g. # nc_var.py -o computevar_model -f ~/PY/wrfout_d01_2001-11-11_00:00:00 -S hurs
    1415
    1516from optparse import OptionParser
     
    2627  'chgtimestep', 'chvarname', 'compute_deaccum', 'compute_opersvarsfiles',           \
    2728  'compute_opervaralltime', 'compute_opervartimes', 'compute_tevolboxtraj',          \
    28   'DatesFiles',                                                                      \
     29  'computevar_model', 'DatesFiles',                                                  \
    2930  'DataSetSection', 'DataSetSection_multidims', 'DataSetSection_multivars',          \
    3031  'dimToUnlimited', 'dimVar_creation',                                               \
     
    135136elif oper == 'compute_tevolboxtraj':
    136137    ncvar.compute_tevolboxtraj(opts.values, opts.ncfile, opts.varname)
     138elif oper == 'computevar_model':
     139    ncvar.computevar_model(opts.values, opts.ncfile)
    137140elif oper == 'DataSetSection':
    138141    ncvar.DataSetSection(opts.values, opts.ncfile)
  • trunk/tools/nc_var_tools.py

    r844 r845  
    2727# compute_opervaralltime: Function to compute opervaralltime: operation of variable successible allover the time-steps
    2828# compute_opervartimes: Function to compute opervartimes: operation of variable for a given sub-set of time-steps
     29# computevar_model: Function to provide the way to compute a CF-variable providing its name
    2930# compute_tevolboxtraj: Function to compute tevolboxtraj: temporal evolution at a given point along a box following a trajectory
    3031# compute_tevolboxtraj_radialsec: Function to compute tevolboxtraj_radialsec: temporal evolution at a given point along a number of radii at a given frequency following a trajectory
Note: See TracChangeset for help on using the changeset viewer.