[Thread Prev][Thread Next][Index]

Re: [ferret_users] Define new variable!



Thanks, Serena

This seems not work.
I try with ` and ferret tells me "**ERROR: invalid command: grave accent doesnt evaluate to scalar"
and I also try with ', although no error message shows,
but when I

list elex

ferret shows **ERROR: command syntax: 'e1'

However, I try to re-define e1, like

let e1=nv[l=1,i=1]
let elex=lon[i=`e1`]

And it works.
I think I forgot to tell the variable "nv" is a 2-D array(i=1:100, l=1:3), lon is an 1-D array(i=1:100)
so this seems tell ` only works with only 1 number (nv[l=1, i=1]), not an 1-D array(nv[l=1]).
If so, may I use loop with ferret to create a variable like elex and keep it with 1-D array form (not only a number)?


2008/5/20 Serena Illig <serena.illig@xxxxxxxxx>:
You need to use special quotes around e1:

--------------------------
let e1=nv[l=1]
let elex=lon[i=`e1`]
--------------------------

Serena


On Tue, May 20, 2008 at 3:01 PM, Yu, Hao-Cheng <danish.url@xxxxxxxxx> wrote:
Dear ferret users,

I've been trying to define a new variable and use this variable as index of i-axis, like

--------------------------
let e1=nv[l=1]
let elex=lon[i=e1]
--------------------------

"nv" is integer, define i-index,
"lon" is longitude (also real)
I try to get "lon" variable at specific i-index.
The first line, e1 is OK.
But the second not work, ferret tells me "**ERROR: command syntax:"

ferret seems not support this kind of using!
Any suggestions?





--
.¸. , . .·´¯`·
><(((º> `·.¸.·´¯`·...¸><(((º>¸.¸. , . .·´¯`· ><(((º> .
`·.¸.·´¯`·...¸><(((º> .
.
Serena THEVENIN-ILLIG LEGOS/IRD .
14 Av. E. Belin .
31400 Toulouse .
FRANCE .
.
E-mail : serena.illig@xxxxxxxxx .
Web : http://sillig.free.fr .
Phone : 05 61 33 30 52 .
Fax : 05 61 25 32 05 .
<º)))><..·´


[Thread Prev][Thread Next][Index]

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

Privacy Policy | Disclaimer | Accessibility Statement