satpy.coords module

Utility functions for coordinates.

satpy.coords._add_crs(area, data_arr)[source]
satpy.coords._check_crs_units(crs, x_attrs, y_attrs)[source]
satpy.coords.add_crs_xy_coords(data_arr, area)[source]

Add pyproj.crs.CRS and x/y or lons/lats to coordinates.

For SwathDefinition or GridDefinition areas this will add a crs coordinate and coordinates for the 2D arrays of lons and lats.

For AreaDefinition areas this will add a crs coordinate and the 1-dimensional x and y coordinate variables.

Parameters:
satpy.coords.add_xy_coords(data_arr, area, crs=None)[source]

Assign x/y coordinates to DataArray from provided area.

If ‘x’ and ‘y’ coordinates already exist then they will not be added.

Parameters:

Returns (xarray.DataArray): Updated DataArray object