[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 20050713: netCDF General - Segmentation fault
- Subject: Re: 20050713: netCDF General - Segmentation fault
- Date: Thu, 14 Jul 2005 22:03:27 -0600
>To: address@hidden
>From: "Misha Krassovski" <address@hidden>
>Subject: netCDF General - Segmentation fault
>Organization: ORNL
>Keywords: 200507132007.j6DK7Fwl022233, ncgen bug
Misha,
I wrote:
> In CDL, you need to use a separate declaration for each variable. It
> doesn't allow factoring out the type for a list of variables. So the
> declarations need to look like this:
>
> variables:
> int Station;
> int Month;
> int Day;
> int Year;
> int BottomDepth;
> int BottleNumber;
> int Cast;
> int Depth(Depth);
Actually, it turned out the real problem was declaring Depth to be a
scalar variable, but giving it multiple data values. So the
workaround is declaring
int Depth(Depth);
float Oxygen(Oxygen);
since you are providing lots of values for these two variables in the
data section. It's OK to factor out the type in a list of variables.
So for example, the following works fine:
netcdf bugr {
variables:
float Depth, Oxygen;
data:
Depth = 2;
Oxygen = 5;
}
but the following will trigger the segmentation fault:
netcdf bugr {
variables:
float Depth, Oxygen;
data:
Depth = 2, 4;
Oxygen = 5;
}
--Russ