Skip to content

Commit

Permalink
utils.py:pick_cell is required in the prepare_orog notebook
Browse files Browse the repository at this point in the history
removed it from deprecated status; added comments
  • Loading branch information
ray-chew committed May 14, 2024
1 parent 6f8171d commit c1a8739
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,23 @@ def pick_cell(
grid,
radius=1.0,
):
"""
.. deprecated:: 0.90.0
"""pick an ICON grid cell given (lon,lat) coorindates
Parameters
----------
lat_ref : float
reference latitude coordinate in the cell to be picked
lon_ref : float
reference longitude coordinate in the cell to be picked
grid : class:`src.var.grid`
instance of an ICON grid
radius : float, optional
radius from `(lon_ref, lat_ref)` to search for `(clon,clat)`, by default 1.0
Returns
-------
_type_
_description_
"""
clat, clon = grid.clat, grid.clon
index = np.nonzero(
Expand Down

0 comments on commit c1a8739

Please sign in to comment.