ValterVB
(ValterVB)
June 5, 2010, 3:23am
1
My script to import Moon and Mars Datagrid (altimetric data)
http://sites.google.com/site/moonmaplab/port-mehdia
The name is MoonAndMars.
You can found here the dataset :
MOON: http://imbrium.mit.edu/DATA/LOLA_GDR/
The file are:
LDEM_4.IMG: 4 px/deg
LDEM_16.IMG: 16 px/deg
LDEM_32.IMG: 32 px/deg
LDEM_64.IMG: 64 px/deg
MARS: http://pds-geosciences.wustl.edu/missions/mgs/megdr.html
From 4 to 128 px/deg
You must download the IMG file and the LBL file in the same directory
Select the image file, choose the coordinate, check the numbers of vertex :eyebrowlift: and then click on Exec.
Ciao
VB
Some example:
Video of the moon
Moon: Thyco crater
Mars: Olympus Mons
harveen
(harveen)
June 5, 2010, 4:35am
2
Thanks for the update to this great script!
it looks awsome
and is it for 2.5 if not is it gooing to be ported to 2.5 soon?
Thanks for the update
happy 2.5
ValterVB
(ValterVB)
June 5, 2010, 8:50am
4
i saved the LBL as HTLM is this ok ?
Don’t change the extension of the file, You must have 2 file in the same directory with the same name and with extension IMG and LBL,
Then run the script, (you can open the file with notepade and then copy and paste the code)
Click Select and search you directory with the file. Select the coodinate that you want import and press Exec. That it’s all
Now I must be going, but more late I explain better all the thing
Ciao
VB
resolution of maps
i think the LDM4 represent something like 30 KM / Pixel
i mean this is ra eally rough approximation of the surface
but the file size is very small
what are the other resolution values if you know theses?
Thanks
Thanks
ValterVB
(ValterVB)
June 5, 2010, 11:51am
6
RickyBlender: but still get an error for
I think that you have a wrong version of the script. The correct is named MoonAndMars.py
In any case here you can foun the blender file. http://www.pasteall.org/blend/2859
For the moon file LDEM_4 is 4 pixel(or point) for degree
LDEM_16 is 16 pixel for degree and so on
To calculate the precision on the equator (more you are near the pole, more is the precision) you must use this formula:
Radius of the moon2 Pi/360/px/deg.
So for LDEM_64 the precision is 470 meter. (ther are more of 265 million of points)
For Mars is the same but you must change the radius.
If you open the LBL file you can see some detail used for calculate the map. The script show this date
If you need more information, ask me.
Ciao
VB
ps
The files that you need for the moon, for example, are these:
The file JP2 it’s a Jpeg2000 file that you can use for normal map.
for the first blend file o got manh vars at top see pic
http://cid-348ad7d85dee0c79.skydrive.live.com/self.aspx/picgen1/z2.JPG
but error on reading !
now i got the IMG and LBL4 files for the moon to start
npw i got the importa blend file
and i get a lot less vars then in the first files
just 2 words
see pic
http://cid-348ad7d85dee0c79.skydrive.live.com/self.aspx/picgen1/z1.JPG
select in middle and then at botom of script window
the word select ?
is this normal ?
ok then what do i select is it IMG file or LBL or other ?
i tried the IMG but not working !
Thanks
in the first py file i change the path to local folder
like this
NomeDelFile=“LDEM_4.IMG”
for the moon4 file i have
and it’s beginning to read the file
but even that one is not working i get an error on an aray laterat line 84 in the program!
what can i change to make it work ?
Thanks
ValterVB
(ValterVB)
June 5, 2010, 1:38pm
9
Ok, we are near. Your pic is correct but the windows is too little, You must expand the window (you can use right CTR+UP arrow),
When you start the script in the windows you can see only the Select button, the word Message and more upper the word Parameter
Then click on Select, select the IMG file, not LBL, If is OK, under the word parameter appear some controls and some labels.
Select the coordinate (for example from top to bottom 3, 0, 10 and 20
then click on Exec
If there isn’t too much point is immediate,
Here you can see the window script after you have selected the file.
Ciao
VB
second file importa
is this for the last script importa?
cause i dont see all the vars and the exec word is not there!
only as shown on the pic wiht only 2 words?
can select but get error message that the file is not correct
so that one is not working at all
anything i can change in this one to make it work ?
first file
in the first file i do get most of the vars but not
the exec words only one word at bottom " import "?
but get error on line 92 later on
http://cid-348ad7d85dee0c79.skydrive.live.com/self.aspx/picgen1/z3.JPG
Thanks
ValterVB
(ValterVB)
June 5, 2010, 2:06pm
11
only as shown on the pic wiht only 2 words?
Yes
Use the blender file in Pasteall.org : http://www.pasteall.org/blend/2859
IMPORTA MAPPE.blend
But is important that you keep the window of the script more high as possible (at least 700 pixel)
Ciao
VB
sorry same error
after selecting the LDEM4.IMG
i get message file is not correct!
right beside the ,essage line in middle of screen
i also tried in another folder with LDEM 16 for the moon and get same error!
see my folder files
very simple
http://cid-348ad7d85dee0c79.skydrive.live.com/self.aspx/picgen1/z4.JPG
Thanks
ValterVB
(ValterVB)
June 5, 2010, 2:29pm
13
Strange.
Tomorrow I can try to download LDEM4 and test it.
Ciao
VB
did you upload a new file and where can i find it ?
did you check it with the different file resol like 4 8 16 32
or may be problme with theses!
Thanks
ValterVB
(ValterVB)
June 6, 2010, 4:53am
16
Try this
http://valter31.interfree.it/Upload/IMPORTAMAPPE.blend
I have tested with 4, 16 and 64 px/Deg for the Moon and wit 32 and 128 px/deg for Mars.
Ciao
VB
i’m on vista 32 bits
not working still same error
message : file not correct
screen shot
as you can see no vars
screen shot
http://cid-348ad7d85dee0c79.skydrive.live.com/self.aspx/picgen1/z5.JPG
the path seems to be good but no error in the console output only
on screen at message line in middle of screen!
copy of the file LDEM4 for the moon
http://cid-348ad7d85dee0c79.skydrive.live.com/self.aspx/picgen1/LDEM^_4.IMG
and LBL
http://cid-348ad7d85dee0c79.skydrive.live.com/self.aspx/picgen1/LDEM^_4.LBL
try it with these files don’t know may be something wrong with theses!
i got theses file form the given moon site
hope it can work cause it seems very intersting
Thanks
ValterVB
(ValterVB)
June 6, 2010, 7:22am
18
I tried your file and are OK. You have the 2 file in the same directory? Because that message appear when the script don’t find the LBL file.
Ciao
VB
yes the 2 files are in the same folder
but why it does not find the LBL file t ?
i mean is there something wrong with the name may be ?
i tried it again in other folder for the 16 files and get the same error
i printed the file name and i g et this for LDM
at line 158
print ’ filename ext =’,FileAndExt[0]
Checking for installed Python… got it!
filename ext = C:\Users\RJ\0blend25\0aplha29061\2
so looks like it’s not getting the right name for this file i think
Thanks
sorry forgot to add teh full name
but the LBL name is not right here i think
here is the full name for the LBL file
filename ext = C:\Users\RJ\0blend25\0aplha29061\2
filename ext = C:\Users\RJ\0blend25\0aplha29061\2
filename = C:\Users\RJ\0blend25\0aplha29061\2.LBL
why is name = 2.LBL ?
Thanks