You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, you can only create a grid by specifying the number of points in each direction using shape. It would be convenient if we could specify a grid spacing instead (in east and north). The main challenge is that there is no guarantee that the spacing fits in the given region. So we should probably tweak the spacing or the region to adjust.
If tweaking the spacing, an option is to calculate a number of points that could fit the region by round(dimension/spacing) and then do a linspace. If tweaking the region, we can use np.arange(w, e, spacing) and add another node if not np.allclose(lons[-1], e).
The text was updated successfully, but these errors were encountered:
Include option to give a spacing instead of a shape.
If this is the case, the spacing or the region might need to be adjusted
when the region is not a multiple of the spacing. If the region is
fixed, then the spacing is adjusted to the nearest multiple (default).
If the spacing is fixed, the East and North boundaries are adjusted.
Fixes#19
Include option to give a spacing instead of a shape.
If this is the case, the spacing or the region might need to be adjusted
when the region is not a multiple of the spacing. If the region is
fixed, then the spacing is adjusted to the nearest multiple (default).
If the spacing is fixed, the East and North boundaries are adjusted.
Fixes#19
Right now, you can only create a grid by specifying the number of points in each direction using
shape
. It would be convenient if we could specify a grid spacing instead (in east and north). The main challenge is that there is no guarantee that the spacing fits in the given region. So we should probably tweak the spacing or the region to adjust.If tweaking the spacing, an option is to calculate a number of points that could fit the region by
round(dimension/spacing)
and then do a linspace. If tweaking the region, we can usenp.arange(w, e, spacing)
and add another node ifnot np.allclose(lons[-1], e)
.The text was updated successfully, but these errors were encountered: