Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow real-world co-ordinates to be specified in single-point timeseries. #943

Merged
merged 9 commits into from
Feb 10, 2025
14 changes: 7 additions & 7 deletions src/CSET/operators/regrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ def regrid_to_single_point(
cube: iris.cube.Cube,
lat_pt: float,
lon_pt: float,
latlon_in_type: str,
method: str,
latlon_in_type: str = "rotated",
method: str = "Nearest",
boundary_margin: int = 8,
**kwargs,
) -> iris.cube.Cube:
Expand Down Expand Up @@ -331,16 +331,16 @@ def regrid_to_single_point(


def transform_lat_long_points(lon, lat, cube):
"""Transform a selected point in longitude and latitude in ...
"""Transform a selected point in longitude and latitude.

the real world to the corresponding point on the rotated grid
of a cube.
Transform the coordinates of a point from the real world
grid to the corresponding point on the rotated grid of a cube.

Parameters
----------
cube: Cube
An iris cube of the data to regrid. As a minimum, it needs to be 2D with
latitude, longitude coordinates.
An iris cube of data defining the rotated grid to be used in
the longitude-latitude transformation.
jfrost-mo marked this conversation as resolved.
Show resolved Hide resolved
lon: float
Selected value of longitude: this should be in the range -180 degrees to
180 degrees.
Expand Down