Changeset 1406 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Jan 12, 2017, 3:50:49 PM (8 years ago)
Author:
lfita
Message:

Adding:

`curve_section': Function to provide a section of a file following a given curve

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var.py

    r1375 r1406  
    3838## e.g. $ nc_var.py -o VarVal_FillValue -S '0.,eq,std' -f new_lai2D.nc -v LAI
    3939## e.g. # nc_var.py -o rm_FillValue -f new_ORCHIDEE_13PFTmap_2010_cmpi6_LUH2v2h.nc -S 0 -v mask
     40## e.g. # nc_var.py -o curve_section -f /home/lluis/PY/test.nc -S 'gridline,x,y,8.,8.,16.,16.,32' -v all
    4041
    4142from optparse import OptionParser
     
    6566# compute_tevolboxtraj: Function to compute tevolboxtraj: temporal evolution at a given point along a box following a trajectory
    6667# computevar_model: Function to provide the way to compute a CF-variable providing its name
     68# curve_section: Function to provide a section of a file following a given curve
    6769# DatesFiles: Function to find different time values on a series of WRF files in a folder
    6870# DataSetSection: Function to get a section (values along a dimension) of a given data-set
     
    158160  'compute_opersvarsfiles',                                                          \
    159161  'compute_opervaralltime', 'compute_opervartimes', 'compute_tevolboxtraj',          \
    160   'computevar_model', 'DatesFiles',                                                  \
     162  'computevar_model', 'curve_section', 'DatesFiles',                                 \
    161163  'DataSetSection', 'DataSetSection_multidims', 'DataSetSection_multivars',          \
    162164  'DYNAMICO_toCF', 'dimToUnlimited', 'dimVar_creation',                              \
     
    291293elif oper == 'computevar_model':
    292294    ncvar.computevar_model(opts.values, opts.ncfile)
     295elif oper == 'curve_section':
     296    ncvar.curve_section(opts.values, opts.ncfile, opts.varname)
    293297elif oper == 'DataSetSection':
    294298    ncvar.DataSetSection(opts.values, opts.ncfile)
Note: See TracChangeset for help on using the changeset viewer.