ucnids .... NIDS decompression filter for LDM

I've attached a filter for the LDM to decompress the NIDS data directly
by the LDM.  Compile it with:

cc ucnids.c -o ucnids -lz

/********************************************************************
* ucnids - NIDS decompression utility for data compressed with zlib
*
*   syntax: ucnids [options] ifile ofile
*   ifile and ofile can be "-" to use standard input and output
*   options:
*     none - output uncompressed product with NOAAPORT CCB
*     -c   - output with standard WMO CCB
*     -w   - output with WXP-like WMO header
*     -n   - output stripping header and leaving raw NIDS data
********************************************************************/

Here is how I use it in the LDM:

#
# Radar - NIDS
WMO     ^SDUS5. .... ([0-3][0-9])([0-2][0-9])([0-5][0-9]).*/p(...)(...)
        PIPE    -close /home/ldm/bin/ucnids -c -
/home/ldm/data/nids/\5/(\1:yy)(
\1:mm)\1\2\3_\4.nid

BTW, WXP can handle all 4 of the above outputs plus the original
compressed format.

________________________________________________________
Daniel Vietor               Mail: devo@xxxxxxxxxxxxx
Unisys Corp                 Title: Engineer/Meteorologist
221 Gale Lane               Phone: 610-925-5206
Kennett Square PA 19348     Fax: 610-925-5215

Attachment: ucnids.c
Description: Binary data

  • 2000 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the ldm-users archives: