noritada / grib-rs

GRIB format parser for Rust
Apache License 2.0
57 stars 9 forks source link

Add functionality to access the grid shape without iteration #80

Closed noritada closed 3 months ago

noritada commented 3 months ago

This PR adds functionality to access the grid shape without iteration.

The shape of the grid is included in the parameters of the grid definition and is therefore accessible to the user if he/she makes the effort, but currently that access is not as easy as it could be.

This feature may be useful when plotting grid point values on canvas, since it allows the distribution of grid points to be known before the actual decoding of the grid point values.