lagrangian.MapProperties

class lagrangian.MapProperties

Bases: pybind11_builtins.pybind11_object

Properties of a regular grid

__init__(self: lagrangian.core.MapProperties, nx: int, ny: int, x_min: float, y_min: float, step: float) → None

Default constructor

Parameters
  • nx (int) – Number of longitudes

  • ny (int) – Number of latitudes

  • x_min (float) – Minimal longitude

  • y_min (float) – Minimal latitude

  • step (float) – Step between two consecutive longitudes and latitudes

Methods

MapProperties.x_axis(self)

Gets the x-axis values

MapProperties.y_axis(self)

Gets the y-axis values

Attributes

MapProperties.nx

Number of longitudes in the grid

MapProperties.ny

Number of latitudes in the grid

MapProperties.step

Step between two consecutive longitudes and latitudes

MapProperties.x_min

Minimal longitude

MapProperties.y_min

Minimal latitude