From a051d54419688d095a89ee24cc7cc8f536e4deca Mon Sep 17 00:00:00 2001 From: Lee de Mora Date: Fri, 11 Jun 2021 15:26:13 +0100 Subject: [PATCH] Update _volume.py A minor edit to bextract_trajectory, where the latitude and longitude interface was backwards. --- esmvalcore/preprocessor/_volume.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esmvalcore/preprocessor/_volume.py b/esmvalcore/preprocessor/_volume.py index 27182081be..424eabe0f8 100644 --- a/esmvalcore/preprocessor/_volume.py +++ b/esmvalcore/preprocessor/_volume.py @@ -463,8 +463,8 @@ def extract_trajectory(cube, latitudes, longitudes, number_points=2): minlat, maxlat = np.min(latitudes), np.max(latitudes) minlon, maxlon = np.min(longitudes), np.max(longitudes) - longitudes = np.linspace(minlat, maxlat, num=number_points) - latitudes = np.linspace(minlon, maxlon, num=number_points) + longitudes = np.linspace(minlon, maxlon, num=number_points) + latitudes = np.linspace(minlat, maxlat, num=number_points) points = [('latitude', latitudes), ('longitude', longitudes)] interpolated_cube = interpolate(cube, points) # Very slow!