[Thread Prev][Thread Next][Index]

Re: getting netcdf filename in a string variable



Francois,

see the command "return="

for example, if "tas" is one variable name in current dataset,
in order to define a string variable that contains the dataset file
path, issue the following command:

let a = "`tas, return=dsetpath`"

or, for just the filename:
let a = "`tas, return=dset`"

Jean-Marie

> Hi,
> 
> It's possible to get the current directory in a string variable using
> the commande :
> let dir = {spawn:"pwd"}   :
> 
> Now, I would like to put the current Netcdf filename in a string variable
> in a similar way. Is it possible , and how  ?
> 
> Thanks for your response.


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement