0

I have 2 images; one is land cover image (imgA) and monthly mean temperature image (imgB). I'd like to choose value of each pixel from imgB corresponding to imgA. WhaT I expected is each pixel of certain land cover type should have different values in different area. I tried it using zonal statistic in ArcGIS and ERDAS. But zonal statistic give me only one value of each land cover (not in each pixel value). I'd like to keep all original pixel values of imgB according to each land cover. How can I do this using ArcGIS or ERDAS?

  • ii'm not sure to understand, but maybe you can use zonal histogram. – radouxju Apr 21 '14 at 17:08
  • 1
    It is unclear what it would mean to "choose value of each pixel from [one image] corresponding to [another image]." What exactly would the output look like? Please edit your question to clarify this. Perhaps you could supply a tiny example? – whuber Apr 21 '14 at 17:08
  • Have you looked into using Con resources.arcgis.com/en/help/main/10.2/index.html#//… – Aaron Apr 21 '14 at 20:39
1

Using Raster Calculator in ArcGIS should accomplish this task. Create a new field in your land cover raster and assign indicator numbers to each type (ie, Industrial = 100, Forest = 200, etc). Then add the two raster layers. Your output will have a 3-digit field where the first digit will indicate land cover and the second and third digits will represent the mean temp.

  • Let's hope mean temperatures are not negative! – whuber Apr 21 '14 at 18:30
  • yes, this is a pretty basic and rigid technique, but I've used it successfully with land cover data before. – mikeLdub Apr 21 '14 at 18:34
  • The LC image has originally indicator field named "Value". It has value Forest, desert 2 etc. Do I need to create another field? In raster calculator, what kind of expression should I run? Thank uou – Bandrush Barda Apr 22 '14 at 2:01
  • I have added the field and assigned numbers to them like forest 1, desert 2 etc. Then added 2 raster images (LC and temp) into raster calculator and then no idea how to create output image which include pixel values of temperature img and LC number. – Bandrush Barda Apr 22 '14 at 6:14
  • You need to add the two rasters to get an output raster with the combined values. See: Building Expressions with Raster Calculator – mikeLdub Apr 22 '14 at 12:46

Your Answer

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

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