WXP
Program Reference

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.
  • file - filename (default)
  • hdrfile -- ingest header filename
  • date -- date based on filename (hhZ dd mmm yyyy)
  • valid -- valid time label based on filename and forecast hour (hhZ dd mmm yyyy)
  • label -- label based on model, forecast time and filename
  • year -- the year based on filename (yyyy)
  • mon -- the month based on filename (mm)
  • month -- the month based on filename (mmm as in DEC)
  • day -- the day based on filename (dd)
  • hour -- the hour based on filename (hh)
  • seq -- the sequence number (yyyymmddhhMM) based on filename.
  • del -- removes the file
  • rm -- removes the file
  • exist -- tests for file existence
  • size -- size of file
  • next -- the next file in the sequence
  • prev -- the previous file in the sequence
  • label -- a date/time label appropriate for use with plots. If the model and forecast time are specified, it will incorporate this into the label.
  • time -- the Unix time of the file (seconds since 1/1/1970)
  • diff -- the number of hours between file time and current.
  • sdiff -- the number of seconds between file time and current.
  • mdiff -- the number of minutes between file time and current.
  • hdiff -- the number of hours between file time and current.
  • ddiff -- the number of days between file time and current.
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