Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove warnings from sea ice metrics #1048

Merged
merged 5 commits into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading