Assigning dimension name in subroutine

From: <Oliver.Fuhrer_at_nyahnyahspammersnyahnyah>
Date: Wed, 12 Nov 2008 11:44:38 +0100

Hi all,

When I execute the following script (test.ncl)...

procedure gugus( var:numeric )
begin
  var!0 = "gugus"
end
begin
a=(/0,1/)
a!0 = "dada"
print(a!0)
gugus(a)
print(a!0)
end

...I get the following output...

(0) dada
warning:VarVarWrite: Dimension names for dimension number (0) don't
match, assigning name of rhs dimension to lhs, use "(/../)" if this
change is not desired
(0) gugus

The code seems to work, but I don't understand the warning and I don't
know how to get rid of it.

Thanks for any help,
Oliver
 

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Nov 12 2008 - 03:44:38 MST

This archive was generated by hypermail 2.2.0 : Fri Nov 14 2008 - 16:42:12 MST