<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Wenshan,<div><br></div><div>We got your data and script and reproduced the problem.</div><div>We have created ticket:&nbsp;<a href="https://vets.development.ucar.edu/jira/browse/NCL-1802" style="font-family: Arial, FreeSans, Helvetica, sans-serif; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255); color: rgb(59, 115, 175); text-decoration: none; ">NCL-1802</a>.</div><div>We will check on this and get back to you soon.</div><div><br></div><div>Thanks,</div><div><br></div><div>Wei<br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><br class="Apple-interchange-newline"><a href="mailto:huangwei@ucar.edu">huangwei@ucar.edu</a></div><div>VETS/CISL<br>National Center for Atmospheric&nbsp;Research<br>P.O. Box 3000 (1850 Table Mesa Dr.)<br>Boulder, CO 80307-3000 USA<br>(303) 497-8924</div></div><div><br></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br><div><div>On Sep 19, 2013, at 1:46 PM, Wenshan Wang &lt;<a href="mailto:wenshanw@uci.edu">wenshanw@uci.edu</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div>Hello everyone,</div><div><br></div><div>I was trying to read netCDF 4 files with groups.</div><div>I have 6 groups.</div><div>They all have a variable named 'snd' inside.</div><div>The 6 'snd' are different (I used ncdump to check) but they look the same using NCL.</div>

<div><br></div><div>Here is my script:</div><div><br></div><div><div>; Complied by Wang Wenshan 2013-09-19 Thursday 12:06:55</div><div>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"</div><div>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"</div>

<div>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"</div><div>;*************************************************************</div><div>; check NCL group reading</div><div>;************************************************************</div>

<div>begin</div><div>;setfileoption("nc", "usenewhlfs", True)</div><div><br></div><div>drc = "/media/grele_data/wenshan/cesm/historical-exp/nco_grp/"</div><div>fn = "<a href="http://snd_time.nc/">snd_time.nc</a>"</div>

<div><br></div><div>fin = addfile(drc+fn,"r")</div><div>setfileoption("nc", "Format", &nbsp;"NetCDF4Classic")</div><div><br></div><div>nn = getfilevarnames(fin)</div><div>;print(nn)</div>

<div>v1 = "/CCSM4_historical/snd"</div><div>v2 = "/CESM1-BGC_esmHistorical/snd"</div><div>v3 = "/CESM1-CAM5_historical/snd"</div><div>v4 = "/CESM1-FASTCHEM_historical/snd"</div><div>

v5 = "/CESM1-WACCM_historical/snd"</div><div><br></div><div>d1 = fin-&gt;$v1$</div><div>d2 = fin-&gt;$v2$</div><div>d3 = fin-&gt;$v3$</div><div>d4 = fin-&gt;$v4$</div><div>d5 = fin-&gt;$v5$</div><div><br></div>
<div>
;------------------------------------------------------------</div><div>; second way</div><div>;g5 = fin=&gt;/CESM1-WACCM_historical</div><div>;d5_2 = g5-&gt;snd</div><div>;------------------------------------------------------------</div>

<div><br></div><div>print(d1+" &nbsp;"+d2+" "+d3+" &nbsp;"+d4+" &nbsp;"+d5)</div><div>;print(d1+" &nbsp;"+d2+" "+d3+" &nbsp;"+d4+" &nbsp;"+d5+" "+d5_2)</div><div>

<br></div><div>print("done!")</div><div>end</div></div><div><br></div><div><br></div><div>The first way gave me the same 'snd'.</div><div>The second way gave error msg:&nbsp;</div><div>file: Execute.c, line:8105</div>

<div>stop *ptr: 104</div><div>stop FILE_GROUPVAL_OP: 104</div><div><br></div><div>I am using NCL 6.1.2</div><div>Linux grele 3.5.0-40-generic #62~precise1-Ubuntu SMP Fri Aug 23 17:38:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux<br>

</div><div><br></div><div>I put my script (grp_reading.ncl) and the testing file (<a href="http://snd_time.nc/">snd_time.nc</a>) on ftp/incoming.</div><div><br></div><div>Thank you very much!</div><div><br></div><br clear="all">

<div><div dir="ltr"><div><div><div><div>Best,<br></div>Wenshan<br>------------------------------------------------------------------------------<br></div>Graduate Student Researcher<br></div>Earth System Science<br></div>

University of California, Irvine<br></div></div>
</div>
_______________________________________________<br>ncl-talk mailing list<br>List instructions, subscriber options, unsubscribe:<br><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br></blockquote></div><br></div></body></html>