[gradsusr] Question about template usage with GRIB2 files
Steven Chan
schan at fsu.edu
Wed Feb 16 10:59:13 EST 2011
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
More information about the gradsusr
mailing list