diff --git a/cset-workflow/meta/rose-meta.conf b/cset-workflow/meta/rose-meta.conf index a4e2f10ed..4ab88093b 100644 --- a/cset-workflow/meta/rose-meta.conf +++ b/cset-workflow/meta/rose-meta.conf @@ -419,8 +419,8 @@ help=This functionality extracts data for each variable defined in CS_VARS, such as transects through valleys, or through a front as it passes through. type=python_boolean trigger=template variables=CS_STARTCOORDS: True; -trigger=template variables=CS_FINISHCOORDS: True; -trigger=template variables=CS_VARS: True; + template variables=CS_FINISHCOORDS: True; + template variables=CS_VARS: True; compulsory=true sort-key=cs1 diff --git a/cset-workflow/rose-suite.conf.example b/cset-workflow/rose-suite.conf.example index 53cbec68c..4dbd1b651 100644 --- a/cset-workflow/rose-suite.conf.example +++ b/cset-workflow/rose-suite.conf.example @@ -21,6 +21,9 @@ CSET_INPUT_FILE_PATH="" CSET_LOCAL_CSET_PATH="$HOME/CSET" CSET_RUNAHEAD_LIMIT=10 !!CSET_TIMES_PER_FILE=0 +CS_FINISHCOORDS="" +CS_STARTCOORDS="" +CS_VARS="" DB_LONG_JOB=False DETERMINISTIC_PLOT_AGGREGATE_PRECIPITATION=False DETERMINISTIC_PLOT_CAPE_RATIO=False @@ -34,6 +37,7 @@ DOMAIN_MEAN_VERTICAL_PROFILE_MODELLEVEL_SERIES=False DOMAIN_MEAN_VERTICAL_PROFILE_SERIES=False DOMAIN_SURFACE_HISTOGRAM_SERIES_FIELD=False ENSEMBLE_PLOT_SURFACE_AIR_TEMP=False +EXTRACT_TRANSECT=False FETCH_FCST_OPT_CONF="filesystem" HOUSEKEEPING_MODE=2 LFRIC_DOMAIN_MEAN_SURFACE_TIME_SERIES=False diff --git a/src/CSET/operators/transect.py b/src/CSET/operators/transect.py index 5746e75c5..e38fe2e75 100644 --- a/src/CSET/operators/transect.py +++ b/src/CSET/operators/transect.py @@ -94,8 +94,8 @@ def calc_transect(cube: iris.cube.Cube, startcoords: tuple, endcoords: tuple): ) # Compute minimum gap between x/y spatial coords. - lon_min = np.min(lon_coord.points[1:] - lon_coord.points[:-1]) - lat_min = np.min(lat_coord.points[1:] - lat_coord.points[:-1]) + lon_min = np.abs(np.min(lon_coord.points[1:] - lon_coord.points[:-1])) + lat_min = np.abs(np.min(lat_coord.points[1:] - lat_coord.points[:-1])) # For scenarios where coord is at 90 degree to the grid (i.e. no # latitude/longitude change). Only xmin or ymin will be zero, not both