You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello all,
I have a question as I was struggling to find the documentation/code to confirm, I have found that when I load a Dataset that has multiple ensembles it loads a single cube, which looks like the mean of the ensembles.
Is this correct? Where can I find how it does this?
fromesmvalcore.datasetimportDatasetvar=Dataset(
short_name='ts', mip='Amon', project='CMIP6',
activity='CMIP', dataset='CESM2',
ensemble='*',
institute='*', grid='*',
exp='historical', timerange='*'
)
# number of datasets and list (11 ensembles)len(list(var.from_files())), list(var.from_files())
var.load() # a single cube
I just did a simple plot to check that it looks like the mean:
fromesmvalcore.preprocessorimportannual_statisitics, area_statisticsimportiris.quickplotasqpltimportmatplotlib.pyplotaspltfordsinlist(var.from_files()):
cube=ds.load()
cube=annual_statistics(cube, 'mean')
qplt.plot(area_statistics(cube, 'mean'), label=ds['ensemble'], linewidth=0.5)
#do same for var dataset loadcube_var=annual_statistics(var.load(), 'mean')
qplt.plot(area_statistics(cube_var, 'mean'), label=var['dataset'], linewidth=1, color='k')
plt.legend()
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all,
I have a question as I was struggling to find the documentation/code to confirm, I have found that when I load a Dataset that has multiple ensembles it loads a single cube, which looks like the mean of the ensembles.
Is this correct? Where can I find how it does this?
I just did a simple plot to check that it looks like the mean:
Beta Was this translation helpful? Give feedback.
All reactions