[Gdal-dev] Computing MinMax on a NETCDF subdataset
Frank Warmerdam
warmerdam at pobox.com
Tue Apr 24 09:32:22 EDT 2007
Joaquim Luis wrote:
> Hi,
> In my gdalread MEX file I have this call
>
> GDALComputeRasterMinMax(hBand, FALSE, adfMinMax);
>
> which, in case of reading a NETCDF file, is returning
>
> adfMinMax[0] = 0 and adfMinMax[1] = 0
> or
> adfMinMax[0] = -4294967295.0 and adfMinMax[1] = 4294967295.0
> if I change to
> GDALComputeRasterMinMax(hBand, TRUE, adfMinMax);
>
> Note that I'm using this (example)
> Z = gdalread('NETCDF:"D:\SVN\global.nc":z');
> which is the correct way of using this MEX, confirmed by the fact that Z
> has the correct values.
>
> For all other formats that I have tested, the min/max is correct.
>
> Is this on purpose or a feature?
Joaquim,
This is not expected behavior. Could you provide the global.nc file for me
to do some testing with? Perhaps best to file this as a problem bug so I
can keep track of it.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org
More information about the Gdal-dev
mailing list