"C:/Users/bram.van.moorter/Documents/ConScape_website/site/notebooks/data/"
Other raster formats
Here you will learn
How to use other raster file formats in ConScape.
Warning
This notebook assumes familiarity with the basics as covered in the notebook Getting Started
# load Rasters library
using Rasters
# read habitat quality using Rasters()
= Raster(joinpath(datadir, "hab_qual_1000_tif.tif")) hab_qual
Such a raster can easily be converted to a matrix for use in ConScape:
# Replace missing values by NaN and transform into a matrix
= replace_missing(hab_qual, NaN)
hab_qual = Matrix(transpose(Array(hab_qual)[:,:,1])) hab_qual