Skip to content

Commit

Permalink
Merge pull request #1048 from PCMDI/405_sic_ao
Browse files Browse the repository at this point in the history
Remove warnings from sea ice metrics
  • Loading branch information
acordonez authored Feb 2, 2024
2 parents 5627dda + f0756bb commit 313f272
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 113 deletions.
153 changes: 41 additions & 112 deletions doc/jupyter/Demo/Demo_9_seaIceExtent_ivanova.ipynb

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions doc/jupyter/Demo/sea_ice_line_plots.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import logging

import cftime
import matplotlib.pyplot as plt
import xarray as xr
import xcdat as xc

logging.getLogger("xcdat").setLevel(logging.ERROR)

# Load data -- model

ds = xc.open_mfdataset(
Expand Down
4 changes: 4 additions & 0 deletions doc/jupyter/Demo/sea_ice_sector_plots.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import logging

import cartopy.crs as ccrs
import matplotlib.colors as colors
import matplotlib.pyplot as plt
Expand All @@ -7,6 +9,8 @@

from pcmdi_metrics.utils import create_land_sea_mask

logging.getLogger("xcdat").setLevel(logging.ERROR)

# ----------
# Arctic
# ----------
Expand Down
4 changes: 3 additions & 1 deletion pcmdi_metrics/sea_ice/sea_ice_driver.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python

import datetime
import glob
import json
import logging
import os
import sys

Expand Down Expand Up @@ -397,6 +397,8 @@ def get_xy_coords(ds, xvar):


if __name__ == "__main__":
logging.getLogger("xcdat").setLevel(logging.ERROR)

parser = create_sea_ice_parser()
parameter = parser.get_parameter(argparse_vals_only=False)

Expand Down

0 comments on commit 313f272

Please sign in to comment.