[Thread Prev][Thread Next][Index]

Re: [ferret_users] string variable as file name



Hi Chao,

Try

yes? let filename= "/home/data01/OUTPUT_A5F_SP2/hist_spinup.nc"
yes? use `filename`

(delimit variable with grave accent)

Cheers,

Paulo Santiago

2011/5/20 Chao YUE <chaoyuejoy@xxxxxxxxx>
Dear all,

A very simple question, why I if use

yes? use "/home/data01/OUTPUT_A5F_SP2/hist_spinup.nc"  it works.

but if I do like this:
yes? let filename= "/home/data01/OUTPUT_A5F_SP2/hist_spinup.nc"
yes? use filename

it will fail?

The problem is simplified because I want to use the file names stored in a string array.

Thanks a lot,

Chao

--
***********************************************************************************
Chao YUE
Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex
Tel: (33) 01 69 08 77 30; Fax:01.69.08.77.16
************************************************************************************




--
Paulo Santiago
Doutorado em Meteorologia
Programa de Pós-Graduação em Meteorologia
Instituto Nacional de Pesquisas Espaciais
Tel.: (12) 3186 8637


[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement