Repository navigation
Add recipe for moon DEM - #168
Conversation
See discussion on #167. This is a draft recipe file plus changes needed for the downsampler script to use proper projectino ellipsoid for the moon, and a generalization to work around unsolved bug in grdfilter for 30s or less output grids. It basically seems to work with a few caveats:
Esteban82
left a comment
There was a problem hiding this comment.
Looks fine. (Altough I didn't test it).
What about this from cpt-city. Can be used due to its license (Open Government Licence v3.0)? |
|
I think I will merge it in since there is nothing automatic that will build these and place them on the server so nothing is going to break anything. But that will allow @willschlitzer to more easily play with this draft. |
Well, I think we have a few of the cpt-city tables in GMT as is. The share/cpt/cpt-city has
so no sweat to add another. |
|
A harder problem is that his CPT goes only from -4933 to 4141 meters while the global range of the grids are more like -9065.5 to 10711. Also, should there be a hinge at zero? No sea level here so perhaps not. But, we probably should scale it to 0/1 (no hinge) or -1/+1 (with hinge) and set the natural range to -10000 to +10000? Here is what it does with the hardwired Apollo 11 landing site range selection: Lots of clipping into white and black: |
|
Moon is gray. Everyone know that. |
"Elevations were computed by subtracting the lunar reference radius of 1737.4 km from the surface radius measurements (LRO Project and LGCWG, 2008; Archinal et al., 2011). Thus elevation values are the distance above or below the reference sphere. " That is the definition of 0 for the moon. I'm not sure if it's worth setting a hinge to 0. |
|
Yep, I think zero has no meaning, but anyone could just do -Cgeo if they wanted that clear line. and the 2m moon: Feel free to improve. What says @willschlitzer ? |
|
I like grayscale as the default CPT, since that looks the most like the lunar surface (presumably, I haven't been able to visit yet). Is the lack of shading that much of an issue? I would assume users could change the CPT if they want to add shading. |




See discussion on #167. This is a draft recipe file plus changes needed for the downsampler script to use proper projection ellipsoid for the moon, and a generalization to work around unsolved bug in grdfilter for 30s or less output grids. It basically seems to work with a few caveats:
@moon_relief_15srequests would return 14s instead (with a warning).@moon_relief.cptI think so we would have to make one if we want that. Note the name of the CPT will go into the gmt_data_server.txt file and the file itself is cache.To run this (if RAM requirement is satisfied) is to first get the gmtserver-admin repo, then navigate to that top dir and run
scripts/srv_downsampler_grid.sh moon_reliefHere is what the 01m plot looks like - I killed things before we did everything:
gmt grdimage moon_relief_01m_g.grd -B -png t