From 88866cdbebda5a44714558e2ff82b5c32a954339 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Thu, 30 Apr 2026 10:51:17 -0500 Subject: [PATCH] fix(grid-rs): update hrdps_encode_uses_canadian_bbox to coarse step MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Missed in d5726a89 — the test asserted the old 0.125° dimensions (89 × 713) but the writer now emits 0.5° (23 × 179). Asserting the new dimensions. --- rust/prop_grid_rs/src/scores_file.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rust/prop_grid_rs/src/scores_file.rs b/rust/prop_grid_rs/src/scores_file.rs index aa6c5b86..f3394fa5 100644 --- a/rust/prop_grid_rs/src/scores_file.rs +++ b/rust/prop_grid_rs/src/scores_file.rs @@ -236,9 +236,10 @@ mod hrdps_tests { // HRDPS bbox lat_start=49, lon_start=-141 assert!((decoded.lat_min - 49.0).abs() < 1e-6); assert!((decoded.lon_min - (-141.0)).abs() < 1e-6); - // 89 lat × 713 lon cells per the Canadian bbox. - assert_eq!(decoded.n_rows, 89); - assert_eq!(decoded.n_cols, 713); + // HRDPS uses the coarser 0.5° step (see grid::HRDPS_STEP), so + // the bbox produces 23 lat × 179 lon cells. + assert_eq!(decoded.n_rows, 23); + assert_eq!(decoded.n_cols, 179); } }