[Thread Prev][Thread Next][Index]

Re: using .jnl file for several I/O



hi Akhilesh,
	to generate file names from the index j you've to use grave
accent which uses back quotes (`). So, the point you are missing is by
using the single quote there.
Now, you'll write something like this:

repeat/j=1:71:7 (use akhil_`j`.nc; define \
axis/x=35E:115E:0.25/unit=degrees_east ... \
save/file=akhil`j`.grd/form=stream ... )

 Here one more point is that, you can define your target axes and
grid before the repeat loop itself so that every time it does not
have to redefine the axes and grid which are going to be the same for
every file. Ferret will remember the definitions until the end of
the session unless you 'cancel' them.

Hope this helps,

~ Arindam C

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.
> 
> 
> 




[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement