Re: retrieve the path from a variable that references a file

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Jul 26 2010 - 16:48:55 MDT

Hi Álvaro,

There's no easy way to do this in NCL unfortunately. We do already have a ticket for this
request, and I'll append your email to it. Hopefully we can get this for the next release.

--Mary

On Jul 23, 2010, at 8:53 AM, Álvaro M. Valdebenito B. wrote:

> 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

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jul 26 16:49:39 2010

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