Missing files in addfiles

From: Carl J. Schreck, III <carl_at_nyahnyahspammersnyahnyah>
Date: Tue, 11 Aug 2009 11:12:34 -0400

When using addfiles, is there a way to check if any of the files do
not exist? The following prints "True" for addfile:

  garbageFile = addfile( "qwerty", "r" )
  print( any( ismissing( garbageFile ) ) )

but a similar version for addfiles prints "False":

  garbageFiles = addfiles( (/ "qwerty", "abcdef" /), "r" )
  print( any( ismissing( garbageFiles ) ) )

Any suggestions?

      Thanks,
      Carl

-- 
Carl J. Schreck, III
PhD Student
Department of Atmospheric and Environmental Sciences
University at Albany, ES 330
carl_at_atmos.albany.edu
http://www.atmos.albany.edu/student/carl/
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Aug 11 2009 - 09:12:34 MDT

This archive was generated by hypermail 2.2.0 : Thu Aug 13 2009 - 14:45:53 MDT