Changeset 1860 in lmdz_wrf
- Timestamp:
- Mar 25, 2018, 9:28:23 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/documentation/ncmanage/CFmorzization.html
r1859 r1860 22 22 <DIV CLASS="valhelp"> 23 23 varaddattr(values, ncfile, varn)<BR> 24 &bnsp;&bnsp;values=[dimvarns]:[globattrfile]:[projectfile]<BR> 25 &bnsp;&bnsp;&bnsp;&bnsp;[dimvarns]: ',' separated list for identification of axes, dimensions and <BR> 26 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;variable-dimensions as '[AXIS]|[dimn]|[vardimn]'<BR> 27 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;[AXIS]: axis of the file: 'X', 'Y', 'Z', or 'T'<BR> 28 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;[dimn]: name of the current name of the dimension of the given axis<BR> 29 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;[vardimn]: name of the current name of the variable-dimension of the <BR> 30 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;given axis<BR> 31 &bnsp;&bnsp;&bnsp;&bnsp;[globattrfilen]: name of ASCII file with the given metadata to be added as global attributes<BR> 32 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;with a line per attribute [attrname] [value](use '!' for spaces] (underparenthesis for description)<BR> 33 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;use '#' for comments<BR> 34 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;File has to have at least:<BR> 35 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;institute_id [value] (CV)<BR> 36 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;institution [value]<BR> 37 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;model_id [value] (CORDEX starts with <institute_id>-)<BR> 38 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;experiment_id [value] (same CV as CMIP5 with "evaluation" in addition)<BR> 39 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;experiment [value] (long version of "experiment_id")<BR> 40 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;contact [value] ([Name], [email] of contact person)<BR> 41 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;product [value] (single value: "output")<BR> 42 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;Conventions [value] (later than CF1.4 if present / single value: "CF-1.4")<BR> 43 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;creation_date [value] ([YYYY-MM-DDTHH:MM:SSZ] format according to UNIDATA conventions, same in CMIP5 & CORDEX)<BR> 44 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;frequency [value] (same CV as CMIP5 with "sem" in addition; 3hr highest freq. in CORDEX; no "yr")<BR> 45 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;driving_model_id [value] (CMIP5 institute_id, <CMIP5 institute_id>-<member in CMIP5 CV list of model_id>)<BR> 46 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;driving_model_ensemble_member [value] (CMIP5 CV, e.g. "r1i1p1")<BR> 47 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;driving_experiment_name [value] ("evaluation" or <member in CMIP5 CV list of experiment_id>)<BR> 48 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;driving_experiment [value] ("<driving_model_id>,<driving_experiment_name>,<driving_model_ensemble_member>", <BR> 49 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;members of the CMIP5 list of forcing agents are not necessarily forcing agents of RCM (besides implicitly<BR> 50 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;in driving_experimnt)<BR> 51 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;rcm_version_id [value] (<free text string>; valid characters only indicates model modifs during the project<BR> 52 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;e.g.: parameterizations, small upgrades)<BR> 53 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;project_id [value] (single value)<BR> 54 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;CORDEX_domain [value] ((e.g.: "AFR-44", "AFR-44i", includes resolution acronym)<BR> 55 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;tracking_id [value] (not required or explained in ADD; it is, however, strongly recommended to include it <BR> 56 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;as prescribed CMIP5.)<BR> 57 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;basetime [value] (reference time "1949-12-01T00:00:00Z" formatted acording to UNIDATA conventions)<BR> 58 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;calendar [value] (CF conventions as in driving model)<BR> 59 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;grid [value] (according to CF conventions)<BR> 60 &bnsp;&bnsp;&bnsp;&bnsp;[projectfile]: ASCII file with all the CF-mandatory projection information. A line for each attribute. Name of <BR> 61 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;the variable to be used to refer the projection inside the file will be the same as global attribute `grid'<BR> 62 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;See more information from: <A HREF="http://cfconventions.org/Data/cf-conventions/cf-conventions-1.7/build/ch05s06.html" TARGET="_blan" CLASS="lc">CF-conventions</A><BR> 63 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp; (...) (specific projection attributes and values)<BR> 64 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp; [name] [value] [kind] ('I': integer, 'R': float, 'D': double float, 'S': string)<BR> 65 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp; Add three more attributes for the resolution of the projection:<BR> 66 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp; x_resolution [value] (resolution along x-axis)<BR> 67 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp; y_resoltuion [value] (resolution along y-axis)<BR> 68 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp; proj_units [value] (units of the resoltion of the projection)<BR> 69 &bnsp;&bnsp;ncfile= netCDF file to use<BR> 70 &bnsp;&bnsp;variable= ',' list of [varfn]@[method]@[Tbnds] to CF transform. A separated file will be <BR> 71 &bnsp;&bnsp;&bnsp;&bnsp;created for each variable<BR> 72 &bnsp;&bnsp;&bnsp;&bnsp;use [varfn]@instantaneous@None for instantaneous values<BR> 73 &bnsp;&bnsp;&bnsp;&bnsp;NOTE: CF values will be taken from 'variables_values.dat'<BR> 74 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;[varfn]: name of the variable inside the file<BR> 75 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;[method]: cell_method of the variable ('!' for spaces) uing, standard CF description:<BR> 76 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;<A HREF="http://cfconventions.org/cf-conventions/cf-conventions.html#_data_representative_of_cells" TARGET="_blank" CLASS="lc">CF-conventions cell representation</A><BR> 77 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;[var_time_bnds]: variable with the time_bnds values, or:<BR> 78 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;* 'WRFtime_bnds'|[tunit]|[quantity], to be computed directly from WRF for a given period of time as:<BR> 79 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;[tunit]: unit of time: 'c' century, 'y' year, 'm' month, 'w' week, 'd' day, <BR> 80 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;'h' hour, 'i' minute, 's' second<BR> 81 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;[quantity] = amount (integer) of [tunit] to cover a period of time_bnds<BR> 82 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;* 'Ctime_bnds'|[tvarn]|[tunit]|[quantity], to be computed directly from a variable from a given period of time as:<BR> 83 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;[tvarn]: name of the variable<BR> 84 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;[tunit]: unit of time: 'c' century, 'y' year, 'm' month, 'w' week, 'd' day,<BR> 85 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;'h' hour, 'i' minute, 's' second<BR> 86 &bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;&bnsp;[quantity] = amount (integer) of [tunit] to cover a period of time_bnds<BR> 24 values=[dimvarns]:[globattrfile]:[projectfile]<BR> 25 [dimvarns]: ',' separated list for identification of axes, dimensions and <BR> 26 variable-dimensions as '[AXIS]|[dimn]|[vardimn]'<BR> 27 [AXIS]: axis of the file: 'X', 'Y', 'Z', or 'T'<BR> 28 [dimn]: name of the current name of the dimension of the given axis<BR> 29 [vardimn]: name of the current name of the variable-dimension of the <BR> 30 given axis<BR> 31 [globattrfilen]: name of ASCII file with the given metadata to be added as global attributes<BR> 32 with a line per attribute [attrname] [value](use '!' for spaces] (underparenthesis<BR> 33 for description)<BR> 34 use '#' for comments<BR> 35 File has to have at least:<BR> 36 institute_id [value] (CV)<BR> 37 institution [value]<BR> 38 model_id [value] (CORDEX starts with <institute_id>-)<BR> 39 experiment_id [value] (same CV as CMIP5 with "evaluation" in addition)<BR> 40 experiment [value] (long version of "experiment_id")<BR> 41 contact [value] ([Name], [email] of contact person)<BR> 42 product [value] (single value: "output")<BR> 43 Conventions [value] (later than CF1.4 if present / single value: "CF-1.4")<BR> 44 creation_date [value] ([YYYY-MM-DDTHH:MM:SSZ] format according to UNIDATA<BR> 45 conventions, same in CMIP5 & CORDEX)<BR> 46 frequency [value] (same CV as CMIP5 with "sem" in addition; 3hr highest <BR> 47 freq. in CORDEX; no "yr")<BR> 48 driving_model_id [value] (CMIP5 institute_id, <CMIP5 institute_id>-<BR> 49 <member in CMIP5 CV list of model_id>)<BR> 50 driving_model_ensemble_member [value] (CMIP5 CV, e.g. "r1i1p1")<BR> 51 driving_experiment_name [value] ("evaluation" or <member in CMIP5 CV <BR> 52 list of experiment_id>)<BR> 53 driving_experiment [value] ("<driving_model_id>,<driving_experiment_name>,<driving_model_ensemble_member>", <BR> 54 members of the CMIP5 list of forcing agents are not necessarily<BR> 55 forcing agents of RCM (besides implicitly<BR> 56 in driving_experimnt)<BR> 57 rcm_version_id [value] (<free text string>; valid characters only <BR> 58 indicates model modifs during the project e.g.: parameterizations,<BR> 59 small upgrades)<BR> 60 project_id [value] (single value)<BR> 61 CORDEX_domain [value] ((e.g.: "AFR-44", "AFR-44i", includes resolution acronym)<BR> 62 tracking_id [value] (not required or explained in ADD; it is, however, <BR> 63 strongly recommended to include it as prescribed CMIP5.)<BR> 64 basetime [value] (reference time "1949-12-01T00:00:00Z" formatted acording <BR> 65 to UNIDATA conventions)<BR> 66 calendar [value] (CF conventions as in driving model)<BR> 67 grid [value] (according to CF conventions)<BR> 68 [projectfile]: ASCII file with all the CF-mandatory projection information. A line for each <BR> 69 attribute. Name of the variable to be used to refer the projection inside the file will <BR> 70 be the same as global attribute `grid'<BR> 71 See more information from: <A HREF="http://cfconventions.org/Data/cf-conventions/cf-conventions-1.7/build/ch05s06.html" TARGET="_blan" CLASS="lc">CF-conventions</A><BR> 72 (...) (specific projection attributes and values)<BR> 73 [name] [value] [kind] ('I': integer, 'R': float, 'D': double float, 'S': string)<BR> 74 Add three more attributes for the resolution of the projection:<BR> 75 x_resolution [value] (resolution along x-axis)<BR> 76 y_resoltuion [value] (resolution along y-axis)<BR> 77 proj_units [value] (units of the resoltion of the projection)<BR> 78 ncfile= netCDF file to use<BR> 79 variable= ',' list of [varfn]@[method]@[Tbnds] to CF transform. A separated file will be <BR> 80 created for each variable<BR> 81 use [varfn]@instantaneous@None for instantaneous values<BR> 82 NOTE: CF values will be taken from 'variables_values.dat'<BR> 83 [varfn]: name of the variable inside the file<BR> 84 [method]: cell_method of the variable ('!' for spaces) uing, standard CF description:<BR> 85 <A HREF="http://cfconventions.org/cf-conventions/cf-conventions.html#_data_representative_of_cells" TARGET="_blank" CLASS="lc">CF-conventions cell representation</A><BR> 86 [var_time_bnds]: variable with the time_bnds values, or:<BR> 87 * 'WRFtime_bnds'|[tunit]|[quantity], to be computed directly from WRF for a <BR> 88 given period of time as:<BR> 89 [tunit]: unit of time: 'c' century, 'y' year, 'm' month, 'w' week, 'd' day, <BR> 90 'h' hour, 'i' minute, 's' second<BR> 91 [quantity] = amount (integer) of [tunit] to cover a period of time_bnds<BR> 92 * 'Ctime_bnds'|[tvarn]|[tunit]|[quantity], to be computed directly from a <BR> 93 variable from a given period of time as:<BR> 94 [tvarn]: name of the variable<BR> 95 [tunit]: unit of time: 'c' century, 'y' year, 'm' month, 'w' week, 'd' day,<BR> 96 'h' hour, 'i' minute, 's' second<BR> 97 [quantity] = amount (integer) of [tunit] to cover a period of time_bnds<BR> 87 98 </DIV> 88 99 <DIV CLASS="valins"> 89 $ python ${pyHOME}/nc_var.py -o CFmorzization -S 'X|west_east|XLONG,Y|south_north|XLAT,T|Time|WRFtime,Z|bottom_top|ZNU:GlobalAttr1995.inf:proj1995.inf' -f ~/PY/wrfout_d01_1995-01-01_00\:00\:00 -v QFX@instantaneous@None<BR> 90 $ python ${pyHOME}/nc_var.py -o CFmorzization -S 'X|west_east|XLONG,Y|south_north|XLAT,T|Time|WRFtime,Z|bottom_top|ZNU:GlobalAttr1995.inf:proj1995.inf' -f ~/PY/wrfout_d01_1995-01-01_00\:00\:00 -v 'RAINC@time:!accumulation@WRFtime_bnds|h|3' 100 $ python ${pyHOME}/nc_var.py -o CFmorzization -S 'X|west_east|XLONG,Y|south_north|XLAT,T|Time|WRFtime,Z|<BR> 101 bottom_top|ZNU:GlobalAttr1995.inf:proj1995.inf' -f ~/PY/wrfout_d01_1995-01-01_00\:00\:00 <BR> 102 -v QFX@instantaneous@None<BR> 103 $ python ${pyHOME}/nc_var.py -o CFmorzization -S 'X|west_east|XLONG,Y|south_north|XLAT,T|Time|WRFtime,Z|<BR> 104 bottom_top|ZNU:GlobalAttr1995.inf:proj1995.inf' -f ~/PY/wrfout_d01_1995-01-01_00\:00\:00 <BR> 105 -v 'RAINC@time:!accumulation@WRFtime_bnds|h|3' 91 106 </DIV> 92 107 </BODY>
Note: See TracChangeset
for help on using the changeset viewer.