{
  "field": "elevation",
  "units": "metres",
  "projection": "plain",
  "format": "RGBA16Float (uint16 little-endian bit patterns), row-major, index = (px + py*face_size)*4 + channel",
  "face_size": 2048,
  "km_per_texel": 4.88649579980971,
  "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.250037208392425e+18,
      "abs_volume_integral_m3": 1.4328964780611748e+18,
      "land_volume_m3": 9.142963483437498e+16,
      "ocean_volume_m3": -1.3414668432267999e+18,
      "mean_elevation_m": -2450.743537796357,
      "land_area_fraction": 0.2760940985634672,
      "hypsometry_area_fraction_at_or_below": {
        "-10000": 3.6054947680847623e-06,
        "-6000": 0.007178002063831055,
        "-4000": 0.3774869891492744,
        "-3000": 0.5350751835145593,
        "-2000": 0.5955126669612129,
        "-1000": 0.6286299976597899,
        "-200": 0.6689493246475655,
        "0": 0.7239059014365327,
        "200": 0.8072799471292328,
        "1000": 0.9457777559844244,
        "2000": 0.9848906308174172,
        "4000": 0.9949121707060721,
        "6000": 0.9999770391514775,
        "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": 510064471909788.5,
      "volume_integral_m3": -1.2486512746420838e+18,
      "abs_volume_integral_m3": 1.4314928797341468e+18,
      "land_volume_m3": 9.142080254603152e+16,
      "ocean_volume_m3": -1.3400720771881155e+18,
      "mean_elevation_m": -2448.026364131717,
      "land_area_fraction": 0.27631247016010013,
      "hypsometry_area_fraction_at_or_below": {
        "-10000": 3.3261399270644345e-06,
        "-6000": 0.007150921536126541,
        "-4000": 0.3771345592150259,
        "-3000": 0.5346687595109371,
        "-2000": 0.5949975906762521,
        "-1000": 0.6280974401452193,
        "-200": 0.6687069593891762,
        "0": 0.7236875298398999,
        "200": 0.8070137446256626,
        "1000": 0.9458300389532944,
        "2000": 0.9849600148085492,
        "4000": 0.9949214272674148,
        "6000": 0.999981690610675,
        "8000": 1.0
      }
    },
    "ratio_volume_integral_baked_to_source": 0.9988912860024995,
    "ratio_abs_volume_integral_baked_to_source": 0.9990204468023209,
    "ratio_land_volume_baked_to_source": 0.9999033979698218,
    "ratio_ocean_volume_baked_to_source": 0.9989602679740266,
    "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.28976678741329215,
      "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": 33554432,
  "total_bytes": 201326592
}