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. |
|
|
Aug 13 2014, 01:30 AM
Post
#2
|
|
Member Group: Members Posts: 890 Joined: 18-November 08 Member No.: 4489 |
well "NAC_ROI_APOLBASNHIA_E370S2061_20M" is a normal everyday pds IMG
there would be no need for that "CUMINDEX.TAB" all that is is a listing of the files in the archive use img2png or G'Mic http://gmic.sourceforge.net I use ISIS3 myself and not img2png now from the lable on the IMG file( some pds images have DETACHED headers others like this one DO NOT) CODE PDS_VERSION_ID = PDS3 /* The source image data definition. */ RECORD_TYPE = FIXED_LENGTH RECORD_BYTES = 7192 FILE_RECORDS = 2152 LABEL_RECORDS = 1 ^IMAGE = 2 OBJECT = IMAGE DESCRIPTION = "High-resolution uncontrolled NAC mosaics created in support of high-priority regions of interest" LINES = 2151 LINE_SAMPLES = 1798 SAMPLE_TYPE = PC_REAL SAMPLE_BITS = 32 SAMPLE_BIT_MASK = 2#11111111111111111111111111111111# CORE_NULL = 16#FF7FFFFB# CORE_LOW_REPR_SATURATION = 16#FF7FFFFC# CORE_LOW_INSTR_SATURATION = 16#FF7FFFFD# CORE_HIGH_REPR_SATURATION = 16#FF7FFFFF# CORE_HIGH_INSTR_SATURATION = 16#FF7FFFFE# END_OBJECT = IMAGE END it is 1798px wide and 2151px tall 32bit lsb image with a offset of 7192 (RECORD_BYTES = 7192) for the 32bit imaging terminal (on windows you use cmd.exe to run the program) program Gmic http://gmic.sourceforge.net/ ( NOT the 8 bit image plugin for "The Gimp" , but the TERMINAL version ) CODE gmic NAC_ROI_APOLBASNHIA_E370S2061_20M.IMG.raw,1798,2151,1,1,+7192 -o NAC_ROI_APOLBASNHIA_E370S2061_20M.tiff converts it to a 32 bit tiff image the free program "Nip2" http://www.vips.ecs.soton.ac.uk/index.php?title=VIPS ( runs on Windows7 ) can open it ( it handles 32bit floating point images ) ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- now the NEXT one The 1.54 Gig "dgdr_ra_avg_cyl_128_img.img" the lable file (dgdr_ra_avg_cyl_128_img.lbl) has CODE OBJECT = IMAGE NAME = "ROCK ABUNDANCE" LINES = 17920 LINE_SAMPLES = 46080 SAMPLE_TYPE = LSB_INTEGER SAMPLE_BITS = 16 UNIT = NONE SCALING_FACTOR = 0.001 OFFSET = 0.0 DERIVED_MINIMUM = 0 DERIVED_MAXIMUM = 1.15946257114 MISSING_CONSTANT = -32768 END_OBJECT = IMAGE now this "image" really is NOT a photograph it is just a data set from the label file the description QUOTE Each sample represents the areal fraction of the surface covered by rock fragments as estimated using the technique described in Bandfield et al. (2011). Values are scaled by the value of SCALING_FACTOR. Conversion from Digital Number (DN) to average is given by the equation: tihs using gmic will convert it to a 32 bit tiff image CODE gmic -type short dgdr_ra_avg_cyl_128_img.raw,46080,17920 -type float -o dgdr_ra_avg_cyl_128.tiff BUT this is a normal everyday pds image with a detached label only that it is 1.54 Gig in size |
|
|
Lo-Fi Version | Time is now: 26th September 2024 - 07:52 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. |