LatLon#

class mhm_tools.pre.create_mhm_restart_file.LatLon(lat_min=None, lon_min=None, lat_max=None, lon_max=None, resolution=None, mask=None)[source]#

Bases: object

Represents a latitude-longitude coordinate system.

Variables:
  • (float) (resolution)

  • (float)

  • (float)

  • (float)

  • (float)

Methods

get_n_lat()

Return the number of latitude points for the range and resolution.

get_n_lon()

Return the number of longitude points for the range and resolution.

is_fully_defined()

Check if all the required attributes are fully defined.

get_n_lat()[source]#

Return the number of latitude points for the range and resolution.

Returns:

int

Return type:

The number of latitude points.

get_n_lon()[source]#

Return the number of longitude points for the range and resolution.

Returns:

Number of longitude points.

Return type:

int

is_fully_defined()[source]#

Check if all the required attributes are fully defined.

Returns:

bool

Return type:

True if all the required attributes are not None, False otherwise.