file fatal error handling

From: Vladyslav Lyubartsev <vladyslav.lyubartsev_at_nyahnyahspammersnyahnyah>
Date: Fri May 06 2011 - 02:02:01 MDT

Hi,
I have to process a huge archive of netCDF file, some of them are corrupted,
and I cannot find any NCL workaround to avoid this situation:

f=addfile("test.nc","r")
fatal:NetCDF: Unknown file format
fatal:Could not open (test.nc)

As for me in this case the best way would be to raise just warning, set
variable "f" to missing value, and raise fatal error later, when it will be
really fatal.
Anyway, which way could you recommend to avoid the script crashing?

Best regards,
Slava

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri May 6 02:02:33 2011

This archive was generated by hypermail 2.1.8 : Fri May 13 2011 - 10:21:56 MDT