<div dir="ltr"><div><div><div><div><div><div>What version of NCL are you using?<br><br>===<br><br>Please do put sample file at:<br><br></div>ftp <a href="http://ftp.cgd.ucar.edu">ftp.cgd.ucar.edu</a><br></div>anonymous<br></div>your_email<br></div>cd incoming<br></div>put ...<br></div>quit<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 22, 2017 at 8:09 AM, Cathy Smith (NOAA Affiliate) <span dir="ltr"><<a href="mailto:cathy.smith@noaa.gov" target="_blank">cathy.smith@noaa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
We have some grib files that have 10 ensemble members for each month.<br>
NCL reads the data as one 1 value per month using ncl_convert2nc.<br>
Looking at the grib1 files, the 1st 10 headers are the same, the 2nd,<br>
and so forth (except for the starting value). Is it possible to read<br>
these with ncl or should we try to create 120 grib files and then<br>
process them? Maybe one can use -sed?<br>
<br>
Here is the header for the 1st 12 grib records of the 120.<br>
<br>
1:0:d=01010100:2T:kpds5=167:<wbr>kpds6=1:kpds7=0:TR=123:P1=0:<wbr>P2=3:TimeU=1:sfc:anl:ave@3hr:<wbr>type=analysis:NAve=248<br>
2:58192:d=01010100:2T:kpds5=<wbr>167:kpds6=1:kpds7=0:TR=123:P1=<wbr>0:P2=3:TimeU=1:sfc:anl:ave@3hr<wbr>:type=analysis:NAve=248<br>
3:116384:d=01010100:2T:kpds5=<wbr>167:kpds6=1:kpds7=0:TR=123:P1=<wbr>0:P2=3:TimeU=1:sfc:anl:ave@3hr<wbr>:type=analysis:NAve=248<br>
4:174576:d=01010100:2T:kpds5=<wbr>167:kpds6=1:kpds7=0:TR=123:P1=<wbr>0:P2=3:TimeU=1:sfc:anl:ave@3hr<wbr>:type=analysis:NAve=248<br>
5:232768:d=01010100:2T:kpds5=<wbr>167:kpds6=1:kpds7=0:TR=123:P1=<wbr>0:P2=3:TimeU=1:sfc:anl:ave@3hr<wbr>:type=analysis:NAve=248<br>
6:290960:d=01010100:2T:kpds5=<wbr>167:kpds6=1:kpds7=0:TR=123:P1=<wbr>0:P2=3:TimeU=1:sfc:anl:ave@3hr<wbr>:type=analysis:NAve=248<br>
7:349152:d=01010100:2T:kpds5=<wbr>167:kpds6=1:kpds7=0:TR=123:P1=<wbr>0:P2=3:TimeU=1:sfc:anl:ave@3hr<wbr>:type=analysis:NAve=248<br>
8:407344:d=01010100:2T:kpds5=<wbr>167:kpds6=1:kpds7=0:TR=123:P1=<wbr>0:P2=3:TimeU=1:sfc:anl:ave@3hr<wbr>:type=analysis:NAve=248<br>
9:465536:d=01010100:2T:kpds5=<wbr>167:kpds6=1:kpds7=0:TR=123:P1=<wbr>0:P2=3:TimeU=1:sfc:anl:ave@3hr<wbr>:type=analysis:NAve=248<br>
10:523728:d=01010100:2T:kpds5=<wbr>167:kpds6=1:kpds7=0:TR=123:P1=<wbr>0:P2=3:TimeU=1:sfc:anl:ave@3hr<wbr>:type=analysis:NAve=248<br>
11:581920:d=01020100:2T:kpds5=<wbr>167:kpds6=1:kpds7=0:TR=123:P1=<wbr>0:P2=3:TimeU=1:sfc:anl:ave@3hr<wbr>:type=analysis:NAve=224<br>
12:640112:d=01020100:2T:kpds5=<wbr>167:kpds6=1:kpds7=0:TR=123:P1=<wbr>0:P2=3:TimeU=1:sfc:anl:ave@3hr<wbr>:type=analysis:NAve=224<br>
<br>
ncl_convert2nc produces<br>
<br>
netcdf air.2m.1901 {<br>
dimensions:<br>
initial_time0_hours = 12 ;<br>
g0_lat_1 = 121 ;<br>
g0_lon_2 = 240 ;<br>
ncl_strlen_0 = 18 ;<br>
variables:<br>
float \2T_GDS0_SFC_S123(initial_<wbr>time0_hours, g0_lat_1, g0_lon_2) ;<br>
\2T_GDS0_SFC_S123:N = 248, 224, 248, 240, 248, 240,<br>
248, 248, 240, 248, 240, 248 ;<br>
<br>
etc.<br>
<br>
<br>
I can put a file in ftp if that helps.<br>
<br>
Cathy<br>
<br>
--<br>
------------------------------<wbr>----------------<br>
NOAA/ESRL PSD and CU CIRES<br>
303-497-6263<br>
<a href="http://www.esrl.noaa.gov/psd/people/cathy.smith/" rel="noreferrer" target="_blank">http://www.esrl.noaa.gov/psd/<wbr>people/cathy.smith/</a><br>
<br>
Emails about data/webpages may get quicker responses from emailing<br>
<a href="mailto:esrl.psd.data@noaa.gov">esrl.psd.data@noaa.gov</a><br>
<br>
______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br></div>