<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi, Jeff –<o:p></o:p></p>
<p class="MsoNormal">I believe the problem lies in the mismatch between your TDEF entry (which has a time axis length of 2), and your ensemble declarations that have a length of “1”. Also, why did you use gribmap with -e?
<o:p></o:p></p>
<p class="MsoNormal">--Jennifer<o:p></o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt">-- <span style="color:black"><br>
Jennifer Miletta Adams<br>
ADNET Systems, Inc.<br>
NASA/GSFC, Code 610.2</span><o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;color:black">Building 32, Room S159<br>
(301) 614-6070<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">gradsusr <gradsusr-bounces@gradsusr.org> on behalf of Jeff Duda <jeffduda319@gmail.com><br>
<b>Reply-To: </b>GrADS Users Forum <gradsusr@gradsusr.org><br>
<b>Date: </b>Thursday, December 17, 2020 at 1:17 PM<br>
<b>To: </b>GrADS Users Forum <gradsusr@gradsusr.org><br>
<b>Subject: </b>[EXTERNAL] [gradsusr] gribmap won't scan through all templated files<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">I'm using the control file below (I don't feel like going through the procedure of downloading a text file off a protected supercomputer and transferring it over just to attach it here, so my choice is simply to copy+paste the text directly
 here):<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">dset /lfs1/BMC/wrfruc/jdduda/GEFS_35day/20201209/GEFS_all_mem_f%f3.grib2<br>
index /lfs1/BMC/wrfruc/jdduda/GEFS_35day/GEFS_all_mem.idx<br>
options template<br>
dtype grib2<br>
undef 9.999E+20<br>
title all GEFS members - thinned<br>
ydef 361 linear -90.000000 0.5<br>
xdef 720 linear 0.000000 0.500000<br>
tdef 2 linear 00Z09dec2020 06hr<br>
* PROFILE hPa<br>
zdef 12 levels 100000 92500 85000 70000 50000 40000 30000 25000 20000 10000 5000 1000<br>
options pascals<br>
vars 35<br>
APCPsfc   0,1,0   0,1,8,1 ** surface Total Precipitation [kg/m^2]<br>
CAPE180_0mb  0,108,18000,0   0,7,6 ** 180-0 mb above ground Convective Available Potential Energy [J/kg]<br>
CFRZRsfc   0,1,0   0,1,193,0 ** surface Categorical Freezing Rain [-]<br>
CICEPsfc   0,1,0   0,1,194,0 ** surface Categorical Ice Pellets [-]<br>
CIN180_0mb  0,108,18000,0   0,7,7 ** 180-0 mb above ground Convective Inhibition [J/kg]<br>
CRAINsfc   0,1,0   0,1,192,0 ** surface Categorical Rain [-]<br>
CSNOWsfc   0,1,0   0,1,195,0 ** surface Categorical Snow [-]<br>
DLWRFsfc   0,1,0   0,5,192,0 ** surface Downward Long-Wave Rad. Flux [W/m^2]<br>
DSWRFsfc   0,1,0   0,4,192,0 ** surface Downward Short-Wave Radiation Flux [W/m^2]<br>
HGTprs    12,100  0,3,5 ** (1000 925 850 700 500.. 250 200 100 50 10) Geopotential Height [gpm]<br>
ICETKsfc   0,1,0   10,2,1 ** surface Ice Thickness [m]<br>
LHTFLsfc   0,1,0   0,0,10,0 ** surface Latent Heat Net Flux [W/m^2]<br>
PRESsfc   0,1,0   0,3,0 ** surface Pressure [Pa]<br>
PRMSLmsl   0,101,0   0,3,1 ** mean sea level Pressure Reduced to MSL [Pa]<br>
PWATclm   0,200,0   0,1,3 ** entire atmosphere (considered as a single layer) Precipitable Water [kg/m^2]<br>
RHprs    12,100  0,1,1 ** (1000 925 850 700 500.. 250 200 100 50 10) Relative Humidity [%]<br>
RH2m   0,103,2   0,1,1 ** 2 m above ground Relative Humidity [%]<br>
SHTFLsfc   0,1,0   0,0,11,0 ** surface Sensible Heat Net Flux [W/m^2]<br>
SNODsfc   0,1,0   0,1,11 ** surface Snow Depth [m]<br>
SOILW0_10cm  0,106,0,0.1   2,0,192 ** 0-0.1 m below ground Volumetric Soil Moisture Content [Fraction]<br>
TCDCclm   0,10,0   0,6,1,0 ** entire atmosphere Total Cloud Cover [%]<br>
TMAX2m   0,103,2   0,0,4,2 ** 2 m above ground Maximum Temperature [K]<br>
TMIN2m   0,103,2   0,0,5,3 ** 2 m above ground Minimum Temperature [K]<br>
TMPprs    12,100  0,0,0 ** (1000 925 850 700 500.. 250 200 100 50 10) Temperature [K]<br>
TMP2m   0,103,2   0,0,0 ** 2 m above ground Temperature [K]<br>
TSOIL0_10cm  0,106,0,0.1   2,0,2 ** 0-0.1 m below ground Soil Temperature [K]<br>
UGRDprs    12,100  0,2,2 ** (1000 925 850 700 500.. 250 200 100 50 10) U-Component of Wind [m/s]<br>
UGRD10m   0,103,10   0,2,2 ** 10 m above ground U-Component of Wind [m/s]<br>
ULWRFsfc   0,1,0   0,5,193,0 ** surface Upward Long-Wave Rad. Flux [W/m^2]<br>
ULWRFtoa   0,8,0   0,5,193,0 ** top of atmosphere Upward Long-Wave Rad. Flux [W/m^2]<br>
USWRFsfc   0,1,0   0,4,193,0 ** surface Upward Short-Wave Radiation Flux [W/m^2]<br>
VGRDprs    12,100  0,2,3 ** (1000 925 850 700 500.. 250 200 100 50 10) V-Component of Wind [m/s]<br>
VGRD10m   0,103,10   0,2,3 ** 10 m above ground V-Component of Wind [m/s]<br>
VVEL850mb   0,100,85000   0,2,8 ** 850 mb Vertical Velocity (Pressure) [Pa/s]<br>
WEASDsfc   0,1,0   0,1,13 ** surface Water Equivalent of Accumulated Snow Depth [kg/m^2]<br>
ENDVARS</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">EDEF 30<br>
Ep7 1  00Z09dec2020 3,7<br>
Ep22 1  00Z09dec2020 3,22<br>
Ep14 1  00Z09dec2020 3,14<br>
Ep27 1  00Z09dec2020 3,27<br>
Ep13 1  00Z09dec2020 3,13<br>
Ep16 1  00Z09dec2020 3,16<br>
Ep11 1  00Z09dec2020 3,11<br>
Ep29 1  00Z09dec2020 3,29<br>
Ep28 1  00Z09dec2020 3,28<br>
Ep24 1  00Z09dec2020 3,24<br>
Ep1 1  00Z09dec2020 3,1<br>
Ep5 1  00Z09dec2020 3,5<br>
Ep23 1  00Z09dec2020 3,23<br>
Ep17 1  00Z09dec2020 3,17<br>
Ep26 1  00Z09dec2020 3,26<br>
Ep18 1  00Z09dec2020 3,18<br>
Ep6 1  00Z09dec2020 3,6<br>
Ep4 1  00Z09dec2020 3,4<br>
Ep19 1  00Z09dec2020 3,19<br>
Ep10 1  00Z09dec2020 3,10<br>
Ep25 1  00Z09dec2020 3,25<br>
Ep3 1  00Z09dec2020 3,3<br>
Ep30 1  00Z09dec2020 3,30<br>
Ep2 1  00Z09dec2020 3,2<br>
Ep8 1  00Z09dec2020 3,8<br>
Ep9 1  00Z09dec2020 3,9<br>
Ep21 1  00Z09dec2020 3,21<br>
Ep12 1  00Z09dec2020 3,12<br>
Ep15 1  00Z09dec2020 3,15<br>
Ep20 1  00Z09dec2020 3,20<br>
ENDEDEF</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">The individual files in this template group were created by concatenating all of the GEFS member GRIB2 files together at each forecast lead time. I then constructed the control file using g2ctl and made only the necessary changes to reflect
 the template structure, adding 'options template', and modifying the TDEF line accordingly.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">When I run gribmap, I get this output:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">[Jeffrey.Duda@fe6 GEFS_35day]$ gribmap -e -i GEFS_det_thin.ctl<br>
gribmap: scanning GRIB2 file: /lfs1/BMC/wrfruc/jdduda/GEFS_35day/20201209/GEFS_all_mem_f000.grib2<br>
gribmap: scanning GRIB2 file:<br>
gribmap: Warning! could not open GRIB file:<br>
gribmap: reached end of files<br>
gribmap: Writing out the GRIB2 index file (version 3)</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif">What is happening? All the files are certainly present:</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">[Jeffrey.Duda@fe6 GEFS_35day]$ du -sh 20201209/GEFS_all_mem_f*grib2<br>
397M    20201209/GEFS_all_mem_f000.grib2<br>
438M    20201209/GEFS_all_mem_f006.grib2<br>
436M    20201209/GEFS_all_mem_f012.grib2<br>
436M    20201209/GEFS_all_mem_f018.grib2<br>
438M    20201209/GEFS_all_mem_f024.grib2<br>
435M    20201209/GEFS_all_mem_f030.grib2<br>
428M    20201209/GEFS_all_mem_f036.grib2<br>
429M    20201209/GEFS_all_mem_f042.grib2<br>
430M    20201209/GEFS_all_mem_f048.grib2<br>
431M    20201209/GEFS_all_mem_f054.grib2<br>
429M    20201209/GEFS_all_mem_f060.grib2<br>
432M    20201209/GEFS_all_mem_f066.grib2<br>
430M    20201209/GEFS_all_mem_f072.grib2<br>
431M    20201209/GEFS_all_mem_f078.grib2<br>
431M    20201209/GEFS_all_mem_f084.grib2<br>
431M    20201209/GEFS_all_mem_f090.grib2<br>
431M    20201209/GEFS_all_mem_f096.grib2<br>
429M    20201209/GEFS_all_mem_f102.grib2<br>
431M    20201209/GEFS_all_mem_f108.grib2<br>
434M    20201209/GEFS_all_mem_f114.grib2<br>
433M    20201209/GEFS_all_mem_f120.grib2<br>
430M    20201209/GEFS_all_mem_f126.grib2<br>
431M    20201209/GEFS_all_mem_f132.grib2<br>
430M    20201209/GEFS_all_mem_f138.grib2<br>
428M    20201209/GEFS_all_mem_f144.grib2<br>
</span><span style="font-family:"Arial",sans-serif">...</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif">...</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif">...</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif">Jeff Duda</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt">Jeff Duda, Research Scientist</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">University of Colorado Boulder<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Cooperative Institute for Research in Environmental Sciences<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">NOAA/OAR/ESRL/Global Systems Laboratory<br>
<span style="font-size:10.0pt">Boulder, CO</span><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>