I have several multispectral images with separate ENVI style header text files and I would like to load them with archGDAL.jl. I looked at the documentation of archGDAL.read()
but I could not find how to do it. Maybe archGDAL.jl is not the right library for this?
1 Like
It should be. I don’t know this particular file format but according to ENVI – ENVI .hdr Labelled Raster — GDAL documentation it is supported in GDAL by default. What happens if you just ArchGDAL.read("path/to/file")
?
1 Like
Yes, that works. ArchGDAL.read("path/to/file")
infers the header filename by appending .hdr
to file
. Thanks!
1 Like
You might be interested in using the ArchGDAL.readraster
function to open the ENVI stack to open the data as a lazy loaded diskarray.
https://yeesian.com/ArchGDAL.jl/stable/rasters/#The-RasterDataset-type
Probably it will just work in Rasters.jl too, and lazy load by default.
using Rasters
rast = Raster(file_path)