This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Christian Page wrote: > > Hi, > > I want to put METAR reports in individual (text) station files, e.g. have one > file for each station reporting a METAR (or SPECI). Is it possible? Or does > anybody have written a script or a program to do that? > > Thanks, > > Christian Page > UQAM Peter Neilley wrote: > > Christian, > > Use the pqsurf utility already in the LDM. This breaks up bulletins > containing > METARs into individual "bulletins", one "bulletin" per METAR. You can then > FILE the metars by ICAO ID. > > To do this, add a line like this to you ldmd.conf file > > exec "pqsurf -p ^(S[APX]) -Q /home/ldm/data/pqsurf.pq -d /home/ldm > /home/ldm/etc/pqsurf.conf" > > and then create a pqsurf.conf file that has an entry something like: > > WMO ^(metar|speci) (....) ([0-3][0-9])([0-2][0-9]) FILE > /home/ldm/data/(\3:yyyy)(\3:mm)\3\4.\2.metar > > Which creates files named <YYYYMMDD>.<ICAO>.metar. > > You will need to create a pqsurf product queue using "ldmadmin mksurfqueue". > > Peter Neilley > WSI > Christian Page wrote: > > Thanks a lot, it seems to work great! > > Christian Page > UQAM > -- *************************************************** Anne Wilson UCAR Unidata Program address@hidden P.O. Box 3000 Boulder, CO 80307 ---------------------------------------------------- Unidata WWW server http://www.unidata.ucar.edu/ **************************************************** >From address@hidden Wed Jul 25 00:12:35 2001 >To: Robb Kambic <address@hidden> >cc: <address@hidden>, Peter Neilley <address@hidden>, > decoders <address@hidden> >Subject: Re: 20010723: Re: pqact.conf: output METAR in individual station >files? Hi, I fixed the problem when I upgraded to ldm-5.1.4. I was at ldm-5.1.2. Thanks! Christian Page UQAM