retrieve the path from a variable that references a file

From: Álvaro M. Valdebenito B. <alvaro.valdebenito_at_nyahnyahspammersnyahnyah>
Date: Fri Jul 23 2010 - 08:53:21 MDT

Dear NCL community,

To make a long story short,
I want to implement a work around the between
different output types from addfile/addfiles (file/list).

For that I would like to promote file types (variable that
references, i.e. typeof(var).eq."file") to a list of one file type.

Is there a way to retrieve the path/filename from a file type variable?

print and printVarSummary will display the information,
but it is not a attribute nor a dimension

ff=addfile("some/path/file.nc","r")
printVarSummary(ff)
Variable: ff (parameter)
(0)
filename: file
path: some/path/file.nc
[snip]

Thanks in advance,
Álvaro.

-- 
Álvaro M. Valdebenito B., Dr. rer. nat.       alvaro.valdebenito@met.no
Air Pollution Section/Research Department     Tel. +47-2296 3397
Norwegian Meteorological Institute            http:\\www.met.no
P.O. Box 43 Blindern, 0313 Oslo, NORWAY       http:\\www.emep.int/CWF
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Jul 23 08:53:26 2010

This archive was generated by hypermail 2.1.8 : Wed Jul 28 2010 - 10:42:06 MDT