<div dir="ltr"><div><div>Hi Zhifeng,<br><br></div>There are two variables in that file that cause this error when trying to read them, and suspiciously enough, they are both of type ushort. I can tell that error is coming from the HDF library, but I don't have an environment where I can tell why. Using strace, it appears as though the data are actually getting read from the file, but no insights as to why ultimately an error code is returned to NCL. I'm using hdf-4.2.11 -- there is a newer hdf-4.2.13, but the release notes don't indicate a problem of this nature has been resolved.</div><div><br></div><div>As a work around, I wondered about converting the HDF4 into either netcdf4 or hdf5. I tried using our ncl_convert2nc, but it complained with several errors. Perhaps there are other tools out there you might be aware of for converting HDF4 files?</div><div><br></div><div>I'm sorry, I wish I had a better answer for you, but I've hit a dead end on this.</div><div><br></div><div>Rick</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 19, 2018 at 8:34 AM, Zhifeng Yang <span dir="ltr"><<a href="mailto:yangzf01@gmail.com" target="_blank">yangzf01@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Rick,<div><br></div><div>I am sorry that I just saw your email. By following your instruction, I just uploaded a CALIOP hdf file onto the ftp. Here is the file info (size and file name)</div><div><br></div><div>42M<span style="white-space:pre-wrap"> </span>CAL_LID_L2_VFM-Standard-V4-10.<wbr>2015-06-08T08-02-42ZN.hdf<br></div><div><br></div><div>Thank you</div><span class="HOEnZb"><font color="#888888"><div>Zhifeng</div><div><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 11, 2018 at 4:04 PM, Rick Brownrigg <span dir="ltr"><<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi,<br><br></div>There has been some considerable work done since 6.4.0 on HDF support. Are you able to share this file with us? If its too big to email to me (directly), then you can use our FTP site -- see details at:<br><br><a href="http://ncl.ucar.edu/ftp_files.shtml" target="_blank">http://ncl.ucar.edu/ftp_files.<wbr>shtml</a><br><br></div>Rick<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_7102838279056007107h5">On Thu, Jan 11, 2018 at 12:23 PM, Zhifeng Yang via ncl-talk <span dir="ltr"><<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_7102838279056007107h5"><div dir="ltr">Hi all,<div><br></div><div>I am using NCL to read the CALIPSO VFM level 2 file. However, I got an error while reading the variable "Feature_Classification_Flags"<wbr>. Here is the error in detail.</div><div><br></div><div><div>fatal:HDF: An error occurred while attempting to read variable (Feature_Classification_Flags) from file (/home/vy57456/zzbatmos_common<wbr>/Data/MODIS/6/llj_eus/CALIOP/C<wbr>AL_LID_L2_VFM-Standard-V4-10/C<wbr>AL_LID_L2_VFM-Standard-V4-10.2<wbr>015-06-10T07-50-24ZN.hdf)</div></div><div><br></div><div>The code is like</div><div><br></div><div> dirh = "./"</div><div> nameh = "CAL_LID_L2_VFM-Standard-V4-10<wbr>.2015-06-10T07-50-24ZN.hdf"</div><div><div> fh = addfile(dirh+nameh, "r")</div><div> vfmh = fh->Feature_Classification_Fla<wbr>gs(:, :) </div></div><div><br></div><div>The NCL version is 6.4.0</div><div>When you are available, would you please help me to figure this out? Thank you</div><div><br></div><div>Best,</div><div>Zhifeng</div><div><br></div></div>
<br></div></div>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>