1616
1717# pylint: disable=import-error
1818import cartopy .crs as ccrs
19+ # pylint: disable=import-error, disable=no-name-in-module
20+ import copernicusmarine
1921import matplotlib .pyplot as plt
2022import numpy as np
21-
2223# pylint: disable=import-error
2324from cartopy .mpl import gridliner
2425from matplotlib import ticker
2526from matplotlib .collections import LineCollection
2627from matplotlib .colors import ListedColormap
27-
28- # pylint: disable=import-error, disable=no-name-in-module
29- import copernicusmarine
3028from opendrift .models .leeway import Leeway
3129from opendrift .readers import reader_global_landmask
3230from opendrift .readers .reader_netCDF_CF_generic import Reader
@@ -108,7 +106,9 @@ def main():
108106 readers = []
109107 for dataset_id in cmems_dataset_ids :
110108 try :
111- ds = copernicusmarine .open_dataset (dataset_id = dataset_id , chunk_size_limit = 0 )
109+ ds = copernicusmarine .open_dataset (
110+ dataset_id = dataset_id , chunk_size_limit = 0
111+ )
112112 print (f"Opened { dataset_id } :" )
113113 print (ds )
114114 except Exception as exc :
@@ -117,7 +117,7 @@ def main():
117117 readers .append (Reader (ds , name = dataset_id ))
118118 simulation .add_reader (readers )
119119 sources = [
120- "https://pae-paha.pacioos.hawaii.edu/thredds/dodsC/ncep_global/NCEP_Global_Atmospheric_Model_best.ncd" ,
120+ "https://pae-paha.pacioos.hawaii.edu/thredds/dodsC/ncep_global/NCEP_Global_Atmospheric_Model_best.ncd"
121121 ]
122122 simulation .add_readers_from_list (sources , lazy = False )
123123
0 commit comments