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.
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.
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.
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.
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.