[gdal-dev] Excessive memory usage in python script
Christopher Barker
Chris.Barker at noaa.gov
Mon Jun 9 15:40:07 EDT 2008
Jamie Adams wrote:
> How can I get the memory usage under control?
sorry I can't help with this, but as a numpy evangelist...
> temp_out = Numeric.multiply(temp_out, -1)
this creates and unneeded copy, but you can do:
temp_out *= -1
to do it in-place. (that's certainly work with numpy, but I'm pretty
sure it's supported in Numeric as well)
One other thought is to use pyTables to get your HDF data, and write the
geotiffs with GDAL:
http://www.pytables.org/moin
Sorry I couldn't be of more help.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the gdal-dev
mailing list