1 | This directory contains executable files (and their source) that can be |
---|
2 | used to process the LMD Mars GCM output files (like "diagfi" or |
---|
3 | "stats"), whatever the dimension. |
---|
4 | In addition most output file from one of these program can be |
---|
5 | processes by another. |
---|
6 | |
---|
7 | The executable files should run on any Linux platform. |
---|
8 | |
---|
9 | Inputs can be provided by (1) replying to questions on screen or |
---|
10 | (2) filling the corresponding *.def and direct the input of these *.def |
---|
11 | files instead. For example : |
---|
12 | > concatnc.e < concatnc.def |
---|
13 | > zrecast.e < zrecast.def |
---|
14 | |
---|
15 | -------------------------------------------------------------------- |
---|
16 | 1) concatnc.e |
---|
17 | -------------------------------------------------------------------- |
---|
18 | |
---|
19 | This program is used to concatenate consecutive |
---|
20 | output files ("diagfi", and even "stats") for a selection of |
---|
21 | variable, in order to obtain one single big file. The time simension can |
---|
22 | be "sols" or "Ls" (in that last case, Ls will not be linear, and |
---|
23 | software like Grads may not be able to use it. To have a linear "Ls" |
---|
24 | timescale, you can use "Ls_Linear.e" (see below). |
---|
25 | |
---|
26 | Output file is : concat.nc |
---|
27 | |
---|
28 | MODIFICATION: |
---|
29 | 07/2008 Utility concatnc.F90 (not used by the gcm): improvement in order |
---|
30 | to 1) concatenate 1D variable and 2) increase the number of input files |
---|
31 | up to 1000 |
---|
32 | |
---|
33 | |
---|
34 | -------------------------------------------------------------------- |
---|
35 | 2) localtime.e |
---|
36 | -------------------------------------------------------------------- |
---|
37 | |
---|
38 | Program to redistribute and interpolate the variable a the same |
---|
39 | local times everywhere (useful to mimic satellite observations, or |
---|
40 | analyse day to day variations at a given local time). |
---|
41 | input : diagfi.nc / concat.nc / stats.nc kind of files |
---|
42 | |
---|
43 | output file is : |
---|
44 | name_of_input_file_LT.nc with pressure coordinate |
---|
45 | |
---|
46 | -------------------------------------------------------------------- |
---|
47 | 3) zrecast.e |
---|
48 | -------------------------------------------------------------------- |
---|
49 | |
---|
50 | This program reads 4D (lon-lat-alt-time) fields from GCM output files |
---|
51 | (ie: diagfi.nc time series or concat.nc or stats.nc files) and, by |
---|
52 | integrating the hydrostatic equation, recasts data along the vertical |
---|
53 | direction. |
---|
54 | The vertical coordinate can be either "above areoid altitudes" or |
---|
55 | "pressure". Some interpolation along the vertical direction is also |
---|
56 | done, following instructions given by user. |
---|
57 | For "above areoid altitudes" output, Atmospheric pressure is added to |
---|
58 | output dataset; for "pressure coordinate" outputs, the above areoid |
---|
59 | altitude of pressure is added to output dataset. |
---|
60 | |
---|
61 | Minimal requirements and dependencies: |
---|
62 | The dataset must include the following data: |
---|
63 | - surface pressure |
---|
64 | - atmospheric temperature |
---|
65 | - hybrid coordinates aps() and bps(), or sigma levels() (see section |
---|
66 | 1.3.2) |
---|
67 | - ground geopotential (in input file; if not found, it is sought |
---|
68 | in a 'diagfi.nc' file. If not found there, it is then sought in |
---|
69 | a 'phisinit.nc' file (see section 1.3.3 of program) |
---|
70 | |
---|
71 | - When integration the hydrostatic equation, we assume that R, the |
---|
72 | molecular Gas Constant, may not be constant, so it is computed as |
---|
73 | R=P/(rho*T) (P=Pressure, rho=density, T=temperature) |
---|
74 | If 'rho' is not available, then we use a constant R (see section |
---|
75 | 2.2 in source file) |
---|
76 | |
---|
77 | output file is : |
---|
78 | name_of_input_file_P.nc with pressure coordinate |
---|
79 | name_of_input_file_Z.nc with altitude above areoid coordinate |
---|
80 | |
---|
81 | MODIFICATION : |
---|
82 | 01/2010 : correction to interpolate above surface if density is not available. |
---|
83 | |
---|
84 | -------------------------------------------------------------------- |
---|
85 | 4) lslin.e |
---|
86 | -------------------------------------------------------------------- |
---|
87 | |
---|
88 | This program has been designed to interpol data in Solar Longitude (Ls) |
---|
89 | linear time coordinate (usable with grads) from Netcdf diagfi or concatnc |
---|
90 | files. |
---|
91 | output file is : lslin.nc |
---|
92 | lslin also create a lslin.ctl file that can be read |
---|
93 | directly by grads (>xdfopen lsllin.ctl) to plot in Ls coordinate to |
---|
94 | avoid some problem with grads when grads think that "the time interval |
---|
95 | is too small"... |
---|
96 | |
---|
97 | MODIFICATION |
---|
98 | 10/2007 Utility lslin.F90 (not used by the gcm) |
---|
99 | changed evaluation of 'start_var' from hard-coded values to a computed value |
---|
100 | |
---|
101 | |
---|
102 | |
---|
103 | -------------------------------------------------------------------- |
---|
104 | 5) hrecast.e |
---|
105 | -------------------------------------------------------------------- |
---|
106 | |
---|
107 | This program can interpolate GCM output on any horizontal grid (regular lat - lon) as long as it cover all the |
---|
108 | planet. The grid can be given points by points. The best way is to use the redirected input hrecast.def |
---|
109 | |
---|
110 | hrecast.e < hrecast.def |
---|
111 | |
---|
112 | |
---|
113 | |
---|
114 | |
---|