plate_carree_planet_zeroleft_sampler

toasty.samplers.plate_carree_planet_zeroleft_sampler(data)[source]

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

This is the same as plate_carree_planet_sampler(), except that line of zero longitude is at the left edge of the image, not its center. Longitude still increases to the right, unlike plate_carree_sampler() or plate_carree_zeroright_sampler(). Some planetary maps use this convention.

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.