testing if files exist

From: Matt Fearon (matthew.fearon AT XXXXXX)
Date: Fri Apr 11 2003 - 12:52:14 MDT


dear ncl users:

is there a way to test if a file exists and print that result? for example,
if i have the following statements where "test.grb" doesn't exist

f=addfile("test.grb","r")
print(f)

with this, i receive a fatal error, but "f" still prints a missing value. is
there a way to check if "test.grb" exists before i use addfile?
suggestions are much appreciated.
thank you,
matt

_______________________________________________
ncl-talk mailing list
ncl-talk AT ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk



This archive was generated by hypermail 2b29 : Fri Apr 11 2003 - 13:49:06 MDT