fix(grid-rs): update hrdps_encode_uses_canadian_bbox to coarse step

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.
This commit is contained in:
Graham McIntire 2026-04-30 10:51:17 -05:00
parent d5726a89d5
commit 88866cdbeb
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59

View file

@ -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);
}
}