Re: Re: [ncl-talk] Finding out a file's path

From: Jan Ploski <Jan.Ploski_at_nyahnyahspammersnyahnyah>
Date: Tue, 12 Feb 2008 14:38:51 +0100

Dennis Shea <shea_at_ucar.edu> schrieb am 02/12/2008 02:33:50 PM:

> To my knowledge, the answer is "no".
> You can not determine the path/file to which "file" is pointing.
>
> [1] Since "file" is an NCL reserved keyword, I am surprised you
> did not get and error message.
>
> [2] I always recommend:
>
> diri = "/some/path/"
> fili = "wrfout_d02_2007-01-06_00:00:00"
> f = addfile (diri+fili, "r")
>
> [3] Also, you may want to look at: get_file_suffix
>
>
http://www.ncl.ucar.edu/Document/Functions/Contributed/get_file_suffix.shtml
>
> sometimes this can come in handy.

Ok, that's good to know. Maybe you can add a method for determining a
file's path in a future version of NCL. Until that happens I can pass the
path used to create the file object together with the file object itself
to my procedure (rather redundant and ugly, but it works).

Best regards,
Jan Ploski
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Feb 12 2008 - 06:38:51 MST

This archive was generated by hypermail 2.2.0 : Tue Feb 12 2008 - 14:45:27 MST