On Fri, Mar 5, 2010 at 11:15 AM, <[email protected]> wrote:
> Hi all.
>
> For "cdf=ncenddef(cdf)", I get the following error:
>
> error: Error chaning mode: NetCDF: Not a valid data type or _FillValue type
> mismatch
>
> What am I supposed to do?
The netcdf library requires that _FillValue has the same type as the
variable. If your variable is a ncfloat, then you must explicetly
define the type by:
nc{'var'}.FillValue_ = ncfloat(-9999)
(if you place the underscore after FillValue you remain compatible
with the matlab netcdf toolbox. In any case it will be written as
_FillValue in the netcdf file.).
Alex
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev