Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Trying to figure out a way of doing this via arcpy, but don't see anything remotely related to this. My raster dataset is a GRID.

    'pPixBlock is an IPixelBlock

    'sets raster to be one column and one row in size
    pSizePoint.SetCoords(1, 1)

    pPixBlock = praster.CreatePixelBlock(pSizePoint)

Any insights will be greatly appreciated. Thanks!

share|improve this question
3  
arcpy is not meant to be feature-equivalent to ArcObjects. What exactly is the desired end result? You might be able to use numpy for it. –  blah238 Nov 15 '12 at 3:32

1 Answer 1

If you want extract a portion of a raster to a numpy array, you can use RasterToNumPyArray

The orther way arround you can create a numpy array and write the value's to a raster: NumPyArrayToRaster

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.