plate_carree_zeroright_sampler

toasty.samplers.plate_carree_zeroright_sampler(data)[source]

Create a sampler function for data in a “plate carrée” projection where the longitude=0 line is on the right edge of the image.

This is the same as plate_carree_sampler(), except that line of zero longitude is at the right edge of the image, not its center.

Parameters:
dataarray-like, at least 2D

The map to sample in plate carrée projection.

Returns:
A function that samples the image; the call signature is
vec2pix(lon, lat) -> data, where the inputs and output are 2D arrays
and lon and lat are in radians.