spectral icon indicating copy to clipboard operation
spectral copied to clipboard

Read PDS4 images ? Use rasterio ?

Open kvngvikram opened this issue 9 months ago • 3 comments

Hi, I am trying to work with pds4 images and realized they cannot be read in a straight forward fashion.

Yeah, I can open the same image in envi and then save them in envi format, but that's just having redundant copies and steps. It would be good to have a way to directly read the original files (a .tif and .xml file each for single image). I have played around with pds4_tools and tried to define a Bipfile from metada extracted by pds4_tools. Well, it didn't seem elegant, and my wishful thinking wanted to extract projection info into some standard format and save it as metadata.

Now, rasterio has a PDS4 driver and is capable to read .tif files and extract CRS data. I am guessing its better to have rasterio read them, instead of me understanding and implementing it myself. Let rasterio deal with different image formats.

So,,.. I am just here to discuss,. Am I missing a feature in spectral that's already present? How easy it it to stich together a code that will use rasterio?

kvngvikram avatar Mar 11 '25 06:03 kvngvikram