Invalid Habitat code #28
-
Hello, When running a simulation using a ascii raster file created from a UK landcover map and some manually drawn hedgerows I get the error "Run Simulation(s) with random seed ... This raster works in the GUI version just not in the R version and when I list the habitat codes: unique(lcm_reclass) they are all just integers and should be fine? cheers for any help, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Sam, |
Beta Was this translation helpful? Give feedback.
Hi Sam,
the cause for this is one of the few differences that remained between the GUI and the batch version & RangeShiftR (which is based on the batch version).
In the GUI the habitat codes can take any positive integer values, like 1,5,7,... but in the batch version & in RangeShiftR, the habitat codes must be sequential, like 1,2,3,... . If you convert the values of your habitat types, it should work.
Hope this helps!
Cheers,
Anne