UFS_plot_domains module

This script generates a plot of the ESG grid and the write component grid. To use this script, modify the ESG grid and write component grid parameters in this script manually to reflect the configuration of the grids you wish to plot. Then run the script.

get_lambert_points(gnomonic_map, lambert_map, pps)

This function takes the lambert domain we have defined, lambert_map, and pps, and returns an array of two lists: one a list of tuples of the 4*ppf + 4 vertices mapping the approximate shape of the lambert domain on the gnomonic map, the other a list of “draw” instructions to be used by the PathPatch function.

Start array with bottom left point, “MOVETO” instruction

Parameters:
  • gnomonic_map (Basemap) – A map of the ESG grid

  • lambert_map (Basemap) – A map of the write component grid

  • pps – The number of points to interpolate and draw for each side of the lambert “rectangle.” It is recommended to set to 10 or less due to time of calculation.

Returns:

vertices, instructions – A tuple of two lists—a list of tuples of the 4*ppf + 4 vertices mapping the approximate shape of the lambert domain on the gnomonic map, the other a list of “draw” instructions to be used by the PathPatch function.