IPB

Welcome Guest ( Log In | Register )

need help. how to uncompress .img files from magellan
ncc1701d
post Jan 6 2011, 11:33 PM
Post #1


Junior Member
**

Group: Members
Posts: 91
Joined: 21-August 06
Member No.: 1063



Hoping someone can help.
I am trying to uncompress the FMAP .img files which are part of magellans images of venus so I can use a converter program to convert them from sinusodal to cylindrical mapping.

Things I do know is that I can just rename .img to .raw and open in photosho however the converter program newmap.exe which is an old dos program that is provided with the FMAP images requires I think the uncompressed .img files in order to convert sinusodal to cylindrical. I know the .raw didnt work. And I get error saying my .img files are compressed so it wont work.
I know .img files are not cd or dvd image file or so I think becuase I could not open them in MagicISO If they were CD images I would think MagicISO would work but I may be wrong though.
Anyone familiar with what I am trying to do. Any image processing guys out their do this with the magellan FMAPS?
I figure the experts would be here.
thanks
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
siravan
post Jan 7 2011, 01:10 AM
Post #2


Member
***

Group: Members
Posts: 128
Joined: 10-December 06
From: Atlanta
Member No.: 1472



Here is the first image (reduced to 25% of its original size) in the folder:

Attached Image


The header is included below. I used ImageJ to import the raw with parameters: height =2830 (LINES), width=3184 (LINE_SAMPLES), offset to the file=12736 (i.e. ^IMAGE*RECORD_BYTES), pixel type is byte (SAMPLE_BITS=8). Also note there is a histogram contained in the third record.


PDS_VERSION_ID = PDS3

/* FILE FORMAT AND LENGTH */

RECORD_TYPE = FIXED_LENGTH
RECORD_BYTES = 3184
FILE_RECORDS = 2833
LABEL_RECORDS = 2

/* POINTERS TO START RECORDS OF OBJECTS IN FILE */

^IMAGE_HISTOGRAM = 3
^IMAGE = 4

/* POINTER TO THE TABLE CONTAINING ORBIT LOCATIONS */

^TABLE = "73N003OR.TAB"

/* IMAGE DESCRIPTION */

DATA_SET_ID = "MGN-V-RDRS-5-DIM-V1.0"
PRODUCT_ID = "78N018"
SPACECRAFT_NAME = MAGELLAN
SPACECRAFT_ID = MGN
INSTRUMENT_NAME = "RADAR SYSTEM"
INSTRUMENT_ID = RDRS
TARGET_NAME = VENUS
START_TIME = "N/A"
STOP_TIME = "N/A"
SPACECRAFT_CLOCK_START_COUNT = "N/A"
SPACECRAFT_CLOCK_STOP_COUNT = "N/A"
PRODUCT_CREATION_TIME = 1993-09-28T15:55:50
IMAGE_ID = FL73N003
MISSION_PHASE_NAME = {"MAPPING CYCLE 1",
"MAPPING CYCLE 2",
"MAPPING CYCLE 3"}

/* DESCRIPTION OF OBJECTS CONTAINED IN FILE */

OBJECT = IMAGE_HISTOGRAM
ITEMS = 256
DATA_TYPE = LSB_UNSIGNED_INTEGER
ITEM_BYTES = 4
END_OBJECT = IMAGE_HISTOGRAM

OBJECT = IMAGE
LINES = 2830
LINE_SAMPLES = 3184
SAMPLE_TYPE = LSB_UNSIGNED_INTEGER
SAMPLE_BITS = 8
SAMPLE_BIT_MASK = 2#11111111#
CHECKSUM = 938107697
Go to the top of the page
 
+Quote Post
ncc1701d
post Jan 7 2011, 01:37 AM
Post #3


Junior Member
**

Group: Members
Posts: 91
Joined: 21-August 06
Member No.: 1063



I appreciate all the input here so thank you all.
But I think your missing the problem.
I could easily just rename the .img files on the cds as .raw and open in photoshop and look at them. I did that.
However they are all in sinusodal projection. I cant use the sinusodal. They need to be converted to cylindrical.
The only program I know of to use to convert to cylindrical projection is the newmap.exe dos program they provide with the FMAPS set. It is finding a way to convert to cylindrical that is the biggest problem. Maybe their are other tools besides newmap.exe but thats all I know of and I am not programmer and that program is 16 years old.

Siravan mentions how most .img files have .lbl files with them.
Along time ago I thought I remember all the FMAPS having .lbls with each image but I dont see them with the .img files anymore on the link I provided.
Maybe that is why my newmap is saying they need to be uncompressed is just becuase they need that .lbl ? I dont know.


Go to the top of the page
 
+Quote Post

Posts in this topic
- ncc1701d   need help. how to uncompress .img files from magellan   Jan 6 2011, 11:33 PM
- - djellison   URL to the files in question?   Jan 6 2011, 11:39 PM
- - Phil Stooke   .img files are not compressed, they are basically ...   Jan 6 2011, 11:44 PM
|- - ncc1701d   here is the link ftp://pdsimage2.wr.usgs.gov/cdrom...   Jan 7 2011, 12:42 AM
- - elakdawalla   I can't remember if the FMAPs are stored the s...   Jan 7 2011, 12:31 AM
- - siravan   IMG files usually have either a text header or a s...   Jan 7 2011, 12:46 AM
- - ncc1701d   concerning the other post i just noticed. I used ...   Jan 7 2011, 12:49 AM
- - siravan   Here is the first image (reduced to 25% of its ori...   Jan 7 2011, 01:10 AM
|- - ncc1701d   I appreciate all the input here so thank you all. ...   Jan 7 2011, 01:37 AM
- - siravan   I recompiled newmap for XP using the source code c...   Jan 7 2011, 02:34 AM
|- - ncc1701d   for some reason I get my same message *** ERROR *...   Jan 7 2011, 03:00 AM
- - siravan   This is the file I got: I'm not sure about ...   Jan 7 2011, 03:13 AM
|- - ncc1701d   I have to think on this now. Its not what I expect...   Jan 7 2011, 03:24 AM
- - siravan   This is the correct image (I made a mistake in rea...   Jan 7 2011, 03:58 AM
|- - ncc1701d   are you just typing newmap fl73n003.img fl73n003...   Jan 7 2011, 06:36 AM
|- - ncc1701d   thanks siravan I got it to work. My problem was th...   Jan 7 2011, 08:31 AM
- - JohnVV   if you want it is cylindrical you could grab them ...   Jan 7 2011, 07:16 AM
|- - ncc1701d   JohnVV I used to use pdsmaps and it was very helpf...   Jan 7 2011, 08:43 AM
|- - elakdawalla   QUOTE (ncc1701d @ Jan 7 2011, 12:43 AM) m...   Jan 7 2011, 05:03 PM
|- - ncc1701d   ok here is little more clarification about what bu...   Jan 7 2011, 08:54 PM
- - JohnVV   some of it still works http://www.mapaplanet.org/e...   Jan 7 2011, 10:27 AM
- - Phil Stooke   I agree, I use Map-a-Planet all the time and reall...   Jan 7 2011, 08:44 PM
- - elakdawalla   OK, I see your problem. The "Center of Proje...   Jan 7 2011, 09:08 PM
|- - ncc1701d   Thank you. I found it. Just out of curiosity did y...   Jan 7 2011, 11:54 PM
- - JohnVV   early on i liked pds-map-a-planet for the simple ...   Jan 8 2011, 12:27 AM


Reply to this topicStart new topic

 



RSS Lo-Fi Version Time is now: 1st November 2024 - 12:34 AM
RULES AND GUIDELINES
Please read the Forum Rules and Guidelines before posting.

IMAGE COPYRIGHT
Images posted on UnmannedSpaceflight.com may be copyrighted. Do not reproduce without permission. Read here for further information on space images and 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.