Re: False Positives with isfilepresent()

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Wed Nov 27 2013 - 12:29:59 MST

Hi Bill,
The problem is with NCL's approach of looking for alternative names for files that could be in a supported format. If you use addfile to open a file called
"", and it is not found, then NCL looks for a file without the ".nc" extension (i.e. "") and tries to open it as a NetCDF file. Of course, when using addfile, if the file turns out not to be NetCDF, you would get an error message, but currently isfilepresent does not actually test to see whether the alternately named file is truly a NetCDF file. Your scenario suggests that it should. I will create a ticket for this issue.

On Nov 27, 2013, at 12:12 PM, "Capehart, William J" <> wrote:

> I am running into a problem with the “isfilepresent” function
> I have files that MAY need to be converted into netcdf files if their parent file is there.
> For example for the file pair:
> I need the isfilepresent() command to return a FALSE if even if there is a
> Has anyone else seen this problem and if so, is this bug or a feature?
> ================================================================
> Bill Capehart <> Associate Professor
> Department of Atmospheric Sciences AES PhD Coordinator
> 213 Mineral Industries Building Skype/EVO: wcapehart
> South Dakota School of Mines and Technology Ph: +1-605-394-1994
> 501 East Saint Joseph Street Fax: +1-605-394-6061
> Rapid City, SD 57701-3995 Mobile: +1-605-484-5692
> =================== ==================
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Wed Nov 27 12:30:10 2013

This archive was generated by hypermail 2.1.8 : Wed Dec 04 2013 - 20:42:38 MST