Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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

 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690