Dcgrib2 problems w/Canadian GEM

Steve Chiswell chiz at unidata.ucar.edu
Wed May 2 09:56:39 MDT 2007


Rob,

The most likely cause of corrupt output files that comes to mind would
be if you ended up with multiple copies of the script simultaneously so
that more than 1 copy of the decoder was writing to the file at a time.
Your script creates a unique working directory for each invocation, but
the output files would be the same if whatever mechanism you are using
to invoke the script
were to overlap.

Steve Chiswell
Unidata User Support


On Wed, 2007-05-02 at 10:11 -0400, Rob Dale wrote:
> Can you see anything wrong in the following? All I do is filter down
> to keep the DL time manageable vs the fields I use…
> 
>  
> 
> #!/bin/csh
> 
> cd /tmp
> 
> mkdir $$
> 
> cd /tmp/$$
> 
> echo $$
> 
> set HR=$1
> 
> source ~gempak/nawips/Gemenviron
> 
> set date=`date +%Y%m%d`
> 
>  
> 
> wget --http-user=xx --http-passwd=xx -nd -r -A
> '*_reg_*850*','*_reg_*500*','*_reg_*SFC_0_ps15km*' -R
> '*ABSV*','*WTMP*','*VVEL*','*WRF*','*TCDC*','*SPFH*','*SHTFL*','*WRS*','*LHTFL*'  http://dd.weatheroffice.ec.gc.ca/grib/public/hires/CMC_reg_${HR}/
> 
>  
> 
> cat *850* |
> dcgrib2 /home/gempak/ldm/data/gempak/model/cmc/${date}${HR}_cmcreg.gem
> 
> cat *700* |
> dcgrib2 /home/gempak/ldm/data/gempak/model/cmc/${date}${HR}_cmcreg.gem
> 
> cat *500* |
> dcgrib2 /home/gempak/ldm/data/gempak/model/cmc/${date}${HR}_cmcreg.gem
> 
> cat *300* |
> dcgrib2 /home/gempak/ldm/data/gempak/model/cmc/${date}${HR}_cmcreg.gem
> 
> cat *SFC* |
> dcgrib2 /home/gempak/ldm/data/gempak/model/cmc/${date}${HR}_cmcreg.gem
> 
>  
> 
> cd /tmp
> 
> rm -rf $$
> 
>  
> 
>  
> 
> From: Robert Mullenax [mailto:Robert.Mullenax at csbf.nasa.gov] 
> Sent: Tuesday, May 01, 2007 12:21 PM
> To: Rob Dale; gembud at unidata.ucar.edu
> Subject: RE: Dcgrib2 problems w/Canadian GEM
> 
> 
>  
> 
> Rob,
> 
> We are downloading the HIRES that you have to sign the agreement form
> to get, but I am not seeing that.  All is fine.  (GEMPAK 5.10.2,
> Solaris 10 x86).
> 
> Regards,
> Robert Mullenax
> CSBF Meteorology
> 
> 
> -----Original Message-----
> From: owner-gembud at unidata.ucar.edu on behalf of Rob Dale
> Sent: Tue 5/1/2007 10:54 AM
> To: gembud at unidata.ucar.edu
> Subject: Dcgrib2 problems w/Canadian GEM
> 
> A different problem from the NAM tile bug which I still can't find a
> fix
> for... I'm downloading the Canadian GEM (hi-res) data and running it
> through
> dcgrib2, and every other time set is corrupted.
> 
> 850mb at F03 - http://skywatch.org/cmc1.gif
> 850mb at F06 - http://skywatch.org/cmc2.gif
> 
>  - Rob
> 
> 
> 
> 
> 
> 
-- 
Steve Chiswell <chiz at unidata.ucar.edu>
Unidata




More information about the gembud mailing list