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 |
A Geospatial Data Abstraction Library (GDAL) image mosaicing, reprojection, and warping utility.
0
votes
0
answers
85
views
gdal_warp cannot specify target extents
rname.replace("NAMRIA_gain_10N_110E","Palawan")
outRaster = os.path.join("/home/brent/Documents/Hansen_new_data/New_data/10_110/Province/gain/", raster2) #specifying the output raster new name
warp = 'gdalwarp … '%s\' -cutline \'%s\' -crop_to_cutline -overwrite -co compress=LZW \'%s\' \'%s\'' % (extent, shp, raster, outRaster) #calling gdal warp, crop to cutline is specified here
os.system(warp) #running gdalwarp …
2
votes
1
answer
739
views
Export raster with one band only using gdalwarp in extracting raster using shapefile via pyt...
input = os.path.join("/data/brent/bukidnon_hansen_data/bukidnon_forest_cover_hansen", fname)
(pathshp, shpname) = os.path.split(mask_layer)
(newName, ext) = os.path.splitext(shpname)
warp = 'gdalwarp … I checked the gdalwarp documentation http://www.gdal.org/gdalwarp.html but I can't find the arguments that should make the output raster as single band.
Perhaps I missed something? …