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

Questions tagged [scipy]

SciPy refers to the Scientific Computing Tools for Python, which is a Python-based ecosystem of open-source software for mathematics, science, and engineering.

0
votes
2answers
3k views

How to save numpy array as single band image?

I'm working on MODIS NDVI composite data (single band). I converted the image to a numpy array and performed filtering operations. When i'm saving the new numpy array as an image I get a 3 band image ...
3
votes
0answers
69 views

Interpolating raster without edge bleeding in GDAL/Python

I'm working with a raster that is loaded into a numpy array that has a bit of noise in it. The area that I'm interested in is a particular area in the center of the image, but not necessarily bound by ...
1
vote
0answers
439 views

calculate difference between two interpolated grids using python [closed]

I'm trying to calculate difference between two interpolated grids. The grids are of different shapes, so cannot use np.subtract to calculate the difference. Any help on how to calculate the difference?...
1
vote
0answers
139 views

QGIS is not starting

My QGIS Installation is not loading after startup, cause of an error thrown. I have looked in similiar topics like QGIS fails to load and tried all of the options available. I changed to scipy 0.17 ...
1
vote
1answer
1k views

How to avoid getting “float division by zero” error message when using hierarchical clustering in the scipy plugin?

I am trying to use the hierarchical clustering function in the plugin scipy point clustering in order to group individuals that are close to each into populations. Here is a screenshot of my ...
4
votes
2answers
5k views

Calculate the average of neighbor pixels for raster edge

I have a small raster (or matrix) and I would like to know what is the difference between each pixel and the average of its' 8 neighbors in the case where the kernel window is on the edges and no ...
0
votes
1answer
262 views

Fiona import error when updated to version 1.7

I would like to update scipy to version 0.19 as it has the nice calculate area of a convex hull method. When updating with conda, this updates fiona to version 1.7. Now I get an error trying to import ...
1
vote
2answers
591 views

Calculate rank of 3d numpy array [closed]

I've been trying to find the best way to calculate the rank of a value from a 3d numpy array. This array is created from 35 years worth of rainfall data rasters. I'm treating the last raster in the ...
1
vote
1answer
427 views

What alternative to Voronoi polygons should I use for my QGIS problem? 2d Clustering?

I have a table with all the hotels in Paris. The columns are the name of the hotel, the geocode and the neighborhood (arrondissement) of Paris that hotel is in. I've plotted all these points in GQIS ...
3
votes
3answers
389 views

Buffering pixels in an array- python

Is there a way in SciPy or NumPy to buffer values in an array? I have several rasters that I read as arrays using gdal to do some math/masking and then I write the final array back to geoTIFF. One of ...
0
votes
1answer
410 views

Why memory map file is larger than original slide

I am having a tiff slide with the dimension of 90112 x 100352. The slide size is 1.3GB . To process this slide i am creating a numpy memmap file with above dimension like below. If I check the size ...
3
votes
0answers
347 views

Spatial clustering with attribute

I need to do some sort of spatial clustering where each spatial coordinate has a value attribute. So, for example, each point has a salary attached to it. So each cluster would have a total salary if ...
2
votes
0answers
195 views

Efficient way to analyze multiple (large) rasters against a different raster using numpy

The situation I have run into involves four rasters. I will try to explain each one and what it is for to help you get a better idea of what I'm trying to achieve. One of the rasters has been ...
1
vote
1answer
745 views

Installing SciPy for Semi-Automatic Classification Plugin of QGIS?

When I open QGIS, this message shows: Semi-Automatic Classification Plugin: Please, restart QGIS for executing the Semi-Automatic Classification Plugin. Possible missing dependecies: SciPy ...
0
votes
1answer
402 views

Can i code a surface difference between two XYZ's in Python?

I would tend to utilize ArcGIS to perform surface difference between two TIN's or Terrains but my recent attempts have been too costly computationally. Instead, what I would like to accomplish is to ...