Skip to content

v1.0.4

Choose a tag to compare

@dmarkham dmarkham released this 09 Apr 03:32
· 6 commits to master since this release

v1.0.4

Bug fixes

  • NearestValue index for rotated lat/lon grids (Template 3.1): Fixed canonical grid origin computation to use scanning mode flags instead of min/max heuristics. The O(1) path now matches brute-force search exactly on real RDPS data (1.2M point grid).
  • GridCoordinates ordering: Now returns coordinates in canonical order (matching Values()), fixing the root cause where GridCoordinates[i] did not correspond to Values()[i] for non-zero scanning modes.
  • SurfaceLevelHPa for RDPS isobaric encoding: Fixed double-division bug where CMC's compact hPa values were divided by 100 twice.

New features

  • O(1) NearestValue and BilinearValue for Template 3.1 (rotated lat/lon)
  • CMC local parameter codes: SkyTransparencyIndex (0,19,38), SeeingIndex (0,19,39)
  • SurfaceLevel(), SurfaceLevelHPa(), SurfaceType() helpers with fallback for non-standard scale factors

Testing

  • Regression test comparing O(1) vs brute-force search on Template31 grids
  • Verified on real RDPS 1.2M point grid: NearestValue(32.715, -117.161) returns 291.59K (18.44C) matching GFS and Open-Meteo