pvtend.crop_contour_to_patch
- pvtend.crop_contour_to_patch(contour: dict, centre_lat: float, centre_lon: float, half_dlat: float = 21.0, half_dlon: float = 36.0) dict | None[source]
Crop a circumpolar contour to an event-centred patch, returning relative coordinates (Δlon, Δlat).
- Parameters:
contour – Dict with ‘lev’, ‘lon’, ‘lat’ from
circumpolar_contours.centre_lat – Patch centre in geographic coords.
centre_lon – Patch centre in geographic coords.
half_dlat – Half-extents of patch (degrees).
half_dlon – Half-extents of patch (degrees).
- Returns:
Dict
{'lev', 'x', 'y'}in relative coordinates, or None if too few points survive the crop (< 10).