Skip to content

Commit

Permalink
initial changes to plot HFIP products.
Browse files Browse the repository at this point in the history
  • Loading branch information
cshartsough committed Jul 7, 2024
1 parent 0244ee8 commit 8a45443
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
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

0 comments on commit 8a45443

Please sign in to comment.