diff --git a/Inst_eddies/Analysis/plot_velocity.py b/Inst_eddies/Analysis/plot_velocity.py index f0eb401b6624a32181392391d7e8beed21716693..c5a71d1d7f1ca271c91523f6624bca6161b20af7 100755 --- a/Inst_eddies/Analysis/plot_velocity.py +++ b/Inst_eddies/Analysis/plot_velocity.py @@ -32,7 +32,10 @@ with netCDF4.Dataset(args.input_file) as f: longitude = f[lon][:] latitude = f[lat][:] -if args.window is not None: +if args.window is None: + lon_mask = np.ones(len(longitude), dtype = bool) + lat_mask = np.ones(len(latitude), dtype = bool) +else: llcrnrlon, llcrnrlat, urcrnrlon, urcrnrlat = args.window if urcrnrlon - llcrnrlon > 360: @@ -44,9 +47,6 @@ if args.window is not None: lon_mask = longitude <= urcrnrlon lat_mask = np.logical_and(latitude >= llcrnrlat, latitude <= urcrnrlat) -else: - lon_mask = np.ones(len(longitude), dtype = bool) - lat_mask = np.ones(len(latitude), dtype = bool) fig = plt.figure() src_crs = ccrs.PlateCarree() diff --git a/README.md b/README.md index 1625be4282863b473a12eb5449e87bbf85585411..1c0080387324d5b35d7870703e7c49266cd84020 100644 --- a/README.md +++ b/README.md @@ -7,10 +7,10 @@ This code implements ideas and methods described in the following articles: Dependencies: graph-tool networkx pyshp f90nml cartopy pygifsicle ipython h5py pynco pygraphviz -If your operating system is Ubuntu 22.04 or more recent and you do not -have an account on the Gitlab server of IN2P3, the certificate used by -Gitlab will not be accepted by your machine. Therefore you need to -deactivate SSL verification when contacting Gitlab: +If your operating system is Ubuntu 22.04 or more recent, the +certificate used by Gitlab will not be accepted by your +machine. Therefore you need to deactivate SSL verification when +contacting Gitlab: ``` $ GIT_SSL_NO_VERIFY=true git clone --recurse-submodules \