0

I am trying to create a raster map with cells with the value 0 (outside study area), and the other cells with value 1 (the study area)

I have two input layers for this (the image below) How can I make the two separate layers below into one layer with:

  • value 0 (blue) = outside the study area
  • value 1 (black) = study area

I tried tools such as the mosaic tools. However, the value now for both the layers below is 1, so I think this is the reason it did not combine.

enter image description here

1 Answer 1

0

You have a few options. Some easy ones are... Option 1: Reclassify. Reclassify your study area raster such that 1 = 1 and NoData = 0. You can use environment settings to ensure that the output is the same extent as the not-study-area raster. Option 2: Con. Use the Con function such that if study area = 1 take the value from study area else take the value from not study area.

3
  • Thank you. The reclassify is indeed nice option. However, when i try to assign a new value to the NODATA it does not allow me to make this 0. It changes automatically back to 'NODATA'. Is it an issue that my two input layers have both a value of 1? Nov 3, 2022 at 15:32
  • ah it did work thank you, i did not press enter Nov 3, 2022 at 15:57
  • Great, if you would accept the answer I would appreciate it.
    – GBG
    Nov 3, 2022 at 16:14

Your Answer

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

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