Hi,
Ferret syntax always treats vector components as individual
variables. So to subtract one vector field from another one, you
subtract the components.
let a=u[d=1,k=2,l=1:30@ave]
let b=v[d=1,k=2,l=1:30@ave]
let c=u[d=1,k=2,l=1:60@ave]
let d=v[d=1,k=2,l=1:60@ave]
vector/length=5 a-c, b-d
On 10/11/2012 3:30 AM, nitin patil
wrote:
Dear Sir
let a=u[d=1,k=2,l=1:30@ave]
let b=v[d=1,k=2,l=1:30@ave]
let c=u[d=1,k=2,l=1:60@ave]
let d=v[d=1,k=2,l=1:60@ave]
how to subtract this above to get anomaly
say vec/length=5 a,b - c,d
shows error
On Thu, Oct 11, 2012 at 3:37 PM,
Nagarjuna Rao <dnrao.au@xxxxxxxxx>
wrote:
Hi
you just try this code.
let a=u[d=1,k=2,l=1:30@ave]
let b=v[d=1,k=2,l=1:30@ave]
vector a,b
It shold work.
all the best.
On Thu, Oct 11, 2012 at 2:43 PM,
nitin patil <nitinpatil85@xxxxxxxxx>
wrote:
Dear Ferret users,
I am trying to average one month wind u,v and to keep
it in a variable 'all' so that I can subtract it from
long term average to see the anomaly
but it is showing error to keep the variable 'all'
let all=u[d=1,k=2,l=1:30@ave],v[d=1,k=2,l=1:30@ave]
**ERROR: command syntax:
u[d=1,k=2,l=1:30@ave],v[d=1,k=2,l=1:30@ave]
Definition contains multiple expressions
--
Regards,
Nitin
--
D.Nagarjuna Rao
CSIR Research Fellow,
Climate and Global modeling division,
IITM,Pune-411008.
Phone no: 8087706223(old)
8055912879(new)
9689410009(new idea)
--
Regards,
Mr. Nitin Patil
PhD Research Scholar,
Centre of Excellence in Climate Studies,
Indian Institute of Technology (IIT) Bombay,
Powai, Mumbai - 400076, INDIA.
e-mail: nupatil@xxxxxxxxxx
|