NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: CLIMAT and CLIMAT TEMP Reports

Hi,

I wrote a decoder for CLIMAT (not CLIMAT TEMP) data that works at least for
Canadian data, as well as UK, Switzerland and France.

Example for Canadian data:

IDS|DDS|PPS     ^(CSCN..) (CWAO) ([0-3][0-9])([0-2][0-9])
        PIPE    -close -strip sc/process_climate

I included my shell script in attachment, and the climat_decode source is in
http://www.sca.uqam.ca/climat_decode.tar.gz

Example output: http://meteocentre.com/climat/71879_climat.txt

By the way, it seems that we didn't receive CLIMAT data for main canadian
stations since October, is there a problem?> Only minor stations were received.

Christian Page
UQAM

On Mon, 17 Dec 2001, Alan Hall wrote:

> Does anyone have a pqact entry for the CLIMAT and CLIMAT TEMP Reports?
> >From what I see, it could be very complicated...
>
> Alan.
>
#!/bin/sh
#
TMPDIR=/tmp
export TMPDIR

WKFILE=$TMPDIR/clim_$$

# Send piped input to file
cat > $WKFILE

cd $HOME/data/decoded/climate
CLIMAT_LANG=en
export CLIMAT_LANG
/io/httpd/bin/climat_decode -i $WKFILE

cd $HOME/data/decoded/climate_fr
CLIMAT_LANG=fr
export CLIMAT_LANG
/io/httpd/bin/climat_decode -i $WKFILE

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