From 411734e327998bb0c156073f7221e4fa23f6f42a Mon Sep 17 00:00:00 2001 From: Lionel GUEZ <guez@lmd.ens.fr> Date: Fri, 21 Apr 2023 18:06:50 +0200 Subject: [PATCH] Polish --- Inst_eddies/Analysis/plot_velocity.py | 8 ++++---- README.md | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Inst_eddies/Analysis/plot_velocity.py b/Inst_eddies/Analysis/plot_velocity.py index f0eb401b..c5a71d1d 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 1625be42..1c008038 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 \ -- GitLab