Skip to content

Commit

Permalink
Update calibration handler for GOCI2
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrp84 committed May 3, 2024
1 parent f111bf4 commit 6527d45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions satpy/readers/goci2_l1_nc.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ def get_dataset(self, key, info):

# If required, convert raw radiances to reflectance
if "calibration" in key:
if key["calibration"] == "reflectance":
if key["calibration"].name == "reflectance":
variable = self._calibrate(variable, info["name"])
elif key["calibration"] != "radiance":
raise ValueError(f"Calibration type {key["calibration"]} not supported.")
elif key["calibration"].name != "radiance":
raise ValueError(f"Calibration type {key["calibration"].name} not supported.")

variable.attrs.update(key.to_dict())

Expand Down

0 comments on commit 6527d45

Please sign in to comment.