HiRISE DEM's |
HiRISE DEM's |
Apr 13 2008, 10:46 AM
Post
#1
|
|
Founder Group: Chairman Posts: 14434 Joined: 8-February 04 Member No.: 1 |
Late last week I stumbled upon a few HiRISE derived DEM's (Randy Kirk works his magic once again!)
http://webgis.wr.usgs.gov/ftphirise/index.jsp (URL now down) I'm working on both Vic Crater and the Columbia Hills. Fortunately, now I've got a Mac, I can use ISIS. I've figured out a fairly simple flow ( isis2raw as 16 bit unsigned, and then imported into Photoshop ) to take DEM CUB's and make 16 bit PNG's Just to demo how important that is for me as an animator - sliced comparisons of 8bit vs 16 bit. A busy week unfortunately, but animations of various sorts are in the pipeline. |
|
|
Oct 13 2008, 09:18 PM
Post
#2
|
|
Founder Group: Chairman Posts: 14434 Joined: 8-February 04 Member No.: 1 |
I prepared this for someone else - thought forum people might enjoy it
1) Install ISIS 3 - instructions here http://isis.astrogeology.usgs.gov/document...uide/index.html 2) While letting that happen - grab one of Randy's DEM's - I'm using the Victoria Crater bundle as an example 3) Find DEM_1m_VictoriaCrater.cub.gz (it's in the ISIS_EQUI360_OC folder ) and expand it 4) Run isis2raw 5) In the 'FROM' window - point to the .cub 6) Copy and paste the path and filename into 'TO' - but change the extension to .dem or something simiar 7) U16BIT data type ( screenshot attached) 8) Hit Run.... if this bit doesn't work - it's almost certainly your ISIS3 installation that needs looking at, make sure you got all the Base Data. 9) Find the .cub and open in text edit and find this part... /* Core description */ CORE_ITEMS = (1278,1694,1) 10) Open Photoshop, and open the .dem.raw that ISIS3 produced 11) Width is the first of those three figure under CORE_ITEMS. Height is the second. Depth should be 16 bits, Byte Order as IBM PC, Header as size 0 12) Hit OK 13) Save out as 16 bit PNG, celebrate, have lunch, dump into your favourite animation package. |
|
|
Nov 13 2008, 05:14 AM
Post
#3
|
|
Newbie Group: Members Posts: 3 Joined: 27-February 08 Member No.: 4059 |
For those that don't want to or can't install ISIS3 I thought you might want to know how to do this using GDAL.
1.) Install FWTools (Lunix, Windows) or GDAL framework for Macs: Linux, Windows: http://fwtools.maptools.org/ mac: http://www.kyngchaos.com/wiki/doku.php?id=...ware:frameworks --Now I don't have experience getting these mac frameworks working. But I have heard it is easy. once GDAL is installed and working, run: 1.) gdalinfo -stats DEM_1m_VictoriaCrater.cub (or GIS Tiff) --note the min and max. 2.) gdal_translate -of PNG -ot UINT16 -a_nodata 0 -scale stats_min stats_max 1 10000 DEM_1m_VictoriaCrater.cub DEM_1m_VictoriaCrater_unit16.png where -of PNG = output format PNG -ot UNIT16 = output type Unsgned 16 bit Int -a_nodata 0 = Set all input NULL value to 0 on output -scale in_min_value in_max_value out_min_value out_max_value = will apply a linear scale from input to output. then just the input and output filenames. That is it. It would be nice to know if this method works for anyone. -thare Note: I picked 10000 as the max scaled output but you may have to play with that value for your 3D app. I prepared this for someone else - thought forum people might enjoy it
1) Install ISIS 3 - instructions here http://isis.astrogeology.usgs.gov/document...uide/index.html ... 13) Save out as 16 bit PNG, celebrate, have lunch, dump into your favourite animation package. |
|
|
Lo-Fi Version | Time is now: 26th September 2024 - 01:05 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. |