Skip to content

Commit

Permalink
fields without mars labelling
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Jun 1, 2024
1 parent 92592b4 commit dd9a374
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/climetlab/readers/grib/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ def write(
for k in NOT_IN_EDITION_1:
metadata.pop(k, None)

if int(metadata.get("deleteLocalDefinition", 0)):
for k in ("class", "type", "stream", "expver", "setLocalDefinition"):
metadata.pop(k, None)

LOG.debug("GribOutput.metadata %s", metadata)

for k, v in metadata.items():
Expand Down
3 changes: 1 addition & 2 deletions src/climetlab/sources/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import datetime
import itertools
import logging
from warnings import warn

import numpy as np

Expand Down Expand Up @@ -153,7 +152,7 @@ def sin_local_time(self, date):
return np.sin(radians)

def insolation(self, date):
warn("The function `insolation` is deprecated, please use `cos_solar_zenith_angle` instead")
# warn("The function `insolation` is deprecated, please use `cos_solar_zenith_angle` instead")
return self.cos_solar_zenith_angle(date)

def toa_incident_solar_radiation(self, date):
Expand Down

0 comments on commit dd9a374

Please sign in to comment.