Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
eliascarv committed Dec 17, 2024
1 parent 21b59fe commit 344518a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/src/transforms.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,10 @@ using CoordRefSystems: LatLon
grid = RegularGrid(Point(LatLon(-90, -180)), Point(LatLon(90, 180)), dims=(10, 10))
# retains only the elements in the projection domain
grid |> InDomain(Mercator)
subgrid = grid |> InDomain(Mercator)
# plot the projected grid
viz(subgrid |> Proj(Mercator), showsegments=true)
```

## Morphological
Expand Down
2 changes: 2 additions & 0 deletions src/transforms/proj.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ applycoord(t::Proj, g::RectilinearGrid) = TransformedGrid(g, t)

applycoord(t::Proj, g::StructuredGrid) = TransformedGrid(g, t)

applycoord(t::Proj, d::SubDomain) = TransformedDomain(d, t)

# -----------
# IO METHODS
# -----------
Expand Down

0 comments on commit 344518a

Please sign in to comment.