Changeset 1237 in lmdz_wrf for trunk


Ignore:
Timestamp:
Oct 26, 2016, 5:33:41 PM (8 years ago)
Author:
lfita
Message:

Introducing `compute_opersvarsfiles' into documentation

Location:
trunk/tools
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/documentation/nctransform/field_stats.html

    r1216 r1237  
    1515    <DIV CLASS="valhelp">
    1616      field_stats(values, ncfile, varn)<BR>
    17       [values]= [stats],[fillVals]<BR>
    18         [stats]: kind of statistics <BR>
    19           'full': all statistics given variable<BR>
    20         [fillVals]: ':' list of _fillValues ('None' for any)<BR>
    21         [countVals]: ':' list of Values@cond to use to count conditions ('None' for any)<BR>
     17      [values]= [stats],[fillVals],[countVals]<BR>
     18      &nbsp;&nbsp;[stats]: kind of statistics <BR>
     19      &nbsp;&nbsp;&nbsp;&nbsp;'full': all statistics given variable<BR>
     20      &nbsp;&nbsp;[fillVals]: ':' list of _fillValues ('None' for any)<BR>
     21      &nbsp;&nbsp;[countVals]: ':' list of Values@cond to use to count conditions ('None' for any)<BR>
    2222      [ncfile]= name of the netCDF file to use<BR>
    2323      [varn]= variable name to use ('all' for all variables)<BR>
  • trunk/tools/documentation/nctransform/intro.html

    r1225 r1237  
    77  <BODY>
    88    <DIV CLASS="valheader">
    9       Plotting functions
     9      netCDF managing functions
    1010    </DIV>
    1111    <DIV CLASS="valintro">
    12       List of available functions to plot figures. Most of them follow a similar structure:<BR>
     12      List of available functions to manage netCDD files. Most of them follow a similar structure:<BR>
    1313      <PRE><CODE>
    1414        $ python nc_var.py -o [operation] -f [file(or files)] -S [values] -v [variables]
     
    3636      </OL>
    3737      In order to use some of the functions, is necessary to compile previously the related Fortran subroutines and link them to python. It is already prepared for different computers via specific <SPAN CLASS="codetxt">Makefile.[machine].[compiler]</SPAN><BR>
    38       Available funtions:
     38      Available functions:
    3939      <UL>
    4040        <LI><SPAN CLASS="codetxt">addvals:</SPAN> Function to add values to a given variable at a given dimension</LI>
     
    4747        <LI><SPAN CLASS="codetxt">chgtimestep:</SPAN> Function to change the values of a given time-step of a variable inside a netCDF for values from a nother file</LI>
    4848        <LI><SPAN CLASS="codetxt">chvarname:</SPAN> Changing the name of the variable</LI>
    49         <LI><SPAN CLASS="codetxt">cleaning_varsfile:</SPAN> Function to keep a list of varibales from a file</LI>
    50         <LI><SPAN CLASS="codetxt">DatesFiles:</SPAN> Function to find different time values on a series of WRF files in a folder</LI>
     49        <LI><SPAN CLASS="codetxt">cleaning_varsfile:</SPAN> Function to keep a list of variabales from a file</LI>
     50        <LI><SPAN CLASS="codetxt">compute_opersvarsfiles:</SPAN> Function to compute opersvarfiles: operation of variables from different files (OPER1.FILE1_VAR1 OPER2.FILE2_VAR2), operations are going to be sequentially</LI>
     51      made<LI><SPAN CLASS="codetxt">DatesFiles:</SPAN> Function to find different time values on a series of WRF files in a folder</LI>
    5152        <LI><SPAN CLASS="codetxt">DataSetSection:</SPAN> Function to get a section (values along a dimension) of a given data-set</LI>
    5253        <LI><SPAN CLASS="codetxt">DataSetSection_multidims:</SPAN> Function to get a section (values along multiple dimensions) of a given data-set</LI>
     
    7071        <LI><SPAN CLASS="codetxt">get_Variables:</SPAN> Function to get a list of variables from an existing file</LI>
    7172        <LI><SPAN CLASS="codetxt">getvalues_lonlat:</SPAN> Function to retrieve the values from the closest grid point to a set of longitude, latitude values</LI>
    72         <LI><SPAN CLASS="codetxt">grattr:</SPAN> Function to read a global atribute</LI>
     73        <LI><SPAN CLASS="codetxt">grattr:</SPAN> Function to read a global attribute</LI>
    7374        <LI><SPAN CLASS="codetxt">grmattr:</SPAN> Removing a global attribute</LI>
    7475        <LI><SPAN CLASS="codetxt">idims:</SPAN> Give all the dimensions names of a file</LI>
     
    8182        <LI><SPAN CLASS="codetxt">LMDZ_toCF:</SPAN> Function to pass a LMDZ original file to CF-conventions</LI>
    8283        <LI><SPAN CLASS="codetxt">maskvar:</SPAN> Function to mask a variable using a mask. It is assumed that mask[...,dimM,dimJ,dimK] and </LI>
    83         <LI><SPAN CLASS="codetxt">model_characteristics:</SPAN> Function to provide major characterisitcs of a given model output</LI>
     84        <LI><SPAN CLASS="codetxt">model_characteristics:</SPAN> Function to provide major characteristics of a given model output</LI>
    8485        <LI><SPAN CLASS="codetxt">ncreplace:</SPAN> Function to replace something from a netCDF file</LI>
    85         <LI><SPAN CLASS="codetxt">ncstepdiff:</SPAN> Function to compute differencies between time-steps (deacumulate) a netCDF file</LI>
     86        <LI><SPAN CLASS="codetxt">ncstepdiff:</SPAN> Function to compute differences between time-steps (de-accumulate) a netCDF file</LI>
    8687        <LI><SPAN CLASS="codetxt">netcdf_concatenation:</SPAN> Function to concatenate netCDF files for a given set of variables</LI>
    8788        <LI><SPAN CLASS="codetxt">netcdf_fold_concatenation:</SPAN> Function to concatenate netCDF files in a given folder for a given set of variables</LI>
    8889        <LI><SPAN CLASS="codetxt">netcdf_fold_concatenation_HMT:</SPAN> Function to concatenate netCDF files in a given folder for a given set of variables giving Header, Middle, Tail for the name files</LI>
    89         <LI><SPAN CLASS="codetxt">reproject:</SPAN> Function to reproject values to another one</LI>
     90        <LI><SPAN CLASS="codetxt">reproject:</SPAN> Function to re-project values to another one</LI>
    9091        <LI><SPAN CLASS="codetxt">Partialmap_Entiremap:</SPAN> Function to transform from a partial global map (e.g.: only land points) to an entire one Coincidence of points is done throughout a first guess from fractions of the total domain of search</LI>
    9192        <LI><SPAN CLASS="codetxt">Partialmap_EntiremapFor:</SPAN> Function to transform from a partial global map (e.g.: only land points) to an entire one using Fortran code Coincidence of points is done throughout a first guess from fractions of the total domain of search</LI>
    9293        <LI><SPAN CLASS="codetxt">Partialmap_EntiremapForExact:</SPAN> Function to transform from a partial global map (e.g.: only land points) to an entire one using Fortran code with exact location Coincidence of points is done throughout a first guess from fractions of the total domain of search</LI>
    9394        <LI><SPAN CLASS="codetxt">pinterp:</SPAN> Function to vertically interpolate using subroutines from the p_interp.F90 NCAR program</LI>
    94         <LI><SPAN CLASS="codetxt">remapnn:</SPAN> Function to remap to the nearest neightbor a variable using projection from another file</LI>
     95        <LI><SPAN CLASS="codetxt">remapnn:</SPAN> Function to remap to the nearest neighbor a variable using projection from another file</LI>
    9596        <LI><SPAN CLASS="codetxt">seasmean:</SPAN> Function to compute the seasonal mean of a variable</LI>
    9697        <LI><SPAN CLASS="codetxt">sellonlatbox:</SPAN> Function to select a lotlan box from a data-set</LI>
    9798        <LI><SPAN CLASS="codetxt">sellonlatlevbox:</SPAN> Function to select a lotlan box and a given level from a data-set</LI>
    9899        <LI><SPAN CLASS="codetxt">selvar:</SPAN> Function to select a series of variables from a netcdf file. Variables with </LI>
    99         <LI><SPAN CLASS="codetxt">setvar_asciivalues:</SPAN> Function to set de values of a variable with an ASCII file (common </LI>
     100        <LI><SPAN CLASS="codetxt">setvar_asciivalues:</SPAN> Function to set the values of a variable with an ASCII file (common </LI>
    100101        <LI><SPAN CLASS="codetxt">sorttimesmat:</SPAN> Function to sort the time values of a given file</LI>
    101102        <LI><SPAN CLASS="codetxt">spacemean:</SPAN> Function to retrieve a space mean series from a multidimensional variable of a file</LI>
    102103        <LI><SPAN CLASS="codetxt">SpatialWeightedMean:</SPAN> Function to compute the spatial mean using weights from a netCDF file</LI>
    103104        <LI><SPAN CLASS="codetxt">statcompare_files:</SPAN> Python script to statistically compare two different files</LI>
    104         <LI><SPAN CLASS="codetxt">subbasin:</SPAN> Function to retrieve the subbasin (all the sub-flows untila a given lon,lat)</LI>
     105        <LI><SPAN CLASS="codetxt">subbasin:</SPAN> Function to retrieve the subbasin (all the sub-flows until a a given lon,lat)</LI>
    105106        <LI><SPAN CLASS="codetxt">submns:</SPAN> Function to retrieve a series of months from a file</LI>
    106107        <LI><SPAN CLASS="codetxt">subyrs:</SPAN> Function to retrieve a series of years from a file</LI>
     
    119120        <LI><SPAN CLASS="codetxt">varrm:</SPAN> Removing a variable from a file</LI>
    120121        <LI><SPAN CLASS="codetxt">VarVal_FillValue:</SPAN> Function to transform a given value from a given variable to _FillValue in a netCDF file</LI>
    121         <LI><SPAN CLASS="codetxt">vrattr:</SPAN> Function to remove an atribute from a variable</LI>
     122        <LI><SPAN CLASS="codetxt">vrattr:</SPAN> Function to remove an attribute from a variable</LI>
    122123        <LI><SPAN CLASS="codetxt">WRF_d0Nref:</SPAN> Function for the generation of an extra WRF domain from a given one </LI>
    123124        <LI><SPAN CLASS="codetxt">WRF_CFlonlat_creation:</SPAN> Function to add a CF-convention longitude/latitude variables in a WRF file</LI>
  • trunk/tools/documentation/nctransform/nctransform.html

    r1212 r1237  
    77  <BODY>
    88    <DIV CLASS="colmenu">
     9      <A CLASS="lc" HREF="compute_opersvarsfiles.html" TARGET="value">compute_opersvarsfiles</A><BR>
    910      <A CLASS="lc" HREF="field_stats.html" TARGET="value">field_stats</A><BR>
    1011    </DIV>
  • trunk/tools/nc_var.py

    r1233 r1237  
    3232## e.g. # nc_var.py -o field_stats_dim -f /home/lluis/PY/wrfout_d01_2001-11-11_00:00:00 -S 'full,None,None,west_east,XLONG,False' -v 'T2'
    3333## e.g. # nc_var.py -o compute_opersvarsfiles -S 'west_east|XLONG|-1;south_north|XLAT|-1;Time|Times|3@add|wrfout_d01_2001-11-11_00:00:00|T2%west_east|XLONG|-1;south_north|XLAT|-1;Time|Times|3@subc,273.15|wrfout_d01_2001-11-11_00:00:00|None' -v 'tempC,air!temperature,C'
     34## e.g. # nc_var.py -o compute_opersvarsfiles -S 'lon|lon|-1;lat|lat|-1;time_counter|time_counter|-1@forwrdderiv,1,1,2|/ccc/store/cont003/gen7593/fitaborl/etudes/DynamicoESM/aquaplanet/AR40/19800101000000-19810101000000/histday.nc|t2m' -v 'tasderiv,x-derivative|of|air|temperature,K
     35
    3436
    3537from optparse import OptionParser
  • trunk/tools/nc_var_tools.py

    r1236 r1237  
    68846884def compute_opersvarsfiles(values, varinfo):
    68856885    """ Function to compute opersvarfiles: operation of variables from different files
    6886       (OPER1.FILE1_VAR1 OPER2.FILE2_VAR2), operations are going to be secuentially
    6887       made
     6886      (OPER1.FILE1_VAR1 OPER2.FILE2_VAR2), operations are going to be sequentially made
     6887      compute_opersvarsfiles(values, varinfo)
    68886888        values= '%' separated list of dimension ranges and file,operation,variable to compute
    68896889          [dimranges1]@[operfile1var]%[dimranges2]@[operfile2var]%[...[dimrangesM]@[operfileMvar]]
Note: See TracChangeset for help on using the changeset viewer.