Questions tagged [code-review]
Questions requesting a review of working code should be asked at the Code Review Stack Exchange
9
questions
25
votes
3
answers
16k
views
Speeding up plotting of polygons in R
I want to plot the country borders of North America over a raster image depicting some variable and then overlay contours on top of the plot using R. I have been successful in doing this using base ...
2
votes
0
answers
392
views
Making Dijkstra faster
I would like to compute shortest path between 2,5 millions pairs.
I created table with id, origin, the nearest node of origin, destination, the nearest node of destination.
I also created index on ...
30
votes
2
answers
7k
views
Using OGR and Shapely more efficiently? [closed]
I'm looking for some suggestions about how to make my python code more efficient. Normally efficiency doesn't matter for me but I am now working with a text file of US locations with over 1.5 million ...
13
votes
1
answer
10k
views
Counting points in polygons with sf package of R?
I'm quite new to R and especially GIS with R. So recently I had to proceed to a quite simple analysis: counting health centers (points) per administrative unit (polygons). Quite common process in ...
9
votes
2
answers
13k
views
Maximizing Code Performance for Shapely
I've written this code in order to calculate the percent cover of grassland within a national park, within 20km^2 of points of recorded occurrences for a species. It is designed to only consider the ...
2
votes
1
answer
5k
views
Fastest way to extract a raster in R (improve the time of my reproducible code)
I'm wondering if I have maximized the speed at which a mean of an area buffered around a point in a raster can be extracted.
Fastest way I have ever found to extract a raster, with the pre-cropping ...
1
vote
1
answer
682
views
Reducing hourly rainfall data to monthly data for particular period of time and making a timeseries chart
I am working with GSMaP image collection (hourly rainfall data) in Google Earth Engine. I would like to make a script which is calculating and making a chart of sum rainfall in particular location ...
0
votes
1
answer
75
views
Geometry of recently created point
Description
I am currently working on a project that requires the creation of default values in certain fields when attempting to insert a new feature. This operation is illustrated in the figure ...
0
votes
0
answers
29
views
Getting Exported bands must have compatible data types; found inconsistent types: Float64 and Float32 using Google Earth Engine [duplicate]
I'm trying to export sentinel-1 bands with this code in Google Earth Engine but I have recently this error. I didn't have this problem in the past. So here is the code.
The code:
var start = new ...