<div dir="ltr"><div>Hi,</div><div><br></div><div>As that file resides on /glade, I was able to access it and duplicate the problem. I can print() that variable, but I can't load it into an NCL variable. Its rather large -- 699MB. Perhaps that's the problem?  Interestingly, if I run "ncdump" on that file, I get:</div><div><br></div><div> ncdump /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 <br>ncdump: /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: NetCDF: Attempt to use feature that was not turned on when netCDF was built.</div><div><br></div><div>Rick</div><div><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, Sep 4, 2025 at 3:16 PM Ehsan Taghizadeh via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-size:16px;font-family:bookman old style,new york,times,serif"><div><div dir="ltr" style="font-family:bookman old style,new york,times,serif">Hi Zhifeng,</div><div dir="ltr" style="font-family:bookman old style,new york,times,serif"><br></div><div dir="ltr"><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"><div style="font-family:bookman old style,new york,times,serif"><br></div><div dir="ltr"><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"><font face="courier new, courier, monaco, monospace, sans-serif">print (exists)</font></div><br></div><div dir="ltr" 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"><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" style="font-family:bookman old style,new york,times,serif"><br></div><div dir="ltr"><div><div dir="ltr"><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><font face="courier new, courier, monaco, monospace, sans-serif">print (names)</font></div></div></div><div dir="ltr" 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 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="m_1325923296380857432ydpbccc2b23yahoo_quoted_7208499790" 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 <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a>> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="m_1325923296380857432ydpbccc2b23yiv2474529368"><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></div>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" 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="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>