Page MenuHome

Import DTM from LRO Lola and MGS Mola formatted as a PDS IMG file (.IMG)
Closed, ArchivedPublic

Description

Project: Blender Extensions
Tracker: Py Scripts Contrib
Blender: 2.56
Author(s): ValterVB
Script name: LRO Lola & MGS Mola img Importer
Wiki page: http://wiki.blender.org/index.php/Extensions:2.5/Py/Scripts/Import-Export/NASA_IMG_Importer
Category: Import Export
Status: Open
Related: 24897

Installation:
1) download io_import_LRO_Lola_img.py
2) then copy it into your \scripts\addons folder
3) start blender
4) Open Blender and go to the addons tab in User Preferences.(CTRL+ALT+U) and Enable the script (it's in Import Export category)
5) in the Tool shelf, you can see the User interface

Usage:
1) Choose a DTM:
For the Moon, here: ftp://pds-geosciences.wustl.edu/lro/lro-l-lola-3-rdr-v1/lrolol_1xxx/data/lola_gdr/cylindrical/img/
You must download the IMG file and the LBL file with the same name. Use the file that starting with LDEM no LDEC. The first number after LDEM is the resolution: 4=4 pixel/deg 16 =16 pix/deg and so on. From LDEM 4 to LDEM 128 you have the global planet, with LDEM 256 you have 1/4 of the planet, with LDEM 512 you have 1/16 of the planet.

For Mars, here: http://pds-geosciences.wustl.edu/missions/mgs/megdr.html
You must download the IMG and the LBL file, Map type= Topography. File from meg004 to meg016 are global planet, meg064 is 1/4 of the planet, meg128 is 1/16 of the planet.

2) Wit the User interface select the file. You can select the IMG or the LBL file, is the same. Select the coordinates that you want imported.
***** Very important: Northernmost Lat. must be higer than Southernmost Lat. Easternmost Long. must be higher than Westernmost Long. *****

3) If is all OK you can see more data and the button for import the data, before you click it, check the Numbers of vertex to be imported. The max quantity depend by memory that you have.

4) You must setting the camera to sse the result:
Location: X=0 Y=0 Z=8000
Rotation: 0,0,0
End Clipping: 10000

With these setting, when you use Camera View, you have North on top, South on bottom, West on the left and East on the right
Scale is: 1 Blender Unit=1 Km

Event Timeline

Hey ValterVB well done thanks! :)
As said in irc, this should be reviewed by Stiv, who has also reviewed the hirise addon.

Assigning to stiv.
Stephen can you see if this addon can be merged with hirise or, more interestingly, if we can plan some sort of "planet imagery" package where we can put more formats in a single addon?
Thanks!

Moved from Py Scripts Upload to Py Scripts Contrib

Hi, noting here the structure of the merger package we spoke about in irc with Valter:

io_convert_image_to_mesh_pds/
__init__.py
hirise/
__init__.py
import_img.py
lola_mola/
__init__.py
import_lro_mro.py

fix for recent API changes.
http://www.pasteall.org/18977/diff

patch rev.2.
http://www.pasteall.org/18994/diff

sorry, previous patch causes crash.

-Fix for recent API changes. Thanks to Filiciss.
-Some code cleaning (PEP8)

Hi!
Since your script is now in bf-extensions\' svn (contrib|trunk) we have deleted the current attachments to avoid that end-users could reach this page and get the wrong version of your script.
Note that your script may have api changes or small maintenence changes applied in SVN.
Please retrieve your script from SVN before updating SVN to avoid mis-versioned scripts.
Thanks!

Add file with data to test the script.

When this script is installed it appears permanently in the Operator panel in the Tools pop out.
Is this correct behavior?

I'm using 2.62 RC1 r43946
Thanks for looking :)

Hi,
Due to changes to the api including the merging of bmesh, several addons are outdated.
Please, if you are the author of an addon check your script with blender revision 44256 or newer.
That is builds made After blender 2.62 official release.
I would ask that updates be made to your addon before the Blender 2.63 release.
6-8 weeks away.
This allows time for the api to become more exposed & bmesh to stablize furthur.
If you need help, drop into irc freenode #blenderpython or #blendercoders & feel welcome to ask questions.
At the time of 2.63 release, scripts that are not repaired or in active developement will have their tracker page marked "Closed"
this will not affect your links to the tracker, similar to closing scripts in 2.49b, the page will be still availible & can be re-opened.

Thanks for your understanding & patience during these Exciting Times.
Brendon.

This task was automatically closed as archived as part of migration, because it was determined to be no longer active.

The authoritative list of addons is on the wiki, we no longer have a report for each addon to track bugs and updates. Bugs can be reported individually and assigned to the addon developers. See the Addons project page for more information on the workflow.

Nobody (None) closed this task as Archived.Jan 3 2011, 12:38 AM