Hi Eric,
My guess is that you are passing a name into the FancySSCell constructor
that is causing problems. The BasicSSCell class stores each associated
data object with a variable name in a visad.formula.FormulaManager, so
that you can do things like "A1d1 + A2d1" to add the first data object
from cell A1 to the first data object of cell A2, for example. But if
your cell name is "A+B" then it will try to name your first data object
"A+Bd1" -- an illegal variable name because of the "+" symbol.
I'd stick with letters and numbers for your cell names, just to be safe.
If you think your problem is due to something else, then sending a stack
trace of the exception you are receiving would be very helpful.
-Curtis
Eric Davies wrote:
I've build a 4D grid representing samples at
time,altitude,latitude,longitude.
I'm trying to pass this grid to a visad.ss.FancySSCell with a single
addData() method call.
However, the response I'm getting is a visad.formula.FormulaException
with the text:
variable names cannot contain operators
I'm include my field below. Can anyone shed some light?
Thank you,
FieldImpl
Type: (Time -> ((Longitude, Latitude, Altitude) -> temp))
DomainSet:
visad.Gridded1DDoubleSet: Dimension = 1 Length = 5
Dimension 0: Length = 5 Range = 0.0 to 4.0
Range value 0:
FlatField
Type: ((Longitude, Latitude, Altitude) -> temp)
DomainSet:
visad.Gridded3DSet: Dimension = 3 Length = 50000
Dimension 0: Length = 50 Range = -180.0 to -131.0
Dimension 1: Length = 50 Range = -90.0 to -41.0
Dimension 2: Length = 20 Range = 0.0 to 19.0
RangeSet[0]:
FloatSet: Dimension = 1
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0
**********************************************
Eric Davies, M.Sc.
Barrodale Computing Services Ltd.
Tel: (250) 472-4372 Fax: (250) 472-4373
Web: _http://www.barrodale.com_ <http://www.barrodale.com/>
Email: eric@xxxxxxxxxxxxx
**********************************************
Mailing Address:
P.O. Box 3075 STN CSC
Victoria BC Canada V8W 3W2
Shipping Address:
Hut R, McKenzie Avenue
University of Victoria
Victoria BC Canada V8W 3W2
**********************************************