source: trunk/LMDZ.TITAN/DOC/utilities.tex @ 3094

Last change on this file since 3094 was 987, checked in by jleconte, 12 years ago

11/06/2013 == JL+EM

  • User manual (+ sources) added in DOC.
File size: 3.6 KB
Line 
1\chapter{Utilities}
2
3\label{sc:utilities}
4
5A few post-processing tools, which handle GCM outputs (files
6{\tt diagfi.nc} and {\tt stats.nc}) are available on the web at:\\
7\verb+http://www.lmd.jussieu.fr/~forget/datagcm/Utilities/+\\
8The directory contains compiled executables (\verb+*.e+ files) of the tools
9decribed below, along with some examples of input instruction
10(\verb+*.def+ files) and a \verb+README+.\\
11There is also a \verb+SOURCES+ directory which contains the (Fortran)
12sources of the codes, if you should need to recompile them
13on your platform.
14
15\section{concatnc}
16This program concatenates consecutive
17output files ({\tt diagfi.nc} or even {\tt stats.nc} files) for a selection of
18variable, in order to obtain one single big file.
19The time dimension of the output can
20be "sols" or "Ls" (note that in that latter case, Ls values won't be
21evenly distributed, and
22software like Grads may not be able to use and plot the data).\\
23To obtain an evenly sampled "Ls"
24timescale, you can use the {\tt lslin.e} program (described below).\\
25The output file created by {\tt conctanc.e} is {\tt concat.nc}
26
27\section{lslin}
28
29This program is designed to interpolate data given
30in  irregular Solar Longitude (Ls) into an evenly sampled
31linear time coordinate (usable with Grads).
32Input Netcdf files may be {\tt diagfi.nc} or {\tt concat.nc} 
33files and the resulting
34output file is {\tt lslin.nc}
35lslin also create a {\tt lslin.ctl} file that can be read
36directly by grads (\verb+>xdfopen lslin.ctl+) to plot in Ls coordinate to
37avoid some problem with grads when Grads think that "the time interval
38is too small"...
39
40\section{localtime}
41
42The {\tt localtime.e} program is designed to re-interpolate data in order
43to yield values at the same given local time (useful to mimic satellite
44observations, or analyse day to day variations at given local time).\\
45Input files may be of {\tt diagfi.nc}, {\tt stats.nc} or {\tt concat.nc}
46type and the output file name is build from the input one, to which
47{\tt \_LT.nc} is appened (e.g. if the input file is {\tt myfile.nc} then
48output file will be {\tt myfile\_LT.nc}).
49
50\section{zrecast}
51With this program you can recast atmospheric (i.e.: 4D-dimentional
52longitude-latitude-altitude-time) data from GCM outputs (e.g. as given in
53{\tt diagfi.nc}, {\tt concat.nc} and {\tt stats.nc} files) onto
54either {\it pressure} or {\it altitude above areoid} vertical coordinates.\\
55Since integrating the hydrostatic equation is required to recast the data,
56the input file must contain surface pressure and atmospheric temperature,
57as well as the ground geopotential.\\
58If recasting data onto {\it pressure} coordinates, then the output file name
59is given by the input file name to which {\tt\_P.nc} will be appened.
60If recasting data onto {\it altitude above areoid} coordinates, then a
61{\tt\_A.nc} will be appened.
62
63
64%\section{How to concat diagfi files?}
65%In the directory concatnc (available on the web at
66%http://www.lmd.jussieu.fr/\verb+~+forget/datagcm/Utilities/),
67%you will find a tool to concat the diagfi files.
68%To compile, juste type "make"
69%(make sure the makefile is updated: FC= pgf90 for PC and FC= f90 for suns).\\ \\
70%run concatnc.e \\ \\
71%Your data are in concat.nc
72%
73%\section{How to convert your output in pressure coordinates?}
74%In your working directory, compile at the correct grid resolution, which is
75%the same as the one of your output files (stats or diagfi).\\ \\
76%makegcm  -d 64x48x32  -p mars anl\_stats-diag \\ \\
77%run anl\_stats-diag.e
78%Your data in pressure coordinate will be in the resuting diagfi.nc
79%(or stats.nc). \\
80%If needed, you can change the source file anl\_stats-diag.F in
81%yourpath/LMDZ.MARS/libf/dyn3d
Note: See TracBrowser for help on using the repository browser.