NAME

procexample - an example of how to run profiler processing from the pop .spc files through netcdf wind files

DESCRIPTION

EXAMPLE:

For this example let's say that the current directory has been set up with the following subdirectories: pop, spc, mom_pop, mom_raw, mom_ww, wnd. The only subdirectory that has any files in it is the pop directory, which has the files created by pop. For our example, the files in the pop directory are d93168a.spc and h93168a.spc, and we want to create an hourly averaged and quality controlled wind file for the first hour of that day. To do this the following would be typed in at the keyboard.

 

profiler_to_netcdf -f ./pop/d93168a.spc -o ./spc

mv ./spc/*.mom ./mom_pop

spc_to_mom_hs -s "1993-06-17 00:00:00" -e "1993-06-17 01:00:00" \

-i ./spc -o ./mom_raw

qc_mom_ww -s "1993-06-17 00:00:00" -e "1993-06-17 01:00:00" \

-i ./mom_raw -o ./mom_ww

mom_to_wind_etl -s "1993-06-17 00:00:00" -e "1993-06-17 01:00:00" \

-i ./mom_ww -o ./wnd

This example will do exactly the same as the above but includes all the available options just to show the syntax. They are set to the defaults so should give exactly the same results as the preceding example.

 

profiler_to_netcdf -d ./pop -s 17-jun-93,00:00:00 -h 1 -o ./spc

mv ./spc/*.mom ./mom_pop

spc_to_mom_hs -s "1993-06-17 00:00:00" -e "1993-06-17 01:00:00" \

-i ./spc -o ./mom_raw

qc_mom_ww -s "1993-06-17 00:00:00" -e "1993-06-17 01:00:00" \

-i ./mom_raw -o ./mom_ww -t "01:00:00" -T "01:00:00" \

-q 10 -x 0 -z "01:00:00" -y 1.2 -n -30 -m 10 -d 2.1 -h 2.1 \

-Y 1.2 -N -30 -M 10 -D 2.1 -h 2.1

mom_to_wind_etl -s "1993-06-17 00:00:00" \

-e "1993-06-17 01:00:00" -i ./mom_ww -o ./wnd -t "01:00:00" \

-T "01:00:00" -f 100 -l 4000 -h 100 -H 100 -z "01:00:00" \

-m 700 3300 -r 1000 -q 10

 

To create an hourly averaged and quality controlled wind file for every hour in that day, do the following:(Notice that for this example I chose to set the environmental variables instead of providing the -i and -o options. That way it can be specified only once instead of on at every command.)

 

profiler_to_netcdf -f ./pop/d93168a.spc -o ./spc

mv ./spc/*.mom ./mom_pop

setenv INPUT_DIR ./spc

setenv OUTPUT_DIR ./mom_raw

spc_to_mom_hs -s "1993-06-17 00:00:00" -e "1993-06-18 00:00:00"

setenv INPUT_DIR ./mom_raw

setenv OUTPUT_DIR ./mom_ww

qc_mom_ww -s "1993-06-17 00:00:00" -e "1993-06-18 00:00:00"

setenv INPUT_DIR ./mom_ww

setenv OUTPUT_DIR ./wnd

mom_to_wind_etl -s "1993-06-17 00:00:00" -e "1993-06-17 01:00:00"

mom_to_wind_etl -s "1993-06-17 01:00:00" -e "1993-06-17 02:00:00"

mom_to_wind_etl -s "1993-06-17 02:00:00" -e "1993-06-17 03:00:00"

.

.

.

mom_to_wind_etl -s "1993-06-17 23:00:00" -e "1993-06-18 00:00:00"

 

SEE ALSO

profiler_to_netcdf, spc_to_mom_hs, qc_mom_ww, mom_to_wind_etl