<html><head></head><body><div class="ydpbccc2b23yahoo-style-wrap" style="font-size: 16px; font-family: bookman old style, new york, times, serif;"><div style=""><div dir="ltr" data-setdir="false" style="font-family: bookman old style, new york, times, serif;">Hi Zhifeng,</div><div dir="ltr" data-setdir="false" style="font-family: bookman old style, new york, times, serif;"><br></div><div dir="ltr" data-setdir="false"><span style="font-family: bookman old style, new york, times, serif;">Could you please add the following commands before your </span><font face="courier new, courier, monaco, monospace, sans-serif">addfile</font> command:</div><div dir="ltr" data-setdir="false" style=""><div style="font-family: bookman old style, new york, times, serif;"><br></div><div dir="ltr" data-setdir="false"><font face="courier new, courier, monaco, monospace, sans-serif">exists = isfilepresent("CAL_LID_L2_VFM-Standard-V4-51.2017-08-21T14-00-11ZD.hdf")</font></div><div dir="ltr" data-setdir="false" style=""><font face="courier new, courier, monaco, monospace, sans-serif">print (exists)</font></div><br></div><div dir="ltr" data-setdir="false" style="font-family: bookman old style, new york, times, serif;">I wonder if your ncl script and the file are in the same place.</div><div dir="ltr" data-setdir="false"><span style="font-family: bookman old style, new york, times, serif;">In case it returns </span><font face="courier new, courier, monaco, monospace, sans-serif">True</font>, could you please add the following commands just after reading your file (after <font face="courier new, courier, monaco, monospace, sans-serif">addfile</font> command):</div><div dir="ltr" data-setdir="false" style="font-family: bookman old style, new york, times, serif;"><br></div><div dir="ltr" data-setdir="false" style=""><div style=""><div dir="ltr" data-setdir="false"><font face="courier new, courier, monaco, monospace, sans-serif">names = getfilevarnames( <span style="font-size: 16px;">"CAL_LID_L2_VFM-Standard-V4-51.2017-08-21T14-00-11ZD.hdf"</span>)</font></div><div style=""><font face="courier new, courier, monaco, monospace, sans-serif">print (names)</font></div></div></div><div dir="ltr" data-setdir="false" style="font-family: bookman old style, new york, times, serif;"><br></div><div style="font-family: bookman old style, new york, times, serif;"><i style="color: rgb(0, 0, 0); font-family: old times, serif;"><font size="2">-----------------------------------------------------------------------------</font></i></div><div class="ydpbccc2b23signature" style="font-family: bookman old style, new york, times, serif;"><div dir="ltr" style="font-family:old times, serif;font-size:16px;"><div dir="ltr" style="color:rgb(0, 0, 0);font-family:old times, serif;font-size:16px;"> <div><div style="color:rgb(0, 0, 0);font-family:serif;font-size:16px;"><div dir="ltr"><i><font size="2">Best regards,</font></i></div><div dir="ltr"><i><font size="2">Ehsan Taghizadeh</font></i></div></div></div></div></div></div></div>
        <div style="font-family: bookman old style, new york, times, serif;"><br></div><div style="font-family: bookman old style, new york, times, serif;"><br></div>
        
        <div id="ydpbccc2b23yahoo_quoted_7208499790" class="ydpbccc2b23yahoo_quoted" style="font-family: bookman old style, new york, times, serif;">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
                
                <div>
                    On Thursday, September 4, 2025 at 01:37:05 PM PDT, Zhifeng Yang via ncl-talk <ncl-talk@mailman.ucar.edu> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="ydpbccc2b23yiv2474529368"><div dir="ltr">Hi all, <div><br></div><div>I am using NCL 6.6.2 to read CALIPSO latitude, longitude, and Feature_Classification_Flags variable from CAL_LID_L2_VFM-Standard-V4-51. </div><div><br></div><div>  fh = addfile("CAL_LID_L2_VFM-Standard-V4-51.2017-08-21T14-00-11ZD.hdf","r")</div><div>   lath      = fh->Latitude(:, 0)<br>   lonh      = fh->Longitude(:, 0)<br>   vfmh      = fh->Feature_Classification_Flags</div><div><br></div><div>However, I got the error below</div><div>fatal:HDF: An error occurred while attempting to read variable (Feature_Classification_Flags) from file (/glade/derecho/scratch/zhifengy/data/experiment_input/doe_cloud_africa/CALIPSO/CAL_LID_L2_VFM-Standard-V4-51/test/CAL_LID_L2_VFM-Standard-V4-51.2017-08-21T14-00-11ZD.hdf)</div><div><br></div><div>Do you have any idea about this? Thanks,</div><div><br></div><div>Best,</div><div>Zhifeng</div><div><br></div></div>
</div>_______________________________________________<br>ncl-talk mailing list<br><a href="mailto:ncl-talk@mailman.ucar.edu" rel="nofollow" target="_blank">ncl-talk@mailman.ucar.edu</a><br>List instructions, subscriber options, unsubscribe:<br><a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="nofollow" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br></div>
            </div>
        </div></div></body></html>