note20100730
On ngcmdargs.c
added -h option to help the user on the usage of sofware.

Modify ngReadData to pass back bad and badlim to main.
These are required to write the localfit file with info about data
gridded data marked as bad. 
For this purpose, nglfit.h, nglfit.c and ngsonde.c were modified.
Since bad and badlim values have to propagate to the global fit,
we also need to modify nggfit.c and nggfit.h

modified ngsonde.c, ngcmdargs.c, ngcmdargs.h to add as comments
the calling parameters and to add storm motionto the parameters section
of the output. 
note20100803
This changes were Committed as revision 205.
I have change the user command line:
1) eliminate the need to specify the for lon lat and pres
2) eliminate the need for naming output fields
   the ouput fileds are named the same as the input field
   (ngsonde reads from stdin and writes to stdout)
3) eliminate need to specify smothing parameters for each field
   They all have the same parameters.
4) add options to specify horizontal and vertical smoothing
5) the grid specification is broken up in three parts
   --lon lon0:dlon:Nlon
   --lat lat0:dlat:Nlat
   --alt alt0:dalt:Nalt
   each represent initial point : grid step : number of points
6) replace option -n with --nfe they amount to the same thing, but
   --nfe is what we used in ng3dvar.
7) also added the option --gph varname 
   to specify the name of an altitude variable that should be used
   to decide where in the grid is the data. If this option is not
   used, then the pressure is used to obtain the vertical location
   on the grid via the standard atmosphere defined in the code.

Note : a  summary of the new options is displayed by typing ngsonde -h

Besides the command line parameters, I also fix a bug in the initialization
field. (bug: counter of data points was not reset when changing levels)

Furthermore, I include a function to add a contribution of a background
field. This is in function ng3dvar_tf_bgf.c  which is accompanied by 
ng3dvar_tf_bgf.h 
So far the background field is not used (the parameter bgfW is set to zero).
We are thinking on removing the background field contribution from the
code. I just going to leave here in case we later on decided to use it.
note20100805
In order to make the software more readeble,
I have replaced ng3dvar_tf_ngrad.c with ngsonde_tf_misfit.c 
and  ng3dvar_tf_ngrad.h with ngsonde_tf_misfit.h 
(
 svn delete ng3dvar_tf_ngrad.c
 svn delete ng3dvar_tf_ngrad.h
 svn add ngsonde_tf_misfit.c
 svn add ngsonde_tf_misfit.h
)

So, I also have to change the corresonding part in nggfit.c and the Makefile
The reason for this change is that ng3dvar_tf_ngrad.c was
originally written to work with radar data and it was adapted
for sonde data, but there were many references to velocity fields
that really refer to the analyzed field of the sonde.

I also change the behavior of the program when it was called with no
arguments, so it displays the usage massage.


note20100806
In this revision I have modified the initialization procedure.
Now it has it own function -- fun_ini. This function initialize
the field to be equal to the hoirizontal average of the sounding data.
for layers that do not have data, but are sandwiched by good data, a 
cubic spline interpolation is used. For layers not bounded on 
both sides by good horizontal averages, we simply fill them with the
value of the closest good horizontal average.

I also fix the headers in  ng3dvar_tf_bgf.c
note20100809
For this version:
1) Correct usage message: the = sign is eliminated from some options. 
2) first version of man page has been added (groff formated).
3) make file has been modified to built the html version of man page from
	 the groff version.
4) I svn-deleted all test directories.

