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

[IDD #KMA-779997]: Land and Ship data feed enquiry



Hi,

re:
> Please could you provide me with an example configuration for land or ship?

LDM configuration file actions::

Since the IDS|DDPLUS feed is one of the lowest volume feeds, it is easiest
to simply REQUEST all of it in your LDM configuration file, ~ldm/etc/ldmd.conf.
Something like:

REQUEST IDS|DDPLUS ".*" <your upstream feed site>

In order to process products, there must be an EXEC line that runs an
instance of 'pqact' that will use rules in a user-specified pattern-action
file, or the example one that comes with the LDM distribution.  The
example EXEC line looks something like:

EXEC   "pqact"

Here, the pattern-action file is unnamed, so it is assumed to be the
one distributed with the LDM, ~ldm/etc/pqact.conf

Processing:

The LDM distribution comes with a pattern-action file, ~ldm/etc/pqact.conf,
that has a generic action that will FILE some products like METARs, etc.
to disk.  This action may or may not be commented, so you may need to
edit the file to remove the comment indicator '#' marks from the action:

Here are the example entries:

# Examples
#
# Metars
# Append all US metars.
# This action will slowly consume disk space.
#IDS|DDPLUS     ^SAUS(..) (....) 
#       FILE    surface/US/\2/\1

# Watches, warnings, advisories
# Append all special weather stmts to those of the same type and source.
# This action will slowly consume disk space.
#IDS|DDPLUS     ^(WW....) (....) 
#       FILE    WWA/special/\1_\2

# Keep only the most recent nowcast for each forcast office
#IDS|DDPLUS     /pNOW(...)
#       FILE    -overwrite -close nowcast/\1

# Keep only the most recent SIGMET.
#IDS|DDPLUS     ^WS
#       FILE    -overwrite -close WWA/lastSIGMET

#
# Bin all the (Non-GRIB) WMO format data, using elements from the
# identifier as path components. The minutes portion of the timestamp,
# and the retransmit code is ignored. The day of the month portion
# of the timestamp is not used as a path component, so it would be
# a good idea to run 'scour' on a less than 24 hour basis.  This
# action uses a lot of disk space.
#
#  "ASUS42 KRDU 012259" gets filed as
#  US/KRDU/22/AS42.wmo
#
#WMO    ^([^H][A-Z])([A-Z][A-Z])([0-9][0-9]) (....) ([0-3][0-9])([0-2][0-9])
#       FILE    \2/\4/\6/\1\3.wmo

Edit the file and remove only the '#'s from the beginnings of non-comment
lines.  For example, the above would look like the following after editing:

# Examples
#
# Metars
# Append all US metars.
# This action will slowly consume disk space.
IDS|DDPLUS     ^SAUS(..) (....) 
       FILE    surface/US/\2/\1

# Watches, warnings, advisories
# Append all special weather stmts to those of the same type and source.
# This action will slowly consume disk space.
IDS|DDPLUS     ^(WW....) (....) 
       FILE    WWA/special/\1_\2

# Keep only the most recent nowcast for each forcast office
IDS|DDPLUS     /pNOW(...)
       FILE    -overwrite -close nowcast/\1

# Keep only the most recent SIGMET.
IDS|DDPLUS     ^WS
       FILE    -overwrite -close WWA/lastSIGMET

#
# Bin all the (Non-GRIB) WMO format data, using elements from the
# identifier as path components. The minutes portion of the timestamp,
# and the retransmit code is ignored. The day of the month portion
# of the timestamp is not used as a path component, so it would be
# a good idea to run 'scour' on a less than 24 hour basis.  This
# action uses a lot of disk space.
#
#  "ASUS42 KRDU 012259" gets filed as
#  US/KRDU/22/AS42.wmo
#
WMO    ^([^H][A-Z])([A-Z][A-Z])([0-9][0-9]) (....) ([0-3][0-9])([0-2][0-9])
       FILE    \2/\4/\6/\1\3.wmo

NOTE:

The format of the actions in a pattern-action file must adhere to very
specific rules: continuation lines begin with a <tab> character, not
a ' ' (space).  The character separating the feed name must be a <tab>
The character after the FILE directive and the pattern is also a <tab>.

The last action written so that one can see where tabs are needed is:

WMO<tab>^([^H][A-Z])([A-Z][A-Z])([0-9][0-9]) (....) ([0-3][0-9])([0-2][0-9])
<tab>FILE<tab>\2/\4/\6/\1\3.wmo

These actions are generic, and are changed by literally all sites running
LDMs.  Exactly how you setup your pattern-action file actions will depend
on which product(s) you want to process and what you want to do with them
upon receipt.

Cheers,

Tom
--
****************************************************************************
Unidata User Support                                    UCAR Unidata Program
(303) 497-8642                                                 P.O. Box 3000
address@hidden                                   Boulder, CO 80307
----------------------------------------------------------------------------
Unidata HomePage                       http://www.unidata.ucar.edu
****************************************************************************


Ticket Details
===================
Ticket ID: KMA-779997
Department: Support IDD
Priority: Normal
Status: Closed
===================
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.