[gradsusr] How to write the description file to control multi foreacst grib files?
姜立智
jianglizhi at mail.iap.ac.cn
Sun Aug 9 04:18:25 EDT 2020
Hello,
I have serval ERA-Interim reanalyses files (contains forecast steps) downloaded from the ECMWF and I want to use one description file to control them.
The problem is that each file contains serval different base time and serval time steps. How to create one ctl file to descript them properly? I had tried serval times including replace the substitution template %iy2,%ym2, however, it cannot descript multiple files.
The atttachments are the grib files and ctl files. The outputs are below.
jiang at jiang:/mnt/d/Desktop$ cat erai.10fg.1979.ctl
dset ^erai.10fg.%y4%m2%d2.grib
options template yrev
undef 9.999E+20
title ^10fg1979.grib
index ^10fg1979.idx
dtype grib 255
xdef 480 linear 0.000000 0.750000
ydef 241 linear -90.000000 0.75
tdef 16 linear 03Z01jan1979 3hr
zdef 1 linear 1 1
vars 1
no10FGsfc 0 49,1,0 ** surface 10 metre wind gust [m s**-1]
ENDVARS
jiang at jiang:/mnt/d/Desktop$ gribmap -v -e -i erai.10fg.1979.ctl
gribmap: opening GRIB file erai.10fg.19790101.grib
!!!!! MATCH: 1 231468 255 1 0 49 1 0 103 0 16 btim: 1979010100:00 tau: 3 dtim: 1979010103:00
!!!!! MATCH: 2 462936 255 1 0 49 1 0 231571 0 16 btim: 1979010100:00 tau: 6 dtim: 1979010106:00
!!!!! MATCH: 3 694404 255 1 0 49 1 0 463039 0 16 btim: 1979010100:00 tau: 9 dtim: 1979010109:00
!!!!! MATCH: 4 925872 255 1 0 49 1 0 694507 0 16 btim: 1979010100:00 tau: 12 dtim: 1979010112:00
!!!!! MATCH: 5 1157340 255 1 0 49 1 0 925975 0 16 btim: 1979010112:00 tau: 3 dtim: 1979010115:00
!!!!! MATCH: 6 1388808 255 1 0 49 1 0 1157443 0 16 btim: 1979010112:00 tau: 6 dtim: 1979010118:00
!!!!! MATCH: 7 1620276 255 1 0 49 1 0 1388911 0 16 btim: 1979010112:00 tau: 9 dtim: 1979010121:00
-8-- Time out of file limits: 8 1851744 255 1 0 49 1 0 1620379 0 16 btim: 1979010112:00 tau: 12 dtim: 1979010200:00
gribmap: opening GRIB file erai.10fg.19790102.grib
!!!!! MATCH: 1 231468 255 1 0 49 1 0 103 0 16 btim: 1979010200:00 tau: 3 dtim: 1979010203:00
!!!!! MATCH: 2 462936 255 1 0 49 1 0 231571 0 16 btim: 1979010200:00 tau: 6 dtim: 1979010206:00
!!!!! MATCH: 3 694404 255 1 0 49 1 0 463039 0 16 btim: 1979010200:00 tau: 9 dtim: 1979010209:00
!!!!! MATCH: 4 925872 255 1 0 49 1 0 694507 0 16 btim: 1979010200:00 tau: 12 dtim: 1979010212:00
!!!!! MATCH: 5 1157340 255 1 0 49 1 0 925975 0 16 btim: 1979010212:00 tau: 3 dtim: 1979010215:00
!!!!! MATCH: 6 1388808 255 1 0 49 1 0 1157443 0 16 btim: 1979010212:00 tau: 6 dtim: 1979010218:00
!!!!! MATCH: 7 1620276 255 1 0 49 1 0 1388911 0 16 btim: 1979010212:00 tau: 9 dtim: 1979010221:00
-16-- Time out of file limits: 8 1851744 255 1 0 49 1 0 1620379 0 16 btim: 1979010212:00 tau: 12 dtim: 1979010300:00
gribmap: opening GRIB file erai.10fg.19790103.grib
gribmap: Warning! could not open GRIB file erai.10fg.19790103.grib
gribmap: reached end of files
gribmap: writing the GRIB1 index file (version 5)
jiang at jiang:/mnt/d/Desktop$
jiang at jiang:/mnt/d/Desktop$
jiang at jiang:/mnt/d/Desktop$ cat erai.10fg.i1979.ctl
dset ^erai.10fg.%iy4%im2%id2.grib
options template yrev
undef 9.999E+20
title ^10fg1979.grib
index ^10fg1979.idx
dtype grib 255
xdef 480 linear 0.000000 0.750000
ydef 241 linear -90.000000 0.75
tdef 16 linear 03Z01jan1979 3hr
zdef 1 linear 1 1
vars 1
no10FGsfc 0 49,1,0 ** surface 10 metre wind gust [m s**-1]
ENDVARS
jiang at jiang:/mnt/d/Desktop$ gribmap -v -e -i erai.10fg.i1979.ctl
gribmap: opening GRIB file erai.10fg.19790101.grib
!!!!! MATCH: 1 231468 255 1 0 49 1 0 103 0 16 btim: 1979010100:00 tau: 3 dtim: 1979010103:00
!!!!! MATCH: 2 462936 255 1 0 49 1 0 231571 0 16 btim: 1979010100:00 tau: 6 dtim: 1979010106:00
!!!!! MATCH: 3 694404 255 1 0 49 1 0 463039 0 16 btim: 1979010100:00 tau: 9 dtim: 1979010109:00
!!!!! MATCH: 4 925872 255 1 0 49 1 0 694507 0 16 btim: 1979010100:00 tau: 12 dtim: 1979010112:00
!!!!! MATCH: 5 1157340 255 1 0 49 1 0 925975 0 16 btim: 1979010112:00 tau: 3 dtim: 1979010115:00
!!!!! MATCH: 6 1388808 255 1 0 49 1 0 1157443 0 16 btim: 1979010112:00 tau: 6 dtim: 1979010118:00
!!!!! MATCH: 7 1620276 255 1 0 49 1 0 1388911 0 16 btim: 1979010112:00 tau: 9 dtim: 1979010121:00
!!!!! MATCH: 8 1851744 255 1 0 49 1 0 1620379 0 16 btim: 1979010112:00 tau: 12 dtim: 1979010200:00
gribmap: reached end of files
gribmap: writing the GRIB1 index file (version 5)
jiang at jiang:/mnt/d/Desktop$
Can anyone gives some advice? Thanks in advance.
Sincerely,
Lizhi Jiang
August 9, 2020
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20200809/87f3f1b7/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: erai.10fg.19790102.grib
Type: application/octet-stream
Size: 1851744 bytes
Desc: not available
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20200809/87f3f1b7/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: erai.10fg.19790101.grib
Type: application/octet-stream
Size: 1851744 bytes
Desc: not available
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20200809/87f3f1b7/attachment-0005.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: erai.10fg.1979.ctl
Type: application/octet-stream
Size: 350 bytes
Desc: not available
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20200809/87f3f1b7/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: erai.10fg.i1979.ctl
Type: application/octet-stream
Size: 353 bytes
Desc: not available
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20200809/87f3f1b7/attachment-0007.obj>
More information about the gradsusr
mailing list