Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.
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.gemcd /tmp rm -rf $$
gembud
archives: