redplanet.Crust.topo.load
Load a topography model.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
model
|
str
|
Name of the topography model to load. Options are:
NOTE: Higher resolution models are only slightly slower than lower resolution models. Our loading/accessing methods are already highly optimized (arrays are memory-mapped so they don't occupy RAM, e.g. accessing a global grid of 1e6 points takes ~0.01 seconds). Regardless, if you only want to download the smallest necessary dataset, we recommend 'SH' models for global maps and 'DEM' models for local maps (e.g. craters). In our experience, the For description of our modifications to the original data, see notes section. |
None
|
Raises:
Type | Description |
---|---|
ValueError
|
If an invalid model name is provided. |
Notes
For 'SH_' options, we start with a spherical harmonic model of the shape of Mars based on MOLA data, provided by Wieczorek (2024). Then we subtract the geoid height and geoid reference radius, which yields the planet's surface relief with respect to the geoid (i.e. topography). We assume a spherical harmonic model of degree \(L\) has spatial resolution \(\frac{2 \pi R_{\text{Mars}}}{2L+1}\). Results are saved as a binary file, which can be loaded as a memory-mapped 2D numpy array of 16-bit integers for very fast access speeds without occupying RAM. For more information and our code, see "datasets/Crust/topo/SH" in the GitHub repo. -- TODO*
For 'DEM_' options, we modify the original data files by reprojecting to the "Mars 2000 Sphere" model (radius = 3,396,190 km). We convert the original "TIFF" file format to a binary file, which can be loaded as a memory-mapped 2D numpy array of 16-bit integers for very fast access speeds without occupying RAM. For more information and our code, see "datasets/Crust/topo/DEM" in the GitHub repo. -- TODO*
- I'll eventually have a section on my website to describe datasets and how we modified them -- add a link to that here.
References
- Fergason, R. L., Hare, T. M., & Laura, J. (2018). Mars MGS MOLA - MEX HRSC Blended DEM Global 200m v2 [Dataset]. Astrogeology PDS Annex, U.S. Geological Survey. https://astrogeology.usgs.gov/search/map/mars_mgs_mola_mex_hrsc_blended_dem_global_200m
- Goddard Space Flight Center (2003). Mars MGS MOLA DEM 463m [Dataset]. Astrogeology PDS Annex, U.S. Geological Survey. https://astrogeology.usgs.gov/search/map/mars_mgs_mola_dem_463m
- Wieczorek, M. (2024). Spherical harmonic models of the shape of Mars (MOLA) [Dataset]. Zenodo. https://doi.org/10.5281/zenodo.10820719
Source code in src/redplanet/Crust/topo/loader.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 |
|