Hello,
I've also just hit another related problem.
I found this using two different cubes now...
I'm trying to use .intersection like so:
obs_reg_tmp = obs.intersection(longitude=[-170.,180.],latitude=[0.,90.])
*** ValueError: The bounds array must be strictly monotonic.
Through trial-and-error I've identified the "longitude" coordinate as the problem.
However, to my mind the bounds array for the coordinate is perfectly "monotonic":
print obs.coord('longitude')
DimCoord(array([-177.5, -172.5, -167.5, -162.5, -157.5, -152.5, -147.5, -142.5,
-137.5, -132.5, -127.5, -122.5, -117.5, -112.5, -107.5, -102.5,
-97.5, -92.5, -87.5, -82.5, -77.5, -72.5, -67.5, -62.5,
-57.5, -52.5, -47.5, -42.5, -37.5, -32.5, -27.5, -22.5,
-17.5, -12.5, -7.5, -2.5, 2.5, 7.5, 12.5, 17.5,
22.5, 27.5, 32.5, 37.5, 42.5, 47.5, 52.5, 57.5,
62.5, 67.5, 72.5, 77.5, 82.5, 87.5, 92.5, 97.5,
102.5, 107.5, 112.5, 117.5, 122.5, 127.5, 132.5, 137.5,
142.5, 147.5, 152.5, 157.5, 162.5, 167.5, 172.5, 177.5], dtype=float32), bounds=array([[-180., -175.],
[-175., -170.],
[-170., -165.],
[-165., -160.],
[-160., -155.],
[-155., -150.],
[-150., -145.],
[-145., -140.],
[-140., -135.],
[-135., -130.],
[-130., -125.],
[-125., -120.],
[-120., -115.],
[-115., -110.],
[-110., -105.],
[-105., -100.],
[-100., -95.],
[ -95., -90.],
[ -90., -85.],
[ -85., -80.],
[ -80., -75.],
[ -75., -70.],
[ -70., -65.],
[ -65., -60.],
[ -60., -55.],
[ -55., -50.],
[ -50., -45.],
[ -45., -40.],
[ -40., -35.],
[ -35., -30.],
[ -30., -25.],
[ -25., -20.],
[ -20., -15.],
[ -15., -10.],
[ -10., -5.],
[ -5., 0.],
[ 0., 5.],
[ 5., 10.],
[ 10., 15.],
[ 15., 20.],
[ 20., 25.],
[ 25., 30.],
[ 30., 35.],
[ 35., 40.],
[ 40., 45.],
[ 45., 50.],
[ 50., 55.],
[ 55., 60.],
[ 60., 65.],
[ 65., 70.],
[ 70., 75.],
[ 75., 80.],
[ 80., 85.],
[ 85., 90.],
[ 90., 95.],
[ 95., 100.],
[ 100., 105.],
[ 105., 110.],
[ 110., 115.],
[ 115., 120.],
[ 120., 125.],
[ 125., 130.],
[ 130., 135.],
[ 135., 140.],
[ 140., 145.],
[ 145., 150.],
[ 150., 155.],
[ 155., 160.],
[ 160., 165.],
[ 165., 170.],
[ 170., 175.],
[ 175., 180.]], dtype=float32), standard_name='longitude', units=Unit('degrees'), coord_system=GeogCS(6371229.0), circular=True)
I hope that someone can tell me what I'm doing wrong, or whether this is a bug in the .intersection code?
Thanks,
Nick