@sharponlooker
Maybe it shows Phobos behind the thin Martian atmosphere?

@sharponlooker
The problem with #ESA is that they seem not to care about how the end user is going to use their data. #NASA instead cares much about providing the data in formats that's easy to use right away with popular technologies.

I'm trying to find how I can open the IMG files, which I presume are raw images in a Microsoft created format, on a Linux machine. There are so many lossless image formats to pick from, why use a format that doesn't have even an image header in the file?

@65dBnoise I open the file on a text editor and the header is there, doesn't it work for you?

@65dBnoise it's been a while since I did this, but I think I used a img2png program by Björn Jónsson, but maybe even a home-brewn variant that cleaned up dead pixels on the same run

@sharponlooker
Thanks. That's for windows though. I've been windows free for more than 18 years now 😃

@65dBnoise wise approach 😉

my variant was done against dotnet core, which should be portable to Linux. One day (famous last words) I'll have it on github or something 🙂

@65dBnoise text editor if I want to look at the header, convert to png if I want to see the image. Color space is quite wide, so you have to mix with the levels in gimp to see anything.

Ask @andrealuck what he uses, he just posted other files from the dataset rather quickly, so I bet he has other better tools

@sharponlooker @andrealuck
I just asked him. He posted a screenshot with GIMP, so either his GIMP directly reads the file, or he's using some plugin to do that.
Re: the header has a wealth of info about the image, orbital parameters, footprint on Mars (I presume) etc. It also says its a PDS file. I may have been half wrong blaming ESA for the format 🙂, or completely wrong about it altogether 😬

@65dBnoise @sharponlooker I first open img files with Fits Liberator version 3 then after processing I save in tiff for Gimp, I’ll give you the link of the software as soon as I can

@andrealuck @sharponlooker
I tried to open it with GIMP as FITS but it couldn't do it.

@magicaltrout @andrealuck @sharponlooker @kevinmgill
Thanks. Before I look there though, I found a plugin for GIMP that said it did exactly that: areo.info/gimp/gimp-2.8/

To compile it I had to include a missing header file gimpcompat.h found elsewhere (github.com/mskala/noxcf-gimp/b), but now GIMP opens .IMG files natively!

@andrealuck @sharponlooker
So now with that done, I can process things like this. Cool!

Thank you all!

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.