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

initial changes to plot HFIP products. #241

Merged
merged 1 commit into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion adb_graphics/datahandler/gribdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ def corners(self) -> list:
'''

lat, lon = self.latlons()
if self.model in ['global', 'obs']:
if self.model in ['global', 'hfip', 'obs']:
ret = [lat[-1], lat[0], lon[0], lon[-1]]
else:
ret = [lat[0, 0], lat[-1, -1], lon[0, 0], lon[-1, -1]]
Expand Down
5 changes: 3 additions & 2 deletions adb_graphics/figures/maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
'GreatLakes': {'corners': [37, 50, -96, -70], 'stride': 10, 'length': 4},
'HI': {'corners': [16.6, 24.6, -157.6, -157.5], 'stride': 1, 'length': 4},
'HI-zoom': {'corners': None, 'width': 800000, 'height': 800000, 'stride': 4, 'length': 4},
'HFIP': {'corners': [8.35, 51.6, 244., 336.], 'stride': 30, 'length': 4},
'Hurr-Car': {'corners': [21, 28, -96, -69], 'stride': 10, 'length': 4},
'Juneau': {'corners': [55.741, 59.629, -140.247, -129.274], 'stride': 4, 'length': 4},
'NW-large': {'corners': [29.5787, 52.6127, -121.666, -96.5617], 'stride': 15, 'length': 4},
Expand Down Expand Up @@ -158,7 +159,7 @@ def boundaries(self):
zorder=2,
)
else:
if self.model not in ['global'] and self.tile not in FULL_TILES:
if self.model not in ['global', 'hfip'] and self.tile not in FULL_TILES:
self.m.drawcounties(antialiased=False,
color='gray',
linewidth=0.1,
Expand Down Expand Up @@ -488,7 +489,7 @@ def _draw_field(self, ax, field, func, **kwargs):

# For global lat-lon models, make 2D arrays for x and y
# Shift the map and data if needed
if self.map.model in ['global']:
if self.map.model in ['global', 'hfip']:
tile = self.map.tile
if tile in ['Africa', 'Europe']:
vals, x = shiftgrid(180., vals, x, start=False)
Expand Down
Loading