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

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
 
 
  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