74 questions
2
votes
1
answer
54
views
Remove whitespace when saving matplotlib colormesh with a colorbar using iris
I am creating a 2D colourmesh plot from an iris cube with the following code
import iris
import iris.plot as iplt
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
NPS = ccrs....
0
votes
1
answer
191
views
How to extend colorbar using iris quick plot
Below is the code block I'm using. I'd like to extend the ends of the color bar. With
extend='both'.
I can't find an ideal location that works.
import matplotlib.colors as mcolors
import iris.plot as ...
0
votes
0
answers
57
views
How can I create a boxplot using iqplot with a list of cubes in python-iris?
I got a list of cubes and I would like to build Boxplot using python-iris.
I loaded all files and I try using matplotlib...
hadgem2 = iris.load_cube(CLIMDIR + '/prec_EN-22_HadGEM2-ES_aml_ts_init:2040-...
0
votes
0
answers
954
views
How to solve dead kernel on Jupyter?
I am trying to import Cube from iris.cube:
from iris.cube import Cube
but I keep receiving the message
The kernel appears to have died. It will restart automatically.
The same happens when I try to ...
0
votes
1
answer
396
views
How to apply custom calculation between two IRIS cubes (GRIB files)? Considering also using xarray
I am trying to do some calculation between two iris cubes (GRIB files), here it is what I'm trying to achieve:
First cube:
ERA5-Land dataset, downloaded from official site via cdsapi API routine, ...
0
votes
0
answers
535
views
pip install scitools-iris error in subprocess (getting requirements to build wheel)
When I was trying to install scitools-iris, I received an error saying "Getting requirements to build wheel did not run successfully." I followed the installation directions in https://...
0
votes
1
answer
156
views
Control vmin and vmax in Iris 'animate'?
Does anyone know how (if?) I can control the vmin and vmax of an Iris quickplot pcolormesh animation using iris.experimental.animate.animate?
wind = iris.load_cube('/my/pp/file')
cube_iter = wind....
1
vote
1
answer
695
views
How to convert auxiliary coordinates to dimension coordinates in a cube in iris?
I am pretty new to using NetCDF Jules output files. I am trying to write a routine to create multiple plots visualising the output from my simulations.
After reading in the cubes I have the following ...
0
votes
0
answers
109
views
CMIP ocean model data not loading properly into python iris?
I am trying to understand why the following CMIP ocean model data file does not appear to load properly into iris. My understanding is that the variables for latitude and longitude should be mapped to ...
0
votes
1
answer
90
views
Group_by in iris using mean calculation
Is there a similar function at iris to cf_xarray resample using mean?
dataset.cf.resample(T="Y").mean()
1
vote
1
answer
1k
views
Udunits2 installation in python
I am working on some climate data simulations for which I need conservative remapping algorithm. This algorithm is available in cf-python library. But cf python requires udunits2 package as one of its ...
1
vote
1
answer
865
views
Regridding from one irregular lat lon grid to another irregular lat lon grid
I have two sets of satellite data. For both sets, I have the pixel geometry (latitude and longitude of each corner of the pixel). I would like to regrid one set to the other. Thus, my goal is area-...
1
vote
1
answer
683
views
Can you download SciTools Iris package on google colab?
I am trying to download the SciTools Iris package in Google Colab. I first use pip install, like so:
!pip install scitools-iris
And then import iris with:
import iris
however, this returns the error ...
0
votes
1
answer
98
views
How to insert line function (x=) onto iris data cube graph without changing axis scale?
I have attempted to plot a line on my dataset at hr=2, however it changes my x axis scale by about 35 years for some reason.
The dataset has 420 datapoints across 6 hours, hence the number in the ...
0
votes
2
answers
212
views
How to only plot data on the hour from a 6 hour dataset cube (iris)?
So far my code to plot a a graph is like so:
iplt.plot(pressure_no1, color='black')
plt.xlabel('Time / hour of day')
plt.ylabel('Atmospheric pressure / kPa')
iplt.show()
it is a 6 hour cube (although ...