IPB

Welcome Guest ( Log In | Register )

2 Pages V   1 2 >  
Reply to this topicStart new topic
3D Maps from LOLA Data
joertexas
post Feb 6 2011, 04:12 PM
Post #1


Newbie
*

Group: Members
Posts: 17
Joined: 30-January 11
Member No.: 5787



I'm interested in the area around the lunar north pole, from 88N to the pole. I'd like to have 3D images of that area, but I've been unable to find a program that will read the LOLA data files. I've tried several 3D mapping programs, and I've had no success.

Is there a method to generate 3D images, or are there such files available for this area of the moon?

Thanks,

JR
Go to the top of the page
 
+Quote Post
ValterVB
post Feb 6 2011, 08:32 PM
Post #2


Newbie
*

Group: Members
Posts: 18
Joined: 27-February 10
From: Italy
Member No.: 5235



If you know Blender you can use my script : Blender Script

Ciao
VB
Go to the top of the page
 
+Quote Post
JohnVV
post Feb 6 2011, 08:46 PM
Post #3


Member
***

Group: Members
Posts: 494
Joined: 18-November 08
Member No.: 4489



some research on this forum
AND
reading the .lbl label file would show that the data is in 16 bit singed integer
and even imagemagic can read it as a raw( gray) image
the very old OpenEV can import it
I use ISIS3 on linux to work with img files
and photoshop should be able to open a ( 16int ) image as a raw

and there is even a blender script JUST FOR importing the lola data
a link IS POSTED on this forum , research would have found it .
the second listing in the
"Image Processing Techniques"
http://www.unmannedspaceflight.com/index.php?showtopic=6878

also Bjorn Jonsson's "img2png" might open them ( and convert the 16 bit to 8 bit )
Go to the top of the page
 
+Quote Post
joertexas
post Feb 6 2011, 09:42 PM
Post #4


Newbie
*

Group: Members
Posts: 17
Joined: 30-January 11
Member No.: 5787



QUOTE (ValterVB @ Feb 6 2011, 02:32 PM) *
If you know Blender you can use my script : Blender Script

Ciao
VB


I know next to nothing about Blender, but I'll sure give it a try :-)

JR
Go to the top of the page
 
+Quote Post
joertexas
post Feb 6 2011, 09:45 PM
Post #5


Newbie
*

Group: Members
Posts: 17
Joined: 30-January 11
Member No.: 5787



QUOTE (JohnVV @ Feb 6 2011, 02:46 PM) *
some research on this forum
AND
reading the .lbl label file would show that the data is in 16 bit singed integer
and even imagemagic can read it as a raw( gray) image
the very old OpenEV can import it
I use ISIS3 on linux to work with img files
and photoshop should be able to open a ( 16int ) image as a raw

and there is even a blender script JUST FOR importing the lola data
a link IS POSTED on this forum , research would have found it .
the second listing in the
"Image Processing Techniques"
http://www.unmannedspaceflight.com/index.php?showtopic=6878

also Bjorn Jonsson's "img2png" might open them ( and convert the 16 bit to 8 bit )


I know very little about image processing - my skills are in far different areas. Ergo, my rather basic question...

JR
Go to the top of the page
 
+Quote Post
ngunn
post Feb 6 2011, 09:46 PM
Post #6


Senior Member
****

Group: Members
Posts: 3113
Joined: 4-November 05
From: North Wales
Member No.: 542



Welcome, joertexas! There's a lot here but finding something specific can be a bit like raking through a huge jumbled spoil heap. Usually somebody in the know will provide a pointer. Don't stop asking. smile.gif
Go to the top of the page
 
+Quote Post
Bjorn Jonsson
post Feb 8 2011, 01:14 AM
Post #7


IMG to PNG GOD
****

Group: Moderator
Posts: 1484
Joined: 19-February 04
From: Near fire and ice
Member No.: 38



QUOTE (JohnVV @ Feb 6 2011, 08:46 PM) *
also Bjorn Jonsson's "img2png" might open them ( and convert the 16 bit to 8 bit )

IMG2PNG converts 8 bit IMGs to 8 bit PNGs and 16 bit IMGs to 16 bit PNGs. It might be able to convert these particular files and if not the new version I'm working on might do it (see this thread for details).
Go to the top of the page
 
+Quote Post
joertexas
post Feb 8 2011, 03:13 AM
Post #8


Newbie
*

Group: Members
Posts: 17
Joined: 30-January 11
Member No.: 5787



Thanks for the reply. I'm an aircraft mechanic by training, so I don't do a lot with graphics programs.

JR
Go to the top of the page
 
+Quote Post
joertexas
post Feb 8 2011, 03:20 AM
Post #9


Newbie
*

Group: Members
Posts: 17
Joined: 30-January 11
Member No.: 5787



QUOTE (ValterVB @ Feb 6 2011, 02:32 PM) *
If you know Blender you can use my script : Blender Script

Ciao
VB


I tried loading this script into the latest Blender version, and the script doesn't populate into the list of available add-ons to run...

JR
Go to the top of the page
 
+Quote Post
JohnVV
post Feb 8 2011, 03:46 AM
Post #10


Member
***

Group: Members
Posts: 494
Joined: 18-November 08
Member No.: 4489



it ONLY runs on blender 2.56 BETA
it will NOT work on the stable 2.49b or 2.48

also i think i posted on blenderartists that there is a minor bug in the svn grab
as i recall a minor typo
line 19
---
bl_addon_info = {
---
should be this

once blender 2.56 starts
hit "x" then <enter> to delete the default cube
then <control> + < alt + < u > to bring up the add on tool
click the add ons tab
click "install add on "
navagate to the "io_import_LRO_Lola_MGS_Mola_img.py"
and install
close blender and reopen ctlr,alt,u to the menu and look for
[attachment=23794:Screenshot.jpg]
but a check in it
then on the lower left is the menu
Go to the top of the page
 
+Quote Post
joertexas
post Feb 15 2011, 06:23 AM
Post #11


Newbie
*

Group: Members
Posts: 17
Joined: 30-January 11
Member No.: 5787



QUOTE (JohnVV @ Feb 7 2011, 09:46 PM) *
close blender and reopen ctlr,alt,u to the menu and look for
[attachment=23794:Screenshot.jpg]
but a check in it
then on the lower left is the menu


I'e done this, and now it installs and tries to open the IMG file in Blender. But, when I accept the file, the screen returns to the main screen - and then nothing else happens.

JR
Go to the top of the page
 
+Quote Post
JohnVV
post Feb 15 2011, 09:37 AM
Post #12


Member
***

Group: Members
Posts: 494
Joined: 18-November 08
Member No.: 4489



QUOTE (joertexas @ Feb 15 2011, 01:23 AM) *
I'e done this, and now it installs and tries to open the IMG file in Blender. But, when I accept the file, the screen returns to the main screen - and then nothing else happens.

JR


what lola file are you using
-- remember the lbl must ALSO be there for it
the "ldem_16.img WITH the REQUIRED ldem_16.lbl in the same folder is the MAX the biggest full globe that can be opened with 8 gig of system ram on a 64 bit OS
and that will take a lot of time to open

the ldem_4.img & ldem_4.lbl combo is the recommended for the full globe
ftp://pds-geosciences.wustl.edu/lro/lro-l...ylindrical/img/
Go to the top of the page
 
+Quote Post
ValterVB
post Feb 15 2011, 12:48 PM
Post #13


Newbie
*

Group: Members
Posts: 18
Joined: 27-February 10
From: Italy
Member No.: 5235



joertexas, is possible that you haven't a correct version of Blender. If you use Windows, download from Graphicall a new version.

Win 64
Win 32

These versions alredy have my script

If you use a different S.O. search in graphicall a recent version and download again my script.

Ciao
VB

[edit] Some trick for speed up in 3Dview
Before you start the import, change the View port shading to Bounding box. After the import set in User preference system VBOs and now change View port sahding to Object mode. If you have a Series 400 GeForce video card, before to change VBOs, uncheck Double side in Object data. Last thing: if you change in Sculpt mode, you can gain some FPS.

Retrieved from "http://wiki.blender.org/index.php/Extensions:2.5/Py/Scripts/Import-Export/NASA_IMG_Importer"
Go to the top of the page
 
+Quote Post
Bjorn Jonsson
post Feb 15 2011, 01:33 PM
Post #14


IMG to PNG GOD
****

Group: Moderator
Posts: 1484
Joined: 19-February 04
From: Near fire and ice
Member No.: 38



The new version of IMG2PNG converts the LOLA IMG files to 16 bit grayscale PNGs without any problems so if PNGs would be useful to you that might be the solution.
Go to the top of the page
 
+Quote Post
joertexas
post Feb 16 2011, 01:08 AM
Post #15


Newbie
*

Group: Members
Posts: 17
Joined: 30-January 11
Member No.: 5787



I downloaded and installed the 32-bit version, and I got the following when I tried to open the file LDEM_875N_10M.IMG (and I do have the lbl file in the same directory):

File "C:\PROGRA~1\BLENDE~1\RELEAS~1\2.56\scripts\addons_contrib\io_import_LRO_
Lola_MGS_Mola_img.py", line 489, in draw
ReadLabel(bpy.context.scene.fpath)
File "C:\PROGRA~1\BLENDE~1\RELEAS~1\2.56\scripts\addons_contrib\io_import_LRO_
Lola_MGS_Mola_img.py", line 281, in ReadLabel
WESTERNMOST_LONGITUDE = float(tmp[0].replace(" ", ""))
ValueError: could not convert string to float: 'N/A'

location:<unknown location>:-1

location:<unknown location>:-1
Traceback (most recent call last):
File "C:\PROGRA~1\BLENDE~1\RELEAS~1\2.56\scripts\addons_contrib\io_import_LRO_
Lola_MGS_Mola_img.py", line 489, in draw
ReadLabel(bpy.context.scene.fpath)
File "C:\PROGRA~1\BLENDE~1\RELEAS~1\2.56\scripts\addons_contrib\io_import_LRO_
Lola_MGS_Mola_img.py", line 281, in ReadLabel
WESTERNMOST_LONGITUDE = float(tmp[0].replace(" ", ""))
ValueError: could not convert string to float: 'N/A'

location:<unknown location>:-1

JR

Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic

 



RSS Lo-Fi Version Time is now: 1st September 2014 - 09:09 PM
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 a project of the Planetary Society and is funded by donations from visitors and members. Help keep this forum up and running by contributing here.