[Thread Prev][Thread Next][Index]

Re: using .jnl file for several I/O



Try using backquotes:

 repeat/j=1:71:7 (use akhil_`j`.nc 


On Mon, 29 Sep 2003, Akhilesh Kumar Mishra wrote:

> Dear Ferret users;
> 
> I wish to  run one freet script(.jnl file for several input and output file )using the "repeat " .
> 
> Below is the line I am using to extract and regid the netcdf data in to binary format.
> 
> repeat/j=1:71:7 (use akhil_'j'.nc; define axis/x=35E:115E:0.25/unit=degrees xfn; define axis/y=20S:25N:0.25/unit=degrees yfn; define grid/x=xfn/y=yfn gfn; let h_rgd=GRID_0001[g=gfn]; save/file=akhil'j'.grd/form=stream  h_rgd; cancel data)
> 
> Following are the comments ;
> 
> !-> REPEAT: J=1
>  **TMAP ERR: non-existent or not on line
>              akhil_'j'.nc
> SET DAT/FORM=CDF akhil_'j'.nc
>  **ERROR: variable unknown or not in data set: GRID_0001[G=GFN]
> LIST/FORMAT=CDF/file='j'.grd/form=stream  h_rgd
>  **ERROR: invalid command: CANCEL what?
> cancel data
> 
> help required. Thanks in advance.
> 
> Mishra, A. K.
> 
> 
> 

-- 
======================================================================
   James Orr                      
   Laboratoire des Sciences du Climat et de l'Environnement
   Unite Mixte de Recherche CEA-CNRS

   LSCE, CEA Saclay                http://www.ipsl.jussieu.fr/~jomce
   Bat. 709 - Orme                 mailto:  orr@cea.fr
   F-91191 Gif-sur-Yvette Cedex    Phone:   (33) (0)1 69 08 77 23
   FRANCE                          Fax:     (33) (0)1 69 08 77 16
======================================================================



[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement