1

I had a raster and I clipped it using a shapefile of polygons. Now I have about 5500 individual raster images. I have to export the attribute table of each raster to excel so that I can then append them and make a new dataset in excel. Can someone tell me how to do this?

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
asked Jun 6, 2016 at 10:18
2
  • You have an ArcPy tag but have not included a code snippet of what you have tried so far. Did you use ArcPy to perform your clipping? Commented Jun 6, 2016 at 10:51
  • If you want to take attributes from one (or many) rasters and add them to another different raster you can do that easier by using cursors. From your explanation, you want to take one attribute from RasterA and copy the attribute to RasterB? Would you show what are you trying to achieve? Can you provide an example? Commented Jun 6, 2016 at 13:08

1 Answer 1

1

Take a look at this page, I think the code provided in that page is similar to what you are trying to achieve. Once you are done with creating csv files or text files, you can merge them easily into one single file in python. From my personal experince, I would suggest you to stay away from excel as your columns can get truncated depending on whether you use *.xls or *.xlsx format.

answered Jun 6, 2016 at 16:12

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.