IMG2PNG, PDS/FITS to PNG conversion |
IMG2PNG, PDS/FITS to PNG conversion |
Feb 16 2008, 02:04 PM
Post
#1
|
|
IMG to PNG GOD Group: Moderator Posts: 2254 Joined: 19-February 04 From: Near fire and ice Member No.: 38 |
I decided to create a special thread for this topic. Previously information on IMG2PNG was scattered across various threads here.
I new version of IMG2PNG is now available. For those that don't know, this is a command line uitility that can convert various PDS formatted files to PNGs (8 or 16 bits per pixel depending on the input files). This utility should work for lots of different PDS files, e.g. MER, Pathfinder, Voyager, Galileo, Cassini, Stardust, various Mars orbiters, Mariner 9/10 (!), Viking Orbiter, Viking Lander, Magellan, Clementine, Messenger, New Horizons etc. The major new feature in the new version is the ability to convert FITS files. IMG2PNG can be downloaded by visiting http://www.mmedia.is/bjj/utils/img2png Any information on possible bugs welcome. |
|
|
Jun 7 2009, 12:53 AM
Post
#2
|
|
IMG to PNG GOD Group: Moderator Posts: 2254 Joined: 19-February 04 From: Near fire and ice Member No.: 38 |
I just uploaded a new version of IMG2PNG. This version is important for those of you that use it to calibrate Cassini images as I corrected a nasty bug that resulted in incorrect brightness of the images. For example, this manifested itself in blue images that became too dark relative to the red and green ones. This messed up RGB composites.
There are no changes that affect images from other spacecraft. As before this can be downloaded at http://www.mmedia.is/bjj/utils/img2png |
|
|
Jan 21 2010, 10:34 PM
Post
#3
|
|
Newbie Group: Members Posts: 3 Joined: 21-January 10 Member No.: 5182 |
I just uploaded a new version of IMG2PNG. This version is important for those of you that use it to calibrate Cassini images as I corrected a nasty bug that resulted in incorrect brightness of the images. For example, this manifested itself in blue images that became too dark relative to the red and green ones. This messed up RGB composites. There are no changes that affect images from other spacecraft. As before this can be downloaded at http://www.mmedia.is/bjj/utils/img2png Hi there I am pretty new to this so excuse me if this is a bad observation. I've noticed that the img2png only works with one of the IMG files I downloaded from the Mars DEM site at HiRise. with further investigation the only difference I found was that the Min and Max values for all the other (non working) IMG files were : VALID_MINIMUM = -1954.39 VALID_MAXIMUM = -1833.56 in the negative range. and always resulted in a black .png file. (got this info from a pds2jpg converter I found which makes the 8 bit conversion. The only IMG file that converted successfully had a positive min and max value : VALID_MINIMUM = 782.07 VALID_MAXIMUM = 1300.01 I've tried using the -s option to multiply by a negatice number or the -ctcal_dep.txt to set up a file with the correct ranges but I get nothing. my cal_dep.txt file is just : -1954 -1800 (as I understood it it should only have one entry per file) if I am getting any of this wrong I appologise and would appreciate any guidance in converting these files. my aim is to convert the files into hieghtmaps and eventually to 3d models in a standard 3d format. Cheers. ~a |
|
|
Jan 25 2010, 12:14 AM
Post
#4
|
|
IMG to PNG GOD Group: Moderator Posts: 2254 Joined: 19-February 04 From: Near fire and ice Member No.: 38 |
I have now fixed the bug mentioned by knight (and by Doug several weeks ago - it's the same bug). IMG2PNG now correctly converts the HIRISE DEMs. Actually it should correctly convert all files containing 32 bit floating point data if the files also contain information on the valid minimum and valid maximum data values or if that information is in a detached label.
As before this can be downloaded at http://www.mmedia.is/bjj/utils/img2png |
|
|
Jan 25 2010, 12:26 AM
Post
#5
|
|
Newbie Group: Members Posts: 3 Joined: 21-January 10 Member No.: 5182 |
Awesome !
Thanks Bjorn, I will test this when I get to work ! Cheers, ~a |
|
|
Lo-Fi Version | Time is now: 27th September 2024 - 11:14 PM |
RULES AND GUIDELINES Please read the Forum Rules and Guidelines before posting. IMAGE COPYRIGHT |
OPINIONS AND MODERATION Opinions expressed on UnmannedSpaceflight.com are those of the individual posters and do not necessarily reflect the opinions of UnmannedSpaceflight.com or The Planetary Society. The all-volunteer UnmannedSpaceflight.com moderation team is wholly independent of The Planetary Society. The Planetary Society has no influence over decisions made by the UnmannedSpaceflight.com moderators. |
SUPPORT THE FORUM Unmannedspaceflight.com is funded by the Planetary Society. Please consider supporting our work and many other projects by donating to the Society or becoming a member. |