plate_carree_planet_sampler

toasty.samplers.plate_carree_planet_sampler(data)[source]

Create a sampler function for planetary data in a “plate carrée” projection.

This is the same as plate_carree_sampler(), except that the X axis is mirrored: longitude increases to the right. This is generally what is desired for planetary surface maps (looking at a sphere from the outside) instead of sky maps (looking at a sphere from the inside).

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.