Skip to content

Commit

Permalink
Fix type annotation in crefl function
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed Oct 26, 2023
1 parent 5d6a106 commit be120d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion satpy/modifiers/_crefl_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def __call__(self, sensor_azimuth, sensor_zenith, solar_azimuth, solar_zenith, a
def _run_crefl(self, mus, muv, phi, solar_zenith, sensor_zenith, height, coeffs):
raise NotImplementedError()

def _height_from_avg_elevation(self, avg_elevation: Optional[np.ndarray]) -> da.Array:
def _height_from_avg_elevation(self, avg_elevation: Optional[np.ndarray]) -> da.Array | float:
"""Get digital elevation map data for our granule with ocean fill value set to 0."""
if avg_elevation is None:
LOG.debug("No average elevation information provided in CREFL")
Expand Down

0 comments on commit be120d9

Please sign in to comment.