[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pattern Matching (fwd)



---------- Forwarded message ----------
Date: Fri, 28 Jul 2000 15:30:11 -0700
From: Rob Doornbos <address@hidden>
Reply-To: address@hidden
To: address@hidden
Subject: Pattern Matching

Good Afternoon -

Is there anyway that I can use the internal product creation time
instead
of the file reception time (%H%M%S) in the naming of my files?  For
example,
I know that WXP allows %ph%pn which would be the hour and minute that
the data were created.

Thanks.

- Rob

--
WEATHERNEWS, INC - Chico, CA
Rob Doornbos - Software Specialist

email: address@hidden
voice: (530) 893-0308
       (408) 731-2300
fax:   (530) 893-4517

Hi Rob,

There's no easy way via the LDM to use the internal product time in the naming of your files.  However, it is possible to do so in other ways.  You could write a script or a program that opens the file, reads that internal time, creates the file name and writes the file to that name.  Then you would put an entry in your pqact.conf file to pipe the file to that script.

It turns out that someone here has written a script that does something similar.  It's called 'ldmconnect' and it concatenates files that together consitute a product.   You could use that as a model.  I'm guessing that it's a perl script, but I'm not positive.  I'm told that you must get the decoders package to get this script.  You can find that via our web site.

Hope this helps!

Anne

-- 
***************************************************
Anne Wilson                     UCAR Unidata Program            
address@hidden                  P.O. Box 3000
                                  Boulder, CO  80307
----------------------------------------------------
Unidata WWW server       http://www.unidata.ucar.edu/
****************************************************