[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20050712: Forgotten how to add date/time stamps to files in ldm/pqact
- Subject: 20050712: Forgotten how to add date/time stamps to files in ldm/pqact
- Date: Wed, 13 Jul 2005 08:32:56 -0600
>From: Gerry Creager N5JXS <address@hidden>
>Organization: Texas A&M University -- AATLT
>Keywords: 200507130251.j6D2pSjo014879 LDM pqact.conf
Hi Gerry,
>I'm trying something along the lines of:
>WMO (^S[IMN]V[^GINS])|(^S[IMN]W[^KZ])
> FILE -strip data/sfc/ship6h/YYYYMMDDHH_s6/\1
>so I can aggregate the ships/bouys reports. I need a timestamp to make
>the decoding go a bit better, and for insertion into a PostGRESQL database.
>
>What I'm getting is a directory created that's
>~ldm/data/sfc/ship6h/YYYYMMDDHH_s6 instead of a timestamp.
The YYMMDDHH syntax is a GEMPAK construct, not an LDM one.
The LDM supports the 'strftime' syntax for assigning years, hours,
minutes based on the product creation time and another syntax based on
the real time clock. The LDM reference for the various time-based
syntaxes is:
http://my.unidata.ucar.edu/content/software/ldm/ldm-6.3.0/basics/pqact.conf.html
Here is one example of how we use this to file NGRID (NOAAPORT higer
resolution model output in GRIB2 format):
#
# catchall
NGRID ^_ELSE_$ FILE data/ngrid/%y%m%d%H_else.ngrid
The directory listing in this case looks like:
cd ~ldm
ls data/ngrid/
200507111200.ngrid 200507121200.ngrid_eta
200507111200.ngrid_dgex-ak 200507121200.ngrid_eta-ak
200507111200.ngrid_eta 200507121200.ngrid_gfs
200507111200.ngrid_eta-ak 200507121200.ngrid_ndfd
...
>Where'd I go stupid?
The same place the rest of us went... old age ;-)
>Thanks, gerry
No worries.
Cheers,
Tom
--
NOTE: All email exchanges with Unidata User Support are recorded in the
Unidata inquiry tracking system and then made publicly available
through the web. If you do not want to have your interactions made
available in this way, you must let us know in each email you send to us.