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:
parent
d5726a89d5
commit
88866cdbeb
1 changed files with 4 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue