Hi.
I realize that this is a problem with the "floor' command. Any suggestions?
---------- Forwarded message ----------
From: Erik Noble <enoble_at_giss.nasa.gov>
Date: Feb 6, 2008 3:38 PM
Subject: dimension size parameter error
To: "ncl-talk_at_ucar.edu" <ncl-talk_at_ucar.edu>
Hi.
I am getting an error that says:
"fatal:New: the dimension size parameter is the wrong type an integer
value was expected"
when i have this syntax in my code
nvtimes = floor((ntimes-1)/8) ntimes = 487, nvtimes should equal "60"
print(nvtimes)
V925 = new((/nvtimes, 109, 139/),"float")
But when I just state an integer, I do not get an error.
nvtimes = 60
print(nvtimes)
V925 = new((/nvtimes, 109, 139/),"float")
Variable: nvtimes
Type: integer
Total Size: 4 bytes
1 values
Number of Dimensions: 1
Dimensions and sizes: [1]
Coordinates:
(0) 60
How can I correct calling in the named dimension size parameter?
-Erik
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Feb 06 2008 - 15:01:01 MST
This archive was generated by hypermail 2.2.0 : Thu Feb 07 2008 - 08:58:57 MST