Skip to content

Commit

Permalink
Update FibLandGrid
Browse files Browse the repository at this point in the history
  • Loading branch information
sebhahn committed Nov 10, 2021
1 parent fc917e0 commit d66405c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/fibgrid/realization.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,8 @@ def __init__(self, res, geodatum='WGS84'):

lon, lat, cell, gpi, self.metadata = read_grid_file(
n, geodatum=geodatum)
super().__init__(lon, lat, cell, gpi, geodatum=geodatum)

subset = np.nonzero((self.metadata['land_mask_hw'] > 50) &
(self.metadata['land_mask_fw'] > 50))[0]

super().__init__(lon, lat, cell, gpi, subset=subset, geodatum=geodatum)

0 comments on commit d66405c

Please sign in to comment.