NAME

spc_to_mom_hs - compute moments from spectra using the hildebrand-sekhon algorithm.

SYNOPSIS

spc_to_mom_hs -s startdate -e enddate [-i inputdir] [-o outputdir]

AVAILABLILTY

this program is in /net/sssf2/profiler/analysis/bin

DESCRIPTION

For all data found in spectra netcdf files between startdate and enddate spc_to_mom_hs computes moments and writes them out to a netcdf file. spc-to-mom looks for the spectra netcdf files in the directory specified in the INPUT_DIR environmental variable or the -i option, and writes the moments netcdf files to the directory specified by the OUTPUT_DIR environmental variable or the -o option. Files are only created for the time period in which data is found. The files are all hourly files.

OPTIONS

-s startdate

 

This is not an optional option. It must be provided. It gives the date and time to start collecting data from. It must be given in the following format:

"yyyy-mm-dd hh:nn:ss" where yyyy=year, mm=month, dd=day, hh=hour, nn=minutes, ss=seconds.

 

-e enddate

 

This is not an optional option. It must be provided. It gives the date and time to stop collecting data. It must be given in the following format:
"yyyy-mm-dd hh:nn:ss" where yyyy=year, mm=month, dd=day, hh=hour, nn=minutes, ss=seconds.

 

-i inputdir

 

specifies the directory in which to find the .mom files to use for calculating winds. If this option is provided it is used. If not, the program looks for the environmental variable INPUT_DIR. If that is not found then it looks in the current working directory.

 

-o outputdir

 

specifies the directory in which to put the newly created .wnd files. If this option is provided it is used. If not, the program looks for the environmental variable OUTPUT_DIR. If that is not found then it puts the new files in the current working directory.

 

FILES

spectra netcdf files of the correct format must be found in the INPUT_DIR directory or the directory specified by the -i option.

SEE ALSO

profiler_to_netcdf, qc_mom_ww, mom_to_wind_etl

NOTES

 

BUGS

There is currently no error checking. If the wrong format, or the input/output directories do not exist a core dump will occor.