nameconv
Sections
NAME
nameconv - Name convention/filename processing
SYNOPSIS
nameconv [parameters] [filename]
PARAMETERS
Command Line | Resource | Default | Description |
---|---|---|---|
-h | help | No | Lists basic help information. |
-df=filename | default | wxp.cfg | Sets the name of the resource file. |
-na=name | name | the program name | Specifies the name used in resource file parsing. |
-me=level | message | out2 | Specifies level of messages to be displayed |
-cu=[hour] | current | none | This specifies to use current data files. |
-ho=hour | hour | none | Specifies the exact hour that a data file is valid for. |
-mo=model | model | None | Sets the input forecast model |
-ft=time | time | init | Sets forecast time |
-le=level | level | none | Sets the vertical level |
-va=variable | variable | none | Sets the parameter/variable to be displayed |
-ou=output | output | program specific | Specifies type of output.
|
filename (positional) | filename | none | Specify input filename |
DESCRIPTION
This program displays and lists WXP file names.
EXAMPLES
This prints file name plus path of the current converted surface file.
wxpfile -cu -if=sfc_cvt
/home/wxp/convert/17100197.cvt
This prints a date string for the current converted surface file.
wxpfile -cu -if=sfc_cvt -ou=date
17Z 1 OCT 1997
This determines whether the current converted surface file exists.
wxpfile -cu -if=sfc_cvt -ou=exist
exist
This prints the converted surface file name which corresponds to the sequence number 1991120617.
wxpfile -if=sfc_cvt #1997100117
/home/wxp/convert/17100197.cvt
This prints the number of hours between this file and current time.
wxpfile -if=sfc_cvt 12100197.cvt -ou=diff
5
This prints the current raw upper air file.
wxpfile -cu -if=upa_dat
/home/wxp/data/12100197.upa
This prints the next raw upper air file.
wxpfile -cu -if=upa_dat -ou=next
/home/wxp/data/00100297.upa
With the use of the num_hour resource, several files can be checked.
wxpfile -cu -nh=-5 -if=rad_cvt -ou=exist -me=out2
/home/wxp/convert/13100197.sdc: exist
/home/wxp/convert/14100197.sdc: not found
/home/wxp/convert/15100197.sdc: exist
/home/wxp/convert/16100197.sdc: exist
/home/wxp/convert/17100197.sdc: exist
This prints the current NGM GRIB file.
wxpfile -cu -if=grib_ngm -na=grbcalc
/home/wxp/hds/12100197.gbn
This prints a date/time label for the current surface converted file.
wxpfile -cu -if=sfc_cvt -ou=label
Analysis for 17Z 1 OCT 97
This prints a date/time label for the MRF 7 day grid file.
wxpfile -cu -if=grib_eta -mo=eta -ft=h24 -ou=label
24 hour ETA valid 12Z FRI 3 OCT 97
FILES
SEE ALSO
Last updated November 2013