0

I have two overlying raster datasets in ArcGIS which do have the same extent. One is a digital elevation model and the other one is a raster mask that contains three landuse classes (see figure below).

enter image description here

Is there a way I can concatenate the value from the mask class to each pixel of the digital elevation model?

I am trying to prepare the data for a hypsography barplot of area per elevation bin of 100m. For each elevation bin of 100m, I would like to plot the percentage of area for each class, analogous to the figure below.

enter image description here

Ideally would be an ASCII or .txt format to export the table into better suited software for this purpose such as R or matlab.

The structure in the attribute table for each overlapping pixel should look something like this.

Is it possible to join raster table information together so that I can get a table such as this?

 ElevationValueDEM (Raster1) MaskValue(Raster2)
 224                         Grass
 378                         Forest
  .                            .
  .                            .
  .                            .
  .                            .

With this structure it would be easy to group the classes together and do a grouped barplot.

  • 2
    Trivial in R - its something like data.frame(elevation = raster1[], mask=raster2[]), if both rasters have same extent and resolution... – Spacedman Dec 10 '17 at 20:11
  • 1
    Are you needing to work in a Raster format? If you convert both to shapefiles and run the intersect and dissolve tools you will get a breakdown of elevations and land use type. This attribute table can be exported out to txt for editing. – Keagan Allan Dec 11 '17 at 18:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.