epygram.fields — Fields

Contains all fields classes.


epygram.fields.gimme_one_point(longitude, latitude, field_args=None, geometry_args=None, vertical_geometry_args=None, geometry_class=<class 'epygram.geometries.UnstructuredGeometry.UnstructuredGeometry'>)[source]

Builds an empty PointField at given (longitude, latitude).

Parameters
  • field_args – to be passed to field constructor, e.g. a validity

  • geometry_args – to be passed to geometry constructor

  • vertical_geometry_args – to be passed to vertical_geometry constructor

  • geometry_class – geometry class tu use (default: UnstructuredGeometry)


epygram.fields.make_vector_field(*components)[source]

Creates a new epygram.D3VectorField or subclass from several epygram.D3Field or subclass representing the components of the vector in the field geometry.


epygram.fields.psikhi2uv(psi, khi)[source]

Compute wind (on the grid) as a D3VectorField (or subclass) from streamfunction psi and velocity potential khi.