[gradsusr] Question about template usage with GRIB2 files

Jennifer Adams jma at cola.iges.org
Wed Feb 16 11:22:16 EST 2011


The error message you're getting is strange ... it's not that the  
template substitution isn't working, but the entire file name is just  
blank. If you use the -v option, is it matching records in the first  
file? Are all the other files in the same place with the same read  
permission? I use the template z_tigge_c_ecmf_ 
%iy4%im2%id2%ih20000_0%f3_pl_glob_prod.grib2  for tigge ecmf  
forecasts. If you hard-code the initial time, that should be fine too.  
What else is in your descriptor file? Are you sure your TDEF is right?  
And the path in DSET -- are you using full path or relative path with  
the ^? By the way, EDEF should look like this (change YYY to your  
initial time, 00z15aug2008) and names can be changed to anything you  
want:
edef 52
cf     41  YYY  1,0
fc     41  YYY
ppf1   41  YYY  3,1
ppf2   41  YYY  3,2
ppf3   41  YYY  3,3
...
ppf50  41  YYY  3,50
endedef

--Jennifer

On Feb 16, 2011, at 10:59 AM, Steven Chan wrote:

> Hello All:
>
> Thank you for previous help. I regret that I was not aware that netCDF
> problem I reported was already a known sure.
>
> This time I have another question.
>
> I have 3 GRIB2 files:
>
> z_tigge_c_ecmf_20080815000000_0000_pl_glob_prod.grib2
> z_tigge_c_ecmf_20080815000000_0006_pl_glob_prod.grib2
> z_tigge_c_ecmf_20080815000000_0012_pl_glob_prod.grib2
>
> which 20080815000000 is the base initial time. "0000", "0006",  
> "0012" is
> the forecast hour.
> All 3 GRIB2 files have the same base time. A sample wgrib2 listing  
> gives:
> 1:0:d=2008081500:HGT:50 mb:anl:ENS=low-res ctl <-
> z_tigge_c_ecmf_20080815000000_0000_pl_glob_prod.grib2
> 1:0:d=2008081500:HGT:50 mb:6 hour fcst:ENS=low-res ctl <-
> z_tigge_c_ecmf_20080815000000_0006_pl_glob_prod.grib2
> 1:0:d=2008081500:HGT:50 mb:12 hour fcst:ENS=low-res ctl <-
> z_tigge_c_ecmf_20080815000000_0012_pl_glob_prod.grib2
>
> I would expect:
> z_tigge_c_ecmf_20080815000000_0%f3_pl_glob_prod.grib2
> to be the correct way the template the files.
>
> However, I get the following errors:
> [scchan at elnino 2008081500]$ gribmap -i  
> z_tigge_c_ecmf_20080815000000_pl.ctl
> grib2map: scanning GRIB2 file:
> z_tigge_c_ecmf_20080815000000_0000_pl_glob_prod.grib2
> grib2map: scanning GRIB2 file:
> grib2map warning: could not open GRIB file:
> grib2map: reached end of files
> grib2map: Writing out the index file
>
> It appears that gribmap simply does not know how to increment the file
> names to z_tigge_c_ecmf_20080815000000_0006_pl_glob_prod.grib2
>
> If I create a control for each GRIB2 file, then the problem can be
> avoided. Of course, that defeats the purpose of using a template to
> begin with. May be I am doing something wrong that I did not know...
>
> Thank you ahead for the answers.
> Steven Chan
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr

--
Jennifer M. Adams
IGES/COLA
4041 Powder Mill Road, Suite 302
Calverton, MD 20705
jma at cola.iges.org



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110216/85cf529e/attachment-0003.html 


More information about the gradsusr mailing list