Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

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


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.