include/terraingen/albedo/albedo_fields.h
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // SPDX-License-Identifier: BSD-3-Clause | ||
| 2 | |||
| 3 | /// @file | ||
| 4 | /// @brief The field lists of the albedo options and Hapke parameters. | ||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "terraingen/albedo/blast_zones.h" | ||
| 8 | #include "terraingen/albedo/crater_albedo_options.h" | ||
| 9 | #include "terraingen/albedo/photometry.h" | ||
| 10 | #include "terraingen/albedo/raster_albedo.h" | ||
| 11 | #include "terraingen/albedo/rock_albedo.h" | ||
| 12 | #include "terraingen/albedo/slope_albedo.h" | ||
| 13 | #include "terraingen/albedo/splotches.h" | ||
| 14 | #include "terraingen/albedo/synthetic.h" | ||
| 15 | #include "terraingen/layers/craters/crater_fields.h" | ||
| 16 | #include "terraingen/random/random_fields.h" | ||
| 17 | #include "terraingen/util/option_fields.h" | ||
| 18 | |||
| 19 | namespace terraingen { | ||
| 20 | |||
| 21 | 92 | template <typename IO> void Fields(IO& io, AlbedoDetail& detail) { | |
| 22 | 92 | io("enabled", detail.enabled, | |
| 23 | "Adds fractal detail below the map's resolution; off leaves the interpolated map as it " | ||
| 24 | "is."); | ||
| 25 | 92 | io("seed", detail.seed, | |
| 26 | "Seed of the detail noise; changing it gives a different pattern of the same roughness."); | ||
| 27 | 92 | io("octaves", detail.octaves, | |
| 28 | "Octaves of detail, from half the map's cell size down, each half the wavelength of the " | ||
| 29 | "one before.", | ||
| 30 | 92 | "", Between(1.0, 16.0)); | |
| 31 | 89 | io("scale", detail.scale, | |
| 32 | "Factor on the RMS of every octave; 0 adds no detail, higher values give a more mottled " | ||
| 33 | "albedo.", | ||
| 34 | 89 | "", AtLeast(0.0)); | |
| 35 | 88 | io("hurst", detail.hurst, | |
| 36 | "Hurst exponent used instead of the one measured from the map; lower values " | ||
| 37 | "keep more contrast at fine scales. Unset uses the measured one.", | ||
| 38 | 88 | "", UnitInterval()); | |
| 39 | 87 | FadePixelFields(io, detail.fade, | |
| 40 | "How octaves of detail too fine for the sample spacing fade out."); | ||
| 41 | 87 | } | |
| 42 | |||
| 43 | 1404 | template <typename IO> void Fields(IO& io, ObliqueImpacts& oblique) { | |
| 44 | 1404 | io("enabled", oblique.enabled, | |
| 45 | "Draws an impact angle and direction per crater that shape its rays; off treats every " | ||
| 46 | "impact as vertical."); | ||
| 47 | 1404 | io("heading_deg", oblique.headingDegrees, | |
| 48 | "Downrange direction of every impact, in degrees counter-clockwise from +x (local east on " | ||
| 49 | "a body); unset draws a random heading per crater.", | ||
| 50 | "deg"); | ||
| 51 | 1403 | io("asymmetric_deg", oblique.asymmetricDegrees, | |
| 52 | "Impact angle from the horizontal, in degrees, below which ejecta leave faster downrange, " | ||
| 53 | "lengthening rays there and shortening them uprange.", | ||
| 54 | 1403 | "deg", Between(0.0, 90.0)); | |
| 55 | 1402 | io("forbidden_deg", oblique.forbiddenDegrees, | |
| 56 | "Impact angle in degrees below which rays within the zone half width of uprange are " | ||
| 57 | "dropped; at most the asymmetric angle.", | ||
| 58 | 1402 | "deg", Between(0.0, 90.0)); | |
| 59 | 1402 | io("butterfly_deg", oblique.butterflyDegrees, | |
| 60 | "Impact angle in degrees below which rays within the zone half width of downrange are " | ||
| 61 | "dropped too, a butterfly pattern; at most the forbidden angle.", | ||
| 62 | 1402 | "deg", Between(0.0, 90.0)); | |
| 63 | 1402 | io("downrange_speed_ratio", oblique.downrangeSpeedRatio, | |
| 64 | "Downrange over uprange ejection speed below the asymmetric angle, drawn per crater; at " | ||
| 65 | "least 1, higher values stretch downrange rays more."); | ||
| 66 | 1402 | io("zone_half_width_deg", oblique.zoneHalfWidthDegrees, | |
| 67 | "Half width in degrees of the ray-free zones uprange and downrange; " | ||
| 68 | "illustrative, as the sources do not measure it.", | ||
| 69 | 1402 | "deg", Between(0.0, 180.0)); | |
| 70 | 1401 | } | |
| 71 | |||
| 72 | 974 | template <typename IO> void Fields(IO& io, CraterRays& rays) { | |
| 73 | 974 | io("enabled", rays.enabled, | |
| 74 | "Gives craters rays of bright material; off leaves only their interiors and ejecta " | ||
| 75 | "bright."); | ||
| 76 | 974 | io("count", rays.count, | |
| 77 | "Number of rays of a crater, drawn per crater and rounded; from 0 to 64."); | ||
| 78 | 974 | io("length_coefficient", rays.lengthCoefficient, | |
| 79 | "Coefficient of the median ray length, coefficient R^exponent km for crater radius R in " | ||
| 80 | "km; higher values give longer rays.", | ||
| 81 | 974 | "", Above(0.0)); | |
| 82 | 973 | io("length_exponent", rays.lengthExponent, | |
| 83 | "Exponent of the crater radius in the median ray length; higher values make large " | ||
| 84 | "craters' rays relatively longer.", | ||
| 85 | 973 | "", Above(0.0)); | |
| 86 | 973 | io("length_spread", rays.lengthSpread, | |
| 87 | "Natural logarithm of a ray's length over the median, drawn per ray; a wider " | ||
| 88 | "distribution gives more varied lengths."); | ||
| 89 | 973 | io("width_deg", rays.widthDegrees, | |
| 90 | "Angle in degrees a ray spans 2 radii from the center, drawn per ray, within (0, 180); " | ||
| 91 | "beyond 2 radii a ray keeps the width it has there."); | ||
| 92 | 973 | io("excess", rays.excess, | |
| 93 | "Optical maturity above the background along a ray at the rim, falling linearly to 0 at " | ||
| 94 | "its end; higher values give brighter rays.", | ||
| 95 | 973 | "", AtLeast(0.0)); | |
| 96 | 971 | io("patchiness", rays.patchiness, | |
| 97 | "Share of a ray's strength that noise along it can take away, breaking it into patches; 0 " | ||
| 98 | "gives unbroken rays.", | ||
| 99 | 971 | "", UnitInterval()); | |
| 100 | 970 | io("patch_radii", rays.patchRadii, | |
| 101 | "Wavelength of the noise along a ray, in crater radii; smaller values give shorter " | ||
| 102 | "patches.", | ||
| 103 | 970 | "", Above(0.0)); | |
| 104 | 969 | io("oblique", rays.oblique, | |
| 105 | "How oblique impacts lengthen rays downrange and clear them uprange."); | ||
| 106 | 969 | io("layout", rays.layout, | |
| 107 | "Takes the rays' number, directions and widths from this layout in place of count and " | ||
| 108 | "width_deg, so they lie over a secondaries layer with the same layout; unset draws them " | ||
| 109 | "per crater."); | ||
| 110 | 969 | } | |
| 111 | |||
| 112 | 963 | template <typename IO> void Fields(IO& io, RayRetention& retention) { | |
| 113 | 963 | io("small_diameter_m", retention.smallDiameter, | |
| 114 | "Diameter in meters at or below which craters keep their bright material for the small " | ||
| 115 | "time.", | ||
| 116 | 963 | "m", Above(0.0)); | |
| 117 | 963 | io("small_myr", retention.smallMyr, | |
| 118 | "Time in Myr craters up to the small diameter keep their bright material.", "Myr", | ||
| 119 | 963 | Above(0.0)); | |
| 120 | 962 | io("mid_diameter_m", retention.midDiameter, | |
| 121 | "Diameter in meters from which craters keep their bright material for the mid time; " | ||
| 122 | "between the small and mid diameters the time follows a power law of diameter.", | ||
| 123 | 962 | "m", Above(0.0)); | |
| 124 | 962 | io("mid_myr", retention.midMyr, | |
| 125 | "Time in Myr craters from the mid to the large diameter keep their bright material.", "Myr", | ||
| 126 | 962 | Above(0.0)); | |
| 127 | 962 | io("large_diameter_m", retention.largeDiameter, | |
| 128 | "Diameter in meters above which craters keep their bright material for the large time.", "m", | ||
| 129 | 962 | Above(0.0)); | |
| 130 | 962 | io("large_myr", retention.largeMyr, | |
| 131 | "Time in Myr craters above the large diameter keep their bright material.", "Myr", | ||
| 132 | 962 | Above(0.0)); | |
| 133 | 962 | io("scale", retention.scale, | |
| 134 | "Factor every retention time is multiplied by; higher values keep craters bright for " | ||
| 135 | "longer.", | ||
| 136 | 962 | "", Above(0.0)); | |
| 137 | 962 | } | |
| 138 | |||
| 139 | 572 | template <typename IO> void Fields(IO& io, CraterAlbedoTexture& texture) { | |
| 140 | 572 | io("streaks", texture.streaks, | |
| 141 | "Share of the excess radial streaks take away between filaments, breaking ejecta, rays and " | ||
| 142 | "interiors into fine streaks; 0 leaves them smooth.", | ||
| 143 | 572 | "", UnitInterval()); | |
| 144 | 572 | io("streak_width_deg", texture.streakWidthDegrees, | |
| 145 | 572 | "Typical width of a filament around the crater, in degrees.", "deg", Above(0.0)); | |
| 146 | 572 | io("streak_length_radii", texture.streakLengthRadii, | |
| 147 | 572 | "Typical length of a filament outward from the crater, in crater radii.", "", Above(0.0)); | |
| 148 | 572 | io("continuous_radii", texture.continuousRadii, | |
| 149 | "How far beyond the rim the ejecta stay continuous before breaking into filaments, in " | ||
| 150 | "crater radii; 0 streaks them from the rim.", | ||
| 151 | 572 | "", AtLeast(0.0)); | |
| 152 | 571 | io("lobes", texture.lobes, | |
| 153 | "How far the ejecta's edge wanders in and out, as a share of its reach; 0 keeps it " | ||
| 154 | "circular.", | ||
| 155 | 571 | "", Between(0.0, 0.9)); | |
| 156 | 569 | io("lobe_count", texture.lobeCount, "Typical number of lobes around a crater.", "", | |
| 157 | 569 | Between(1.0, 64.0)); | |
| 158 | 569 | io("floor_share", texture.floorShare, | |
| 159 | "Interior excess on the floor over that at the rim; 1 keeps the interior " | ||
| 160 | "even, lower values brighten the walls over the floor.", | ||
| 161 | 569 | "", UnitInterval()); | |
| 162 | 569 | io("seed", texture.seed, "Varies every crater's texture."); | |
| 163 | 569 | } | |
| 164 | |||
| 165 | 5693 | template <typename IO> void Fields(IO& io, ReflectanceZone& zone) { | |
| 166 | 5693 | io("share", zone.share, "Share of craters with the zone.", "", UnitInterval()); | |
| 167 | 5691 | io("change", zone.change, | |
| 168 | "Reflectance change relative to the pre-impact surface, drawn per crater; above -1, " | ||
| 169 | "negative values darken."); | ||
| 170 | 5691 | io("coefficient_m", zone.coefficient, | |
| 171 | "Coefficient of the zone's reach from the crater's center, coefficient D^exponent meters " | ||
| 172 | "for diameter D in meters.", | ||
| 173 | 5691 | "m", Above(0.0)); | |
| 174 | 5689 | io("exponent", zone.exponent, "Exponent of the diameter in the zone's reach.", "", Above(0.0)); | |
| 175 | 5687 | io("scale", zone.scale, | |
| 176 | "Factor on the reach, drawn per crater; positive and bounded, a wider distribution gives " | ||
| 177 | "more varied zones."); | ||
| 178 | 5687 | io("raggedness", zone.raggedness, | |
| 179 | "Share of the reach that fingers of the edge pull in by; 0 keeps the zone round, higher " | ||
| 180 | "values make it ray-like.", | ||
| 181 | 5687 | "", FromBelow(0.0, 1.0)); | |
| 182 | 5685 | io("finger_width_deg", zone.fingerWidthDegrees, | |
| 183 | 5685 | "Typical width of the edge's fingers around the crater, in degrees.", "deg", Above(0.0)); | |
| 184 | 5683 | io("feather", zone.feather, "Share of the reach over which the zone fades out at its edge.", "", | |
| 185 | 5683 | AboveUpTo(0.0, 1.0)); | |
| 186 | 5680 | io("retention_myr", zone.retentionMyr, | |
| 187 | "How long the zone lasts, in Myr, fading like the bright material; unset lasts as long as " | ||
| 188 | "the bright material.", | ||
| 189 | 5680 | "Myr", Above(0.0)); | |
| 190 | 5679 | } | |
| 191 | |||
| 192 | 1002 | template <typename IO> void Fields(IO& io, ZoneShadows& shadows) { | |
| 193 | 1905 | io("enabled", shadows.enabled, | |
| 194 | "Gives the distal zones shadows behind rises such as crater rims, read from the terrain's " | ||
| 195 | "heights; off by default."); | ||
| 196 | 1002 | io("jet_angle_deg", shadows.jetAngleDegrees, | |
| 197 | "Steepest angle in degrees at which the jet forming the distal zones can drop behind a " | ||
| 198 | "rise; lower values give longer shadows. Illustrative.", | ||
| 199 | 1002 | "deg", Inside(0.0, 90.0)); | |
| 200 | 1000 | io("depth_m", shadows.depth, | |
| 201 | "Depth in meters of the ground below the jet at which the shadow is full. Illustrative.", | ||
| 202 | 1000 | "m", Above(0.0)); | |
| 203 | 999 | io("azimuths", shadows.azimuths, "Rays around a crater the ground is sampled on.", "", | |
| 204 | 999 | Between(8.0, 8192.0)); | |
| 205 | 998 | io("radial_samples", shadows.radialSamples, | |
| 206 | 998 | "Samples along each ray out to the distal zones' reach.", "", Between(8.0, 8192.0)); | |
| 207 | 997 | } | |
| 208 | |||
| 209 | 1007 | template <typename IO> void Fields(IO& io, CraterReflectanceZones& zones) { | |
| 210 | 1930 | io("enabled", zones.enabled, | |
| 211 | "Gives new small craters the reflectance zones of LROC temporal pairs; off by default."); | ||
| 212 | 1007 | io("max_diameter_m", zones.maxDiameter, | |
| 213 | "Largest crater diameter, in meters, with zones; the published fits stop near 43 m.", "m", | ||
| 214 | 1007 | Above(0.0)); | |
| 215 | 1004 | io("mature_depth_m", zones.matureDepth, | |
| 216 | "Depth in meters of mature regolith; only craters excavating deeper get the proximal " | ||
| 217 | "high reflectance zone.", | ||
| 218 | 1004 | "m", AtLeast(0.0)); | |
| 219 | 1002 | io("excavation_ratio", zones.excavationRatio, "Excavation depth over crater diameter.", "", | |
| 220 | 1002 | Above(0.0)); | |
| 221 | 1000 | io("proximal_high", zones.proximalHigh, | |
| 222 | "Proximal high reflectance zone: immature ejecta, +12% to a median 1.5 D."); | ||
| 223 | 1000 | io("proximal_low", zones.proximalLow, | |
| 224 | "Proximal low reflectance zone: -9% to a median 2.9 D, around nearly every crater."); | ||
| 225 | 996 | io("distal_high", zones.distalHigh, | |
| 226 | "Distal high reflectance zone: +1% to +4% to 0.52 D^2.5 m, around 24% of craters."); | ||
| 227 | 990 | io("distal_low", zones.distalLow, | |
| 228 | "Distal low reflectance zone: -2% to -6%, ray-like, to 5.03 D^2 m, around 84% of " | ||
| 229 | "craters."); | ||
| 230 | 987 | io("shadows", zones.shadows, "Shadows of rises in the distal zones; off by default."); | |
| 231 | 982 | io("seed", zones.seed, "Varies every crater's zones."); | |
| 232 | 982 | } | |
| 233 | |||
| 234 | 565 | template <typename IO> void Fields(IO& io, CraterAlbedoOptions& options) { | |
| 235 | 565 | io("seed", options.seed, | |
| 236 | "Seed of which craters get bright material, their rays and their impacts; changing it " | ||
| 237 | "gives a different pattern of the same statistics."); | ||
| 238 | 564 | SelectionFields( | |
| 239 | 565 | io, options.selection, "craters given bright material", | |
| 240 | "Gives manual craters bright material too; otherwise only generated and replacing " | ||
| 241 | "craters have it."); | ||
| 242 | 564 | io("share", options.share, "Share of eligible craters given bright material.", "", | |
| 243 | 564 | UnitInterval()); | |
| 244 | 562 | io("background_maturity", options.backgroundMaturity, | |
| 245 | "Optical maturity (OMAT) of the ground around the craters; the excesses are added to it " | ||
| 246 | "and the albedo is brightened from it.", | ||
| 247 | 562 | "", Above(0.0)); | |
| 248 | 561 | io("max_maturity", options.maxMaturity, | |
| 249 | "Cap on the optical maturity where craters' excesses add up, at least the background; it " | ||
| 250 | "limits how bright overlapping craters get."); | ||
| 251 | 561 | io("interior_excess", options.interiorExcess, | |
| 252 | "Optical maturity above the background inside a fresh crater's rim; higher values give " | ||
| 253 | "brighter interiors.", | ||
| 254 | 561 | "", AtLeast(0.0)); | |
| 255 | 560 | io("texture", options.texture, | |
| 256 | "Filaments, lobed ejecta edges and walls brighter than floors; off unless streaks, lobes " | ||
| 257 | "or a floor share below 1 are set."); | ||
| 258 | 559 | io("zones", options.zones, | |
| 259 | "Bright and dark reflectance zones around new small craters, after Robinson et al. " | ||
| 260 | "(2015) and Speyerer et al. (2016); off by default."); | ||
| 261 | 544 | io("ejecta_excess", options.ejectaExcess, | |
| 262 | "Optical maturity above the background on a fresh crater's continuous ejecta at the rim, " | ||
| 263 | "falling with distance.", | ||
| 264 | 544 | "", AtLeast(0.0)); | |
| 265 | 544 | io("ejecta_exponent", options.ejectaExponent, | |
| 266 | "Exponent of the ejecta's fall with distance r, as (r / R)^-exponent for crater radius R; " | ||
| 267 | "higher values keep the bright ejecta nearer the rim.", | ||
| 268 | 544 | "", Above(0.0)); | |
| 269 | 543 | io("ejecta_reach_radii", options.ejectaReachRadii, | |
| 270 | "Distance from the center, in crater radii, at which the ejecta's excess reaches 0.", "", | ||
| 271 | 543 | Above(1.0)); | |
| 272 | 542 | io("rays", options.rays, "Rays of bright material running out from the craters."); | |
| 273 | 537 | io("retention", options.retention, | |
| 274 | "How long craters of each diameter keep their bright material."); | ||
| 275 | 536 | io("fade_exponent", options.fadeExponent, | |
| 276 | "Exponent of the fade with age t, max(0, 1 - t / T)^exponent for retention time T; 1 is " | ||
| 277 | "a straight fade and higher values fade sooner.", | ||
| 278 | 536 | "", Above(0.0)); | |
| 279 | 535 | io("origin_reflectance", options.originReflectance, | |
| 280 | "Reflectance of the optical maturity origin, the hypermature end-member, from which " | ||
| 281 | "reflectance scales with maturity at fixed iron content."); | ||
| 282 | 1070 | FadePixelFields( | |
| 283 | 535 | io, options.fade, | |
| 284 | "How bright material of craters too small to resolve at the sample spacing fades out."); | ||
| 285 | 535 | } | |
| 286 | |||
| 287 | 108 | template <typename IO> void Fields(IO& io, SplotchSwarms& swarms) { | |
| 288 | 157 | io("enabled", swarms.enabled, | |
| 289 | "Gives new craters swarms of splotches, their ejecta's secondaries (Robinson et al. " | ||
| 290 | "2015); off by default."); | ||
| 291 | 108 | io("crater_rate", swarms.craterRate, | |
| 292 | "New craters at least 10 m across per km^2 per year; 4.84e-6 from Speyerer et al. (2016).", | ||
| 293 | 108 | "", Above(0.0)); | |
| 294 | 107 | io("crater_slope", swarms.craterSlope, | |
| 295 | "Cumulative size slope of the new craters; the Neukum production function has 2.97 to " | ||
| 296 | "3.15.", | ||
| 297 | 107 | "", Above(0.0)); | |
| 298 | 107 | io("min_crater_diameter_m", swarms.minCraterDiameter, | |
| 299 | "Smallest crater with a swarm, in meters; smaller craters throw few splotches.", "m", | ||
| 300 | 107 | Above(0.0)); | |
| 301 | 107 | io("max_crater_diameter_m", swarms.maxCraterDiameter, "Largest crater with a swarm, in meters.", | |
| 302 | 107 | "m", Above(0.0)); | |
| 303 | 107 | io("reference_diameter_m", swarms.referenceDiameter, | |
| 304 | "Diameter in meters of the crater whose swarm was counted: 18.8 m, Robinson et al.", "m", | ||
| 305 | 107 | Above(0.0)); | |
| 306 | 107 | io("reference_count", swarms.referenceCount, | |
| 307 | 107 | "Splotches of the reference crater: 248 within 30 km, Robinson et al.", "", Above(0.0)); | |
| 308 | 107 | io("mu", swarms.mu, | |
| 309 | "Velocity exponent of the target; 0.41 for sand (Housen and Holsapple " | ||
| 310 | "2011). Counts grow as D^(3 + 1.5 mu) and landing distances fall as r^(-1.5 mu).", | ||
| 311 | 107 | "", Inside(0.0, 1.0)); | |
| 312 | 105 | io("min_range_m", swarms.minRange, | |
| 313 | "Nearest landing distance in meters, setting Robinson et al.'s median of 8.7 km.", "m", | ||
| 314 | 105 | Above(0.0)); | |
| 315 | 105 | io("max_range_m", swarms.maxRange, "Farthest landing distance in meters.", "m", Above(0.0)); | |
| 316 | 105 | io("splotch_diameter", swarms.splotchDiameter, | |
| 317 | "Diameter of a swarm splotch in meters, drawn per splotch: 2 to 22 m, median 6 m."); | ||
| 318 | 105 | io("dark_share", swarms.darkShare, "Share of swarm splotches darker than the ground.", "", | |
| 319 | 105 | UnitInterval()); | |
| 320 | 105 | io("bright_share", swarms.brightShare, "Share brighter than the ground; the rest are mixed.", | |
| 321 | 105 | "", UnitInterval()); | |
| 322 | 105 | io("dark_change", swarms.darkChange, "Reflectance change of a dark swarm splotch."); | |
| 323 | 105 | io("bright_change", swarms.brightChange, "Reflectance change of a bright swarm splotch."); | |
| 324 | 105 | io("wedge_share", swarms.wedgeShare, | |
| 325 | "Share of swarm splotches shaped as wedges pointing back to their crater. Illustrative.", "", | ||
| 326 | 105 | UnitInterval()); | |
| 327 | 104 | io("wedge_elongation", swarms.wedgeElongation, "Long over short axis of a wedge. Illustrative.", | |
| 328 | 104 | "", AtLeast(1.0)); | |
| 329 | 103 | io("craters", swarms.craters, | |
| 330 | "New craters given by hand, such as an observed impact, each throwing a swarm."); | ||
| 331 | 103 | } | |
| 332 | |||
| 333 | 112 | template <typename IO> void Fields(IO& io, SplotchAlbedoOptions& options) { | |
| 334 | 112 | io("seed", options.seed, "Seed of where splotches fall and what they are."); | |
| 335 | 112 | io("rate_coefficient", options.rateCoefficient, | |
| 336 | "Coefficient a of the cumulative formation rate a d^-b per km^2 per year, d the diameter " | ||
| 337 | "in km; higher values give more splotches.", | ||
| 338 | 112 | "", Above(0.0)); | |
| 339 | 110 | io("rate_exponent", options.rateExponent, | |
| 340 | "Slope b of the cumulative formation rate; higher values give relatively more small " | ||
| 341 | "splotches.", | ||
| 342 | 110 | "", Above(0.0)); | |
| 343 | 108 | io("lifetime_myr", options.lifetimeMyr, | |
| 344 | "How long a splotch lasts in Myr, fading linearly; the default is the time splotches take " | ||
| 345 | "to churn the top centimeters.", | ||
| 346 | 108 | "Myr", Above(0.0)); | |
| 347 | 106 | io("min_diameter_m", options.minDiameter, | |
| 348 | "Smallest splotch diameter in meters; the published fit is extrapolated below 10 m.", "m", | ||
| 349 | 106 | Above(0.0)); | |
| 350 | 104 | io("max_diameter_m", options.maxDiameter, | |
| 351 | 104 | "Largest splotch diameter in meters, above the smallest.", "m", Above(0.0)); | |
| 352 | 104 | io("dark_share", options.darkShare, "Share of splotches darker than the ground.", "", | |
| 353 | 104 | UnitInterval()); | |
| 354 | 102 | io("bright_share", options.brightShare, | |
| 355 | "Share of splotches brighter than the ground; the rest are mixed, dark on " | ||
| 356 | "one side and bright on the other.", | ||
| 357 | 102 | "", UnitInterval()); | |
| 358 | 102 | io("dark_change", options.darkChange, | |
| 359 | "Reflectance change of a dark splotch relative to the ground before it, drawn per " | ||
| 360 | "splotch; above -1."); | ||
| 361 | 102 | io("bright_change", options.brightChange, | |
| 362 | "Reflectance change of a bright splotch, drawn per splotch; above -1."); | ||
| 363 | 102 | io("steep_bright_share", options.steepBrightShare, | |
| 364 | "Share of splotches on slopes steeper than the steep slope that are bright, read from the " | ||
| 365 | "terrain's heights; unset keeps the bright share. Bright splotches are found mostly on " | ||
| 366 | "such slopes, but the source gives no share.", | ||
| 367 | 102 | "", UnitInterval()); | |
| 368 | 101 | io("steep_slope_deg", options.steepSlopeDegrees, "Slope in degrees from which ground is steep.", | |
| 369 | 101 | "deg", Inside(0.0, 90.0)); | |
| 370 | 100 | io("softness", options.softness, "Share of a splotch's radius over which its edge fades.", "", | |
| 371 | 100 | AboveUpTo(0.0, 1.0)); | |
| 372 | 96 | io("raggedness", options.raggedness, | |
| 373 | "Share of a splotch's radius that lobes of its edge pull in by; 0 keeps it round.", "", | ||
| 374 | 96 | FromBelow(0.0, 1.0)); | |
| 375 | 94 | FadePixelFields(io, options.fade, | |
| 376 | "How splotches too small to resolve at the sample spacing fade out."); | ||
| 377 | 94 | io("swarms", options.swarms, "Swarms of splotches around new craters; off by default."); | |
| 378 | 89 | } | |
| 379 | |||
| 380 | 65 | template <typename IO> void Fields(IO& io, BlastZone& zone) { | |
| 381 | 65 | io("x", zone.x, "Surface x of the lander."); | |
| 382 | 63 | io("y", zone.y, "Surface y of the lander."); | |
| 383 | 63 | io("area", zone.area, | |
| 384 | "Area of the blast zone in m^2; measured: Apollo 18,725 to 53,872 (mean 28,785), Luna 987 " | ||
| 385 | "to 3355 (mean 2100), Surveyor 131 to 279 (mean 215), Chang'e-3 2530.", | ||
| 386 | 63 | "m^2", Above(0.0)); | |
| 387 | 59 | io("elongation", zone.elongation, | |
| 388 | "Long over short axis of the zone; Apollo about 1.14, Chang'e-3 about 1.74.", "", | ||
| 389 | 59 | AtLeast(1.0)); | |
| 390 | 57 | io("heading_deg", zone.headingDegrees, | |
| 391 | "Direction of the long axis, degrees counter-clockwise from east, such as along the " | ||
| 392 | "final approach.", | ||
| 393 | "deg"); | ||
| 394 | 57 | io("change", zone.change, | |
| 395 | "Mean reflectance change over the zone relative to undisturbed ground at 30 degrees phase; " | ||
| 396 | "measured +3.4% to +13.2%, Apollo mean +10.9%.", | ||
| 397 | 57 | "", Above(-1.0)); | |
| 398 | 55 | io("halo_change", zone.haloChange, | |
| 399 | "Reflectance change of the fainter halo beyond the zone; +4% at Chang'e-3.", "", | ||
| 400 | 55 | Above(-1.0)); | |
| 401 | 55 | io("halo_reach", zone.haloReach, | |
| 402 | 55 | "How far the halo reaches over the zone's own reach; 1 for no halo.", "", AtLeast(1.0)); | |
| 403 | 53 | io("core_radius_m", zone.coreRadius, | |
| 404 | "Radius in meters of the darker core beneath the engine and around the crew's tracks; 0 " | ||
| 405 | "for none, a few meters at the Apollo sites.", | ||
| 406 | 53 | "m", AtLeast(0.0)); | |
| 407 | 51 | io("core_change", zone.coreChange, | |
| 408 | 51 | "Reflectance change of the dark core; -15% to -30% at the Apollo sites.", "", Above(-1.0)); | |
| 409 | 49 | io("raggedness", zone.raggedness, | |
| 410 | 49 | "Share of the zone's radius that lobes of its edge pull in by.", "", FromBelow(0.0, 1.0)); | |
| 411 | 47 | io("seed", zone.seed, "Varies the edge's lobes."); | |
| 412 | 47 | } | |
| 413 | |||
| 414 | 73 | template <typename IO> void Fields(IO& io, RockAlbedoOptions& options) { | |
| 415 | 73 | io("seed", options.seed, "Seed of the per-sample draws of rock too small to resolve."); | |
| 416 | 73 | io("reflectance_ratio", options.reflectanceRatio, | |
| 417 | "Rock reflectance over the regolith's; 2.5 after Marshal et al. (2023), within Holt's " | ||
| 418 | "(1981) Apollo 16 rocks at 18 to 51% against soils of 14 to 15%; earlier models used 1.5.", | ||
| 419 | 73 | "", Above(0.0)); | |
| 420 | 70 | io("unresolved", options.unresolved, | |
| 421 | "Brightens each sample by the share of it covered by boulders too small to resolve, drawn " | ||
| 422 | "about the expected share with the scatter of randomly placed rocks: bright speckle."); | ||
| 423 | 70 | } | |
| 424 | |||
| 425 | /// The fields of a synthetic albedo's base color, its noise stacks given apart. | ||
| 426 | 164 | template <typename IO> void SyntheticAlbedoColorFields(IO& io, SyntheticAlbedoOptions& options) { | |
| 427 | 164 | io("rgb", options.rgb, | |
| 428 | "Gives three bands, red, green and blue, from the color; off gives one band of the value " | ||
| 429 | "alone, ignoring hue and saturation."); | ||
| 430 | 164 | io("hue_deg", options.hueDegrees, | |
| 431 | "Hue of the base color in degrees, wrapping around; used with rgb only.", "deg"); | ||
| 432 | 164 | io("saturation", options.saturation, | |
| 433 | 164 | "Saturation of the base color, 0 for gray; used with rgb only.", "", UnitInterval()); | |
| 434 | 164 | io("value", options.value, | |
| 435 | "Reflectance of the brightest band; the one band's value without rgb. Higher values give a " | ||
| 436 | "brighter surface.", | ||
| 437 | 164 | "", UnitInterval()); | |
| 438 | 162 | } | |
| 439 | |||
| 440 | 67 | template <typename IO> void Fields(IO& io, SlopeAlbedoOptions& options) { | |
| 441 | 67 | io("onset_deg", options.onsetDegrees, | |
| 442 | "Slope in degrees from which ground freshens; 20, where Lucey et al. (2014) and Ikeda et " | ||
| 443 | "al. (2022) find brightening begin.", | ||
| 444 | 67 | "deg", FromBelow(0.0, 90.0)); | |
| 445 | 66 | io("maturity_per_degree", options.maturityPerDegree, | |
| 446 | "Optical maturity (OMAT) gained per degree beyond the onset; about 0.0065 on the crater " | ||
| 447 | "walls of Ikeda et al. (2022).", | ||
| 448 | 66 | "", AtLeast(0.0)); | |
| 449 | 65 | io("background_maturity", options.backgroundMaturity, | |
| 450 | "OMAT of gentler ground; about 0.10 at 20 degrees in Laue (Ikeda et al. 2022).", "", | ||
| 451 | 65 | Above(0.0)); | |
| 452 | 64 | io("max_maturity", options.maxMaturity, "Cap on OMAT; at least the background's.", "", | |
| 453 | 64 | Above(0.0)); | |
| 454 | 64 | io("baseline_m", options.baseline, | |
| 455 | "Meters slopes are measured over, the spacing of the lattice they are read on; 10, the " | ||
| 456 | "DTM Ikeda et al. (2022) measured slopes on.", | ||
| 457 | 64 | "m", Above(0.0)); | |
| 458 | 61 | io("origin_reflectance", options.originReflectance, | |
| 459 | "Reflectance of the optical maturity origin, from which reflectance scales with maturity " | ||
| 460 | "at fixed iron content."); | ||
| 461 | 60 | } | |
| 462 | |||
| 463 | 163 | template <typename IO> void Fields(IO& io, HapkeParameters& hapke) { | |
| 464 | 163 | io("albedo", hapke.albedo, "Single-scattering albedo w.", "", UnitInterval()); | |
| 465 | 161 | io("b", hapke.b, "Asymmetry b of the two-term Henyey-Greenstein phase function.", "", | |
| 466 | 161 | UnitInterval()); | |
| 467 | 161 | io("c", hapke.c, "Backscatter fraction c of the two-term Henyey-Greenstein phase function.", "", | |
| 468 | 161 | UnitInterval()); | |
| 469 | 161 | io("roughness_deg", hapke.roughness, "Macroscopic roughness theta-bar, in degrees.", "deg", | |
| 470 | 161 | FromBelow(0.0, 90.0)); | |
| 471 | 160 | } | |
| 472 | |||
| 473 | } // namespace terraingen | ||
| 474 |