ConScape / ConScapeR

Other
3 stars 1 forks source link

argument `output` or `type` in `connected_habitat` #3

Closed bniebuhr closed 5 months ago

bniebuhr commented 5 months ago

Hi,

I suggest we add an argument output or type to define the type of output of the connected_habitat() function. The default could be output = "matrix", and the alternative output = "raster". Another option would be a raster parameter which is FALSE by default and takes TRUE if we want the raster.

ninbrm commented 5 months ago

In summary, the mat2rast function is a patch to allow for raster output. In my opinion, the ConScape.jl library needs a revision to integrate the Rasters.jl library and allow for better integration with raster outputs in both libraries.

bniebuhr commented 5 months ago

Ok, I understand your reasoning - the idea to deal with that in the Julia code side instead of in ConScapeR. That way there is only one place to keep active development/updates, and not two... Closing this for now then.

bniebuhr commented 5 months ago

Correcting here and closing here as "not planned" in the ConScapeR side, but directly within ConScape.