Ocean

public enum Ocean

Color scales adapted from cmocean project.

Sequential

  • The thermal colormap is sequential with dark blue representing lower, cooler values and transitioning through reds to yellow representing increased warmer values.

    Declaration

    Swift

    public static let thermal: ColorScale
  • The haline colormap is sequential, and might be used with dark blue representing lower salinity or fresher water, transitioning through greens to light yellow representing increased salinity or saltier water. This colormap is based on matplotlibs YlGnBu, but was recreated from scratch using the viscm tool.

    Declaration

    Swift

    public static let haline: ColorScale
  • The solar colormap is sequential from dark brown for low values to increasingly bright yellow to potentially represent an increase in radiation in the water.

    Declaration

    Swift

    public static let solar: ColorScale
  • ice

    The ice colormap is sequential from very dark blue (almost black) to very light blue (almost white). A use for this could be representations of sea ice.

    Declaration

    Swift

    public static let ice: ColorScale
  • The gray colormap is sequential from black to white, with uniform steps through perceptual colorspace. This colormap is generic to be used for any sequential dataset.

    Declaration

    Swift

    public static let gray: ColorScale
  • oxy

    The oxy colormap is sequential for most of the colormap, representing the normal range of oxygen saturation in ocean water, and diverging 80% of the way into the colormap to represent a state of supersaturation. The bottom 20% of the colormap is colored reddish to highlight hypoxic or low oxygen water, but to still print relatively seamlessly into grayscale in case the red hue is not important for an application. The top 20% of the colormap, after the divergence, is colored yellow to highlight the supersaturated water. The minimum and maximum values of this colormap are meant to be controlled in order to properly place the low oxygen and supersaturated oxygen states properly. This colormap was developed for the Mississippi river plume area where both low and supersaturated conditions are regularly seen and monitored.

    Declaration

    Swift

    public static let oxy: ColorScale
  • The deep colormap is sequential from light yellow to potentially represent shallower water through pale green to increasingly dark blue and purple to represent increasing depth.

    Declaration

    Swift

    public static let deep: ColorScale
  • The dense colormap is sequential with whitish-blue for low values and increasing in purple with increasing value, which could be used to represent an increase in water density. Two examples of this colormap are shown below, from Texas A&M University gliders. This colormap is based on matplotlibs Purples, but was recreated from scratch using the viscm tool.

    Declaration

    Swift

    public static let dense: ColorScale
  • The algae colormap is sequential with whitish-green for low values and increasing in green with increasing value, which could be used to represent an increase in chlorophyll in the water. Two examples of this colormap are shown below, from Texas A&M University gliders. This colormap is based on matplotlibs Greens, but was recreated from scratch using the viscm tool.

    Declaration

    Swift

    public static let algae: ColorScale
  • The matter colormap is sequential with whitish-yellow for low values and increasing in pink with increasing value, and could be used to represent an increase in material in the water. Two examples of this colormap are shown below, from Texas A&M University gliders.

    Declaration

    Swift

    public static let matter: ColorScale
  • The turbid colormap is sequential from light to dark brown and could be used to represent an increase in sediment in the water.

    Declaration

    Swift

    public static let turbid: ColorScale
  • The speed colormap is sequential from light greenish yellow representing low values to dark yellowish green representing large values. This colormap is the positive half of the delta colormap. An example of this colormap is from a numerical simulation of the Texas and Louisiana shelf.

    Declaration

    Swift

    public static let speed: ColorScale
  • amp

    The amp colormap is sequential from whitish to dark red and could be used to represent an increase in wave height values. This colormap is the positive half of the balance colormap.

    Declaration

    Swift

    public static let amp: ColorScale
  • The tempo colormap is sequential from whitish to dark teal and could be used to represent an increase in wave period values. This colormap is the negative half of the curl colormap.

    Declaration

    Swift

    public static let tempo: ColorScale
  • The rain colormap is sequential from light, dry colors to blue, wet colors, and could be used to plot amounts of rainfall.

    Declaration

    Swift

    public static let rain: ColorScale
  • The phase colormap is circular, spanning all hues at a set lightness value. This map is intended to be used for properties such as wave phase and tidal phase which wrap around from 0˚ to 360˚ to 0˚ and should be represented without major perceptual jumps in the colormap.

    Declaration

    Swift

    public static let phase: ColorScale

Diverging

  • The topo colormap has two distinct parts: one that is shades of blue and yellow to represent water depths (this is the deep colormap) and one that is shades of browns and greens to represent land elevation.

    Declaration

    Swift

    public static let topo: ColorScale
  • The balance colormap is diverging with dark blue to off-white to dark red representing negative to zero to positive values; this could be used to represent sea surface elevation, with deviations in the surface elevations as shades of color away from neutral off-white. In this case, shades of red have been chosen to represent sea surface elevation above the reference value (often mean sea level) to connect with warmer water typically being associated with an increase in the free surface, such as with the Loop Current in the Gulf of Mexico. An example of this colormap is from a numerical simulation of the Texas and Louisiana shelf. This colormap is based on matplotlibs RdBu, but was recreated from scratch using the viscm tool.

    Declaration

    Swift

    public static let balance: ColorScale
  • The delta colormap is diverging from darker blues to just off-white through shades of yellow green and could be used to represent diverging velocity values around a critical value (usually zero). This colormap was inspired by Francesca Samsels similar colormap, but generated from scratch using the viscm tool.

    Declaration

    Swift

    public static let delta: ColorScale
  • The curl colormap is diverging from darker teal to just off-white through shades of magenta and could be used to represent diverging vorticity values around a critical value (usually zero).

    Declaration

    Swift

    public static let curl: ColorScale
  • The diff colormap is diverging, with one side shades of blues and one side shades of browns.

    Declaration

    Swift

    public static let diff: ColorScale
  • The tarn colormap is diverging, with one side dry shades of browns and the other a range of greens and blues. The positive end of the colormap is meant to reflect the colors in rain and thus be a complementary colormap to rain for rain anomaly (around 0 or some other critical value).

    Declaration

    Swift

    public static let tarn: ColorScale
  • Creates a figure that shows all Ocean color scales next to each other.

    Declaration

    Swift

    public static func swatch() -> Figure