Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [memoryerror]

The tag has no usage guidance.

0
votes
2answers
38 views

Reduce GEE memory usage?

I am working with global applications and decided to use the Python Earth Engine API to collect some data I will need. I am exporting annual, global NDVI composites based on Landsat. Since this ...
2
votes
0answers
87 views

Using Reclass in Arcpy, Error 010005: Unable to Allocate Memory

I've derived a raster of slopes from a 10 m DEM resampled to 15 m for an area of approximately 20,000 mi^2. I want to use Python to reclassify those slopes into categories according to range, but ...
0
votes
1answer
211 views

GEE unsupervised classification (clustering) of Landsat 8 cloud free composite - User memory limit exceeded

Can anyone explain why I am getting the memory limit error when trying to classify using the wekaKMeans algorithm over a cloud-free composite of Bangladesh? I'm trying to differentiate mangrove pixels....
1
vote
2answers
517 views

NumPy memory error on large rasters

I have multiple large rasters. Their 5 percentile and 95 percentile are needed to be calculated. After loading the rasters to the ArcMap, I am using the following codes - import numpy import arcpy ...
2
votes
1answer
167 views

Arcpy “MemoryError”; Get Classification Breaks on a TIF Raster; Jenks Breaks; Python

I have a large .tif raster with integer values. I wish to generate Jenks classification breaks using code and then use those breaks to reclassify my .tif file. I came across a block of code that I ...
1
vote
2answers
863 views

Replace NA's with 0 for large raster data using R?

I want to replace all NA values in a large raster with 0. I found this answer: Replace NA's with 0 for raster data using R? #getting a raster library(raster) f <- system.file("external/test....
1
vote
0answers
64 views

Getting MemoryError making hexagonal lattice over polygon in ArcPy? [closed]

I am creating a hexagonal lattice that I will then use to create Thiessen Polygons. We are required to make a lattice first. I can't figure out how to get rid of the MemoryError that looks like this: ...
0
votes
1answer
154 views

Arcpy RasterToNumPyArray does not read floating point raster

I have below rasters: One with dimension (13646, 7510) where INTEGER pixel values ranges from 0-14. One with dimension (13646, 7510) where DOUBLE (upto 10 decimal places) pixel values ranges from 0-...
1
vote
3answers
2k views

Convert Raster to Numpy Array with only Arcpy and Numpy

All the articles I'm finding including GDAL or PIL(?) which I cannot use. So I am trying to convert a raster I have to a Numpy Array with Arcpy and Numpy and then calculate some statistics on it but ...
1
vote
2answers
2k views

import arcpy failed Python 2.7 with ArcGIS 10.3 64-bit Background geoprocessing RuntimeError: NotInitialized

I want to run a python script that uses arcpy. It was running earlier on a 32-bit machine without problems. On a 64-bit machine I get a MemoryError. The 64-bit backgroundgeoprocessing of ArcGIS 10.3 ...
3
votes
1answer
1k views

Python MemoryError when running ArcGIS Python Toolbox tool

I have a Python Toolbox (.pyt) containing a single tool. Part of that tool is the following function, which creates a dictionary from an attribute table, where the keys are the rows' OBJECTIDs and the ...