processing.select.convert_geo_to_rot#

convert_geo_to_rot(coord: tuple, ds: Dataset)[source]#

Converts a geographic (longitude, latitude) point to a rotated pole (rlon, rlat) point.

Parameters:
  • coord (list or tuple) – Geographic coordinates as a (longitude, latitude) pair in degrees.

  • ds (xarray.Dataset) – The input dataset containing the rotated pole grid information (e.g., from a COSMO-CLM file).

Returns:

The corresponding rotated pole coordinates as [rlon, rlat] in degrees.

Return type:

list