IMG2PNG, PDS/FITS to PNG conversion |
IMG2PNG, PDS/FITS to PNG conversion |
Feb 16 2008, 02:04 PM
Post
#101
|
|
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. |
|
|
Feb 23 2017, 08:30 PM
Post
#102
|
|
Member Group: Members Posts: 890 Joined: 18-November 08 Member No.: 4489 |
the clipping is do to the img file being a SIGNED!!! integer in meters above and BELOW!!! "sea level"
that is -8967 METERS to a + 10714 Meters using a multiplier will NOT put this into a unsigned range 16 bit signed pixel values ( -32768 to +32767 ) 16 bit UNsigned pixel values ( 0 to 65538 ) you can use math functions SUBTRACT the negative minimal value ( or add the min. absolute value ) to the image an example using the G'mic image lib CODE gmic WAC_GLD100_E000N1800_016P.IMG.tiff -add 8967 -o WAC_GLD100_E000N1800_016P.16U.tiff,ushort |
|
|
Lo-Fi Version | Time is now: 24th September 2024 - 03:11 AM |
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. |