xee.extract_grid_params

xee.extract_grid_params(ee_obj)

Return native pixel grid parameters for an EE Image or ImageCollection.

For an ImageCollection, the first image’s first band’s grid definition is used. This matches Earth Engine’s internal representation and lets you “match source grid” without having to inspect projection metadata manually.

Parameters:

ee_obj (Image | ImageCollection) – ee.Image or ee.ImageCollection instance.

Returns:

PixelGridParams mapping the native CRS, transform, and dimensions.

Raises:

TypeError – If ee_obj is not a supported EE type.

Return type:

PixelGridParams