GenericMappingTools / gmtserver-admin

Cache data and script for managing the GMT data server
GNU Lesser General Public License v3.0
7 stars 3 forks source link

Add recipe for moon DEM #168

Closed PaulWessel closed 1 year ago

PaulWessel commented 1 year ago

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:

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_relief

Here is what the 01m plot looks like - I killed things before we did everything:

gmt grdimage moon_relief_01m_g.grd -B -png t

t

Esteban82 commented 1 year ago

Happy to entertain ideas what the default CPT for the moon should be.

What about this from cpt-city.

Can be used due to its license (Open Government Licence v3.0)?

PaulWessel commented 1 year ago

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.

PaulWessel commented 1 year ago

What about this from cpt-city.

Can be used due to its license (Open Government Licence v3.0)?

Well, I think we have a few of the cpt-city tables in GMT as is. The share/cpt/cpt-city has

cubhelix.cpt dem1.cpt dem4.cpt elevation.cpt

so no sweat to add another.

PaulWessel commented 1 year ago

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:

map

joa-quim commented 1 year ago

Moon is gray. Everyone know that.

PaulWessel commented 1 year ago

map

Esteban82 commented 1 year ago

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?

"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.

PaulWessel commented 1 year ago

Yep, I think zero has no meaning, but anyone could just do -Cgeo if they wanted that clear line. While @joa-quim is correct that the anorthosite and regolith are kind of gray to white only, gray CPT does not work be bets when we add shade (which modifies the gray). However, we also know (from direct samples Apollo-13) that the moon is partly made of cheese, so perhaps we can just craft something pleasing that is very washed out, say green cheese to yellow cheese (green to yellow ramp) but not very strong. Here is my cheese cpt

-9000   128/164/96  0   240 L
0   240 9000    255/255/132 U

and the 2m moon:

cheese

Feel free to improve. What says @willschlitzer ?

joa-quim commented 1 year ago

This is a low res picture from a cardboard model in the British Museum. This bw cheese looks well illuminated.

IMG_0429

willschlitzer commented 1 year ago

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.