[gdal-dev] problems with calculations with very small numbers (nearzero)

G. Allegri giohappy at gmail.com
Mon Oct 31 14:34:20 EDT 2011


Ops, you're right Bob. So the problem is the huge negative value... So the
problem is how to substitute it, maybe with a more treatable value outside
my raster range...

giovanni



2011/10/31 Moskovitz, Bob <Bob.Moskovitz at conservation.ca.gov>

> Hi Giovanni,****
>
> ** **
>
> I’ve seen -3.4028234663852886e+038 (which is a huge negative value.  Your
> minds eye probably saw a “-“ instead of “+”)  as a nodata value.****
>
> ** **
>
> Regards,****
>
> Bob****
>
> ** **
>
> Bob Moskovitz****
>
> Seismic Hazards Mapping Program****
>
> California Geological Survey****
>
> ** **
>
> CONFIDENTIALITY NOTICE: This communication is intended only for the use of
> the individual or entity to which it is addressed. This message contains
> information from the State of California, California Geological Survey,
> which may be privileged, confidential and exempt from disclosure under
> applicable law, including the Electronic Communications Privacy Act. If the
> reader of this communication is not the intended recipient, you are hereby
> notified that any dissemination, distribution, or copying of this
> communication is strictly prohibited.****
>
> ** **
>
> ** **
>
> ** **
>
> *From:* gdal-dev-bounces at lists.osgeo.org [mailto:
> gdal-dev-bounces at lists.osgeo.org] *On Behalf Of *G. Allegri
> *Sent:* Monday, October 31, 2011 11:19 AM
> *To:* gdal-dev at lists.osgeo.org
> *Subject:* [gdal-dev] problems with calculations with very small numbers
> (nearzero)****
>
> ** **
>
> Hi, ****
>
> I'm having some troubles with raster algebra on a raster with very small
> (near zero, but not).****
>
> I'm using numpy (through python gdal) to do a multiplication, eg
> numpy.multiply(rasterarr,2), but I obtain the following raster stats:
> http://pastebin.com/hHiUrWwD.****
>
> ** **
>
> I suppose that -3.4028234663852886e+038 values are causing the problems,
> and I wonder wha'ts the best way to deal with these kind of values... Maybe
> rounding them to zeros?****
>
> I've tried to do it using the LUT tag inside a VRT dataset, but it doesn't
> seem to do the job.****
>
> ** **
>
> giovanni****
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20111031/83ec7d62/attachment.html


More information about the gdal-dev mailing list