Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Results tagged with raster
Search options not deleted
user 80997
Raster is a data format consisting of regular grids of values, usually stored in an image-like format.
2
votes
Locating the maximum values of a raster intersection with a vector of polygons using Python
us to locate XY position of the maximum values.
import geopandas as gpd
import pandas as pd
import numpy as np
from rasterstats import zonal_stats
vectorbac = "/home/zeito/pyqgis_data/polygon9.shp"
raster … = "/home/zeito/pyqgis_data/raster3.tif"
def pixel2coord(col, row):
"""Returns global coordinates to pixel center using base-0 raster index"""
xp = a * col + b * row + a * 0.5 + b * 0.5 + c …