1 | <HTML> |
---|
2 | <HEAD> |
---|
3 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> |
---|
4 | <LINK REL="stylesheet" TYPE="text/css" HREF="../PyNCplot.css"/> |
---|
5 | </HEAD> |
---|
6 | |
---|
7 | </HEAD> |
---|
8 | <BODY> |
---|
9 | <DIV CLASS="valheader"> |
---|
10 | CFmorzization |
---|
11 | </DIV> |
---|
12 | <DIV CLASS="valimg"> |
---|
13 | <P STYLE="text-align:left;"> |
---|
14 | Provide a CF-compilation version of a variable within a file. |
---|
15 | See further details at: |
---|
16 | <UL> |
---|
17 | <LI><A HREF="http://cordex.org/publications/report-and-document-archives/" TARGET="_blank" CLASS="lc">Christensen, Gutowski, Nikulin, and Legutke; 2013. CORDEX Archive Design</A></LI> |
---|
18 | <LI><A HREF="http://cmip-pcmdi.llnl.gov/cmip5/output_req.html#metadata" TARGET="_bkan" CLASS="lc">Taylor, K., and C. Doutriaux, 2011. CMIP5 Model Output Requirements: File Contents and Format, Data Structure and Meta Data</A></LI> |
---|
19 | </UL> |
---|
20 | </P> |
---|
21 | </DIV> |
---|
22 | <DIV CLASS="valhelp"> |
---|
23 | varaddattr(values, ncfile, varn)<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> |
---|
98 | </DIV> |
---|
99 | <DIV CLASS="valins"> |
---|
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' |
---|
106 | </DIV> |
---|
107 | </BODY> |
---|
108 | </HTML> |
---|
109 | |
---|