problem with gribmap and template option

Diane Stokes Diane.Stokes at NOAA.GOV
Mon Dec 18 08:15:49 EST 2006


Use %f2 instead of %h2 in your template.  %f is for forecast hour.  %h
is hour of the day.

    Diane


Massimo Aceti wrote:
> Hi all,
>
> I use grib2ctl with otpion template to create a unique ctl file from the
> first 34 GFS onedeg forecast files (99 hours)
>
> this is my code
>
> ga-> !perl /usr/local/bin/grib2ctl.pl -verf fh.00%h2_tl.press_gr.onedeg
>  > gfs.ctl
>
> I obtain this ctl file
>
> dset ^fh.00%h2_tl.press_gr.onedeg
> index ^fh.0000_tl.press_gr.onedeg.idx
> undef 9.999E+20
> title fh.0000_tl.press_gr.onedeg
> *  produced by grib2ctl v0.9.12.5p39a
> dtype grib 3
> options template
> options yrev
> ydef 181 linear -90.000000 1
> xdef 360 linear 0.000000 1.000000
> tdef 34 linear 00Z17dec2006 3hr
> *  z has 26 levels, for prs
> zdef 26 levels
> 1000 975 950 925 900 850 800 750 700 650 600 550 500 450 400 350 300 250
> 200 150 100 70 50 30 20 10
> vars 138
> no4LFTXsfc  0 132,1,0  ** surface Best (4-layer) lifted index [K]
> and others variables ...
>
> Then, I map the ctl file with gribmap and I obtain (ga-> !gribmap -i
> gfs.ctl):
>
> gribmap:  Scanning binary GRIB file(s):
> gribmap:  Opening GRIB file fh.0000_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0003_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0006_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0009_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0012_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0015_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0018_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0021_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0000_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0003_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0006_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0009_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0012_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0015_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0018_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0021_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0000_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0003_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0006_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0009_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0012_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0015_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0018_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0021_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0000_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0003_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0006_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0009_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0012_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0015_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0018_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0021_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0000_tl.press_gr.onedeg
> gribmap:  Opening GRIB file fh.0003_tl.press_gr.onedeg
> gribmap:  Reached EOF
> gribmap:  Writing the map...
>
> The mapping is made only up to 21 hours and when I open the ctl file and
> set the time higher than 8 I obtain this error:
> Cannot contour grid - all undefined values
>
> It's very strange!
>
> Someone can help me to resolve this problem?
>
> Thanks
>
> Massy

--
Diane Stokes
Environmental Modeling Center
National Weather Service/NOAA



More information about the gradsusr mailing list