digitalearthpacific / dep-grid

0 stars 0 forks source link

Draft attempt to create a new grid #3

Closed alexgleith closed 1 year ago

alexgleith commented 1 year ago

This a new way to make a grid... we need to test and carefully review, but I think it's more robust than the previous method.

Key points:

from odc.geo import XY
from odc.geo.gridspec import GridSpec

pacific_epsg = "EPSG:3832"
pacific_gridspec = GridSpec(crs=pacific_epsg, tile_shape=(3200,3200), resolution=30, origin=XY(-3000000, -4000000))
pacific_gridspec.tile_geobox((63,21))

image