Newer
Older
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
enact2fb.exe outputfile inputfile1 inputfile2 ...
\end{cmds}
%% =================================================================================================
\subsubsection{fbcomb}
The program fbcomb combines multiple feedback files produced by individual processors in
an MPI run of \NEMO\ into a single feedback file.
It is called in the following way:
\begin{cmds}
fbcomb.exe outputfile inputfile1 inputfile2 ...
\end{cmds}
%% =================================================================================================
\subsubsection{fbmatchup}
The program fbmatchup will match observations from two feedback files.
It is called in the following way:
\begin{cmds}
fbmatchup.exe outputfile inputfile1 varname1 inputfile2 varname2 ...
\end{cmds}
%% =================================================================================================
\subsubsection{fbprint}
The program fbprint will print the contents of a feedback file or files to standard output.
Selected information can be output using optional arguments.
It is called in the following way:
\begin{cmds}
fbprint.exe [options] inputfile
options:
-b shorter output
-q Select observations based on QC flags
-Q Select observations based on QC flags
-B Select observations based on QC flags
-u unsorted
-s ID select station ID
-t TYPE select observation type
-v NUM1-NUM2 select variable range to print by number
(default all)
-a NUM1-NUM2 select additional variable range to print by number
(default all)
-e NUM1-NUM2 select extra variable range to print by number
(default all)
-d output date range
-D print depths
-z use zipped files
\end{cmds}
%% =================================================================================================
\subsubsection{fbsel}
The program fbsel will select or subsample observations.
It is called in the following way:
\begin{cmds}
fbsel.exe <input filename> <output filename>
\end{cmds}
%% =================================================================================================
\subsubsection{fbstat}
The program fbstat will output summary statistics in different global areas into a number of files.
It is called in the following way:
\begin{cmds}
fbstat.exe [-nmlev] <filenames>
\end{cmds}
%% =================================================================================================
\subsubsection{fbthin}
The program fbthin will thin the data to 1 degree resolution.
The code could easily be modified to thin to a different resolution.
It is called in the following way:
\begin{cmds}
fbthin.exe inputfile outputfile
\end{cmds}
%% =================================================================================================
\subsubsection{sla2fb}
The program sla2fb will convert an AVISO SLA format file to feedback format.
It is called in the following way:
\begin{cmds}
sla2fb.exe [-s type] outputfile inputfile1 inputfile2 ...
Option:
-s Select altimeter data_source
\end{cmds}
%% =================================================================================================
\subsubsection{vel2fb}
The program vel2fb will convert TAO/PIRATA/RAMA currents files to feedback format.
It is called in the following way:
\begin{cmds}
vel2fb.exe outputfile inputfile1 inputfile2 ...
\end{cmds}
%% =================================================================================================
\subsection{Building the obstools}
To build the obstools use in the tools directory use ./maketools -n OBSTOOLS -m [ARCH].
%% =================================================================================================
\subsection{Dataplot}
An IDL program called dataplot is included which uses a graphical interface to
visualise observations and feedback files. Note a similar package has recently developed in python (also called dataplot) which does some of the same things that the IDL dataplot does. Please contact the authors of the this chapter if you are interested in this.
It is possible to zoom in, plot individual profiles and calculate some basic statistics.
To plot some data run IDL and then:
\begin{verbatim}
IDL> dataplot, "filename"
\end{verbatim}
To read multiple files into dataplot,
for example multiple feedback files from different processors or from different days,
the easiest method is to use the spawn command to generate a list of files which can then be passed to dataplot.
\begin{verbatim}
IDL> spawn, 'ls profb*.nc', files
IDL> dataplot, files
\end{verbatim}
\autoref{fig:OBS_dataplotmain} shows the main window which is launched when dataplot starts.
This is split into three parts.
At the top there is a menu bar which contains a variety of drop down menus.
Areas - zooms into prespecified regions;
plot - plots the data as a timeseries or a T-S diagram if appropriate;
Find - allows data to be searched;
Config - sets various configuration options.
The middle part is a plot of the geographical location of the observations.
This will plot the observation value, the model background value or observation minus background value depending on
the option selected in the radio button at the bottom of the window.
The plotting colour range can be changed by clicking on the colour bar.
The title of the plot gives some basic information about the date range and depth range shown,
the extreme values, and the mean and RMS values.
It is possible to zoom in using a drag-box.
You may also zoom in or out using the mouse wheel.
The bottom part of the window controls what is visible in the plot above.
There are two bars which select the level range plotted (for profile data).
The other bars below select the date range shown.
The bottom of the figure allows the option to plot the mean, root mean square, standard deviation or
mean square values.
As mentioned above you can choose to plot the observation value, the model background value or
observation minus background value.
The next group of radio buttons selects the map projection.
This can either be regular longitude latitude grid, or north or south polar stereographic.
The next group of radio buttons will plot bad observations, switch to salinity and
plot density for profile observations.
The rightmost group of buttons will print the plot window as a postscript, save it as png, or exit from dataplot.
\begin{figure}
\centering
\includegraphics[width=0.66\textwidth]{OBS_dataplot_main}
\caption{Main window of dataplot}
\label{fig:OBS_dataplotmain}
\end{figure}
If a profile point is clicked with the mouse button a plot of the observation and background values as
a function of depth (\autoref{fig:OBS_dataplotprofile}).
\begin{figure}
\centering
\includegraphics[width=0.66\textwidth]{OBS_dataplot_prof}
\caption[Profile plot from dataplot]{
Profile plot from dataplot produced by right clicking on a point in the main window}
\label{fig:OBS_dataplotprofile}
\end{figure}
\subinc{\input{../../global/epilogue}}
\end{document}