[Thread Prev][Thread Next][Index]

Re: [ferret_users] the length of a string array return from spawn



thank you very much for the response, Jaison. it was surprising to find that i'd asked a similar question not too long ago but totally forget it...

well, now i feel easier to write a wrapper in shell script passing the number of files to the FERRET go file through an input argument, instead of burdening FERRET with it.

Thanks,
D.

On 8/12/07, Jaison Kurian <jaison@xxxxxxxxxxxxxxxxxx> wrote:
Hi David,
           This is what exactly described in the following mail/link:

http://www.pmel.noaa.gov/maillists/tmap/ferret_users/fu_2007/msg00232.html

To know full details of this problem and solutions, lease read the complete
chain.

Hope this helps,

Regards,

Jaison



On Sun, 12 Aug 2007, David Wang wrote:

> Hi Ferreters,
>
> I was following Ch7 Sec2.11 (SPAWN command) to get the number of netcdf
> files in the current directory, so I tried
>
> yes? let a = {"dummy",SPAWN:"ls m002?.nc"}
> yes? list a
>              VARIABLE : {"dummy",SPAWN:"ls m002?.nc"}
>              SUBSET   : 5 points (X)
>  1   / 1:"dummy"
>  2   / 2:" m002a.nc"
>  3   / 3:"m002b.nc"
>  4   / 4:"m002c.nc"
>  5   / 5:"m002d.nc"
> yes? say `a,return=iend`
>  !-> MESSAGE/CONTINUE 2001
> 2001
>
> instead of 5, the last command returns 2001, which is not consistent with
> what the manual says. is anything wrong or the manual is out-of-date? i'm
> using the latest version of FERRET and the system is Fedora Core 7.
>
> Thanks,
> D.
>
>

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement