{
  "field": "elevation",
  "units": "metres",
  "projection": "plain",
  "format": "RGBA16Float (uint16 little-endian bit patterns), row-major, index = (px + py*face_size)*4 + channel",
  "face_size": 512,
  "km_per_texel": 19.54598319923884,
  "face_order": [
    "+X",
    "-X",
    "+Y",
    "-Y",
    "+Z",
    "-Z"
  ],
  "face_convention": "matches THREE.CubeTexture images order; texel (px,py) -> u,v=((idx+0.5)/size)*2-1 in [-1,1]; row 0 = v=-1 (flipY=false, matches app/src/field/bakeCube.ts)",
  "geodetic_to_geocentric": {
    "applied": true,
    "wgs84_flattening": 0.0033528106647474805
  },
  "channels": {
    "R": "signed elevation in metres, raw (no log encoding, no clamping of negatives -- seafloor depth is real content, not a defect)",
    "G": "area-weighted fraction (0..1) of contributing ETOPO 60-arcsec source cells satisfying is_grounded(bed_elev, surface_elev) -- a real land-fraction mask, matching the app's existing landFraction semantics (continuous, clamp01-blended, not boolean). Registered pixel-for-pixel with R via the same box-average+bilinear machinery, so a given texel's R and G always come from the same source cells. NOT derived from R: bed elevation's sign alone misclassifies ice sheets sitting on below-sea-level bedrock (e.g. West Antarctica) as ocean -- see module docstring for the probe table that demonstrated this. is_grounded is an Archimedes flotation test (bed + (rho_ice/rho_water)*(surface-bed) > 0, rho_ice/rho_water=0.917) applied ALONE, with no extra surface_elev>=0 clause -- two earlier versions of this rule were each wrong in a different way and both shipped before this one: (1) a bare ice-thickness test (surface-bed>1.0) fired on any floating ice regardless of depth, misclassifying open ocean under floating sea ice as land (the Greenland/Baffin Bay hard-edged-rectangle bug); (2) replacing it with is_grounded but keeping a `surface_elev>=0 OR` clause still misclassified floating ICE SHELVES as land, because a floating shelf has positive freeboard by construction (~8% of its thickness pokes above the waterline) -- measured ~1,000,000 of 233,280,000 source cells (~0.43% of Earth, concentrated at 60-85S: Ross, Ronne-Filchner, Amery, Larsen C) wrongly land under (2) alone. is_grounded with no OR clause fixes both: for the ordinary no-ice case it reduces exactly to bed_elev>0, so dry land is unaffected. Do not add back either a thickness-only test or a surface>=0 clause. KNOWN LIMITATION (do not 'fix' by adjusting the rule): sub-texel endorheic below-datum basins (Death Valley -86 m, Turpan, the Dead Sea) read as water -- each is far smaller than a source cell at every tier shipped here (Death Valley ~15 km wide vs 9.77 km/texel), and rasterizing coastline vectors to fix it would add a geo-stack dependency this pipeline deliberately does not have.",
    "B": "reserved (0)",
    "A": "validity: always 1.0 -- ETOPO 2022 60\" declares a -99999 nodata sentinel that is never actually present (see nodata_audit below, exhaustively verified over all 233,280,000 source pixels)"
  },
  "nodata_audit": {
    "n_pixels": 233280000,
    "n_nodata_sentinel": 0,
    "n_nan": 0,
    "n_inf": 0,
    "confirmed_never_present": true,
    "min": -10752.08203125,
    "max": 8157.3564453125,
    "mean": -2128.033447265625
  },
  "surface_nodata_audit": {
    "n_pixels": 233280000,
    "n_nodata_sentinel": 0,
    "n_nan": 0,
    "n_inf": 0,
    "confirmed_never_present": true,
    "min": -10752.08203125,
    "max": 8157.3564453125,
    "mean": -1897.137451171875
  },
  "source": {
    "url": "https://www.ngdc.noaa.gov/mgg/global/relief/ETOPO2022/data/60s/60s_bed_elev_gtif/ETOPO_2022_v1_60s_N90W180_bed.tif",
    "resolution": "60 arc-second (1/60 deg), 21600x10800, full +/-90 coverage",
    "stats": {
      "total_area_m2": 510064471909788.25,
      "volume_integral_m3": -1.2500325742983027e+18,
      "abs_volume_integral_m3": 1.432738924504793e+18,
      "land_volume_m3": 9.135317510324522e+16,
      "ocean_volume_m3": -1.3413857494015478e+18,
      "mean_elevation_m": -2450.7344524858177,
      "land_area_fraction": 0.2762790274094771,
      "hypsometry_area_fraction_at_or_below": {
        "-10000": 2.4868503037664705e-06,
        "-6000": 0.00673199016747159,
        "-4000": 0.3772925620987103,
        "-3000": 0.5355624204370397,
        "-2000": 0.5958386249592165,
        "-1000": 0.6287579310678579,
        "-200": 0.6694283977419375,
        "0": 0.7237209725905228,
        "200": 0.8065368985188094,
        "1000": 0.9459144339060837,
        "2000": 0.9850531036171429,
        "4000": 0.9949305051426482,
        "6000": 0.9999902926931059,
        "8000": 1.0
      }
    }
  },
  "surface_source": {
    "url": "https://www.ngdc.noaa.gov/mgg/global/relief/ETOPO2022/data/60s/60s_surface_elev_gtif/ETOPO_2022_v1_60s_N90W180_surface.tif",
    "resolution": "60 arc-second (1/60 deg), 21600x10800, full +/-90 coverage",
    "note": "used only to compute the G-channel land mask (compute_land_mask) -- not baked into any channel directly."
  },
  "validation": {
    "baked_stats": {
      "total_area_m2": 510064471909787.9,
      "volume_integral_m3": -1.2486304895027645e+18,
      "abs_volume_integral_m3": 1.4311910854778465e+18,
      "land_volume_m3": 9.128029798754109e+16,
      "ocean_volume_m3": -1.3399107874903055e+18,
      "mean_elevation_m": -2447.985614108019,
      "land_area_fraction": 0.2766227867757468,
      "hypsometry_area_fraction_at_or_below": {
        "-10000": 1.1821851830797268e-06,
        "-6000": 0.006391697013751198,
        "-4000": 0.3765333832355509,
        "-3000": 0.535592800780774,
        "-2000": 0.5955447631448662,
        "-1000": 0.6284274256950446,
        "-200": 0.6697804663954593,
        "0": 0.7233772132242532,
        "200": 0.8061672935295453,
        "1000": 0.9459626185774872,
        "2000": 0.9852068608959943,
        "4000": 0.994955673414151,
        "6000": 0.9999951304531152,
        "8000": 1.0
      }
    },
    "ratio_volume_integral_baked_to_source": 0.9988783613928419,
    "ratio_abs_volume_integral_baked_to_source": 0.9989196642874196,
    "ratio_land_volume_baked_to_source": 0.9992022486835103,
    "ratio_ocean_volume_baked_to_source": 0.9989004192776759,
    "note": "a single signed volume-integral ratio is a weak check here (land and ocean volumes are within an order of magnitude of each other and partially cancel) -- abs/land/ocean ratios don't share that cancellation risk and should all be checked, not just the first one",
    "land_mask": {
      "global_land_fraction": 0.28975023621184814,
      "accepted_range": [
        0.285,
        0.299
      ],
      "probes": {
        "Vostok": {
          "lat": -78.46,
          "lon": 106.84,
          "expect": "land",
          "face": 5,
          "u": 0.05954944065087353,
          "v": -0.19674076141460434,
          "g": 1.0
        },
        "Byrd Subglacial Basin": {
          "lat": -80.0,
          "lon": -120.0,
          "expect": "land",
          "face": 5,
          "u": 0.08875766791026254,
          "v": 0.1537327903819005,
          "g": 1.0
        },
        "Dome A": {
          "lat": -80.37,
          "lon": 77.35,
          "expect": "land",
          "face": 5,
          "u": -0.03740858236916179,
          "v": -0.16667302745318682,
          "g": 1.0
        },
        "Greenland summit": {
          "lat": 72.58,
          "lon": -38.46,
          "expect": "land",
          "face": 4,
          "u": 0.24734670725402438,
          "v": 0.1964666725142869,
          "g": 1.0
        },
        "Amazon/Manaus": {
          "lat": -3.1,
          "lon": -60.0,
          "expect": "land",
          "face": 3,
          "u": 0.577350269189626,
          "v": 0.06211770369716539,
          "g": 1.0
        },
        "Mid-Pacific abyssal": {
          "lat": 0.0,
          "lon": -140.0,
          "expect": "ocean",
          "face": 1,
          "u": 0.0,
          "v": 0.8390996311772804,
          "g": 0.0
        },
        "Mid-Atlantic": {
          "lat": 0.0,
          "lon": -30.0,
          "expect": "ocean",
          "face": 0,
          "u": -0.0,
          "v": 0.5773502691896256,
          "g": 0.0
        },
        "Baffin Bay": {
          "lat": 70.0,
          "lon": -61.0,
          "expect": "ocean",
          "face": 4,
          "u": 0.17764549751950126,
          "v": 0.3204809610341315,
          "g": 0.0
        },
        "Arctic Ocean (north of Greenland)": {
          "lat": 86.0,
          "lon": -40.0,
          "expect": "ocean",
          "face": 4,
          "u": 0.05392806064443707,
          "v": 0.04525101579685313,
          "g": 0.0
        },
        "Ross Ice Shelf": {
          "lat": -79.1,
          "lon": 178.0,
          "expect": "ocean",
          "face": 5,
          "u": 0.19374937100949063,
          "v": -0.006765877124193565,
          "g": 0.0
        }
      }
    }
  },
  "bytes_per_face": 2097152,
  "total_bytes": 12582912
}