Comments (10)
Right now I'm using numpy 1.16.4
and iris 2.2.1
, but I suppose this has changed since I initially created this issue.
from esmvalcore.
Is this still relevant when we are now working on iris3? #378 #819
from esmvalcore.
Cheers for the heads-up, @bjlittle
from esmvalcore.
here's one more
WARNING /home/users/valeriu/anaconda3Feb19/envs/esmvaltool/lib/python3.7/site-packages/ESMValTool-2.0a1-py3.7.egg/esmvaltool/preprocessor/_regrid.py:355: FutureWarning: Conversion of the second argument of issubdtype from `int` to `np.signedinteger` is deprecated. In future, it will be treated as `np.int64 == np.dtype(int).type`.
extrapolation=extrapolation)
from esmvalcore.
/numpy/ma/core.py:3174: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use arr[tuple(seq)] instead of arr[seq]. In the future this will be interpreted as an array index, arr[np.array(seq)], which will result either in an error or a different result.
Some additional information on this warning, that you reported already. I also came across it while working on: ESMValGroup/ESMValTool#1200
This warning can be reproduced easily like this (taken from Stackoverflow )
x = np.zeros((4,2))
x[slice(None),1] # works
x[[slice(None),1]] # raises Warning
It should be fixed in latest Iris, see SciTools/iris#3212.
from esmvalcore.
@schlunma What versions of iris
and numpy
are you guys using?
I'm looking to re-haul the amount of warnings that iris
generates, which is over verbose as far as I'm concerned.
from esmvalcore.
Warnings like this appear very often in the preprocessor. Most likely it's because of the cell_measures attribute in the raw cubes (e.g. tas:cell_measures = "area: areacella"). Would it break something if we removed this attribute?
@bouweandela what do you think? Removing this attribute? Or maybe filtering out the warnings at the top level (is that possible?), since according to @schlunma ESMValTool is designed like this on purpose and the warning is therefore not relevant at any level within ESMValTool. Is that correct?
from esmvalcore.
@bjlittle is planning to build support for it into iris
, see SciTools/iris#3329.
If that works out, the solution should be as simple as loading both files at the same time:
>>> import iris
>>> iris.load(["/badc/cmip5/data/cmip5/output1/BCC/bcc-csm1-1/historical/fx/atmos/fx/r0i0p0/latest/areacella/areacella_fx_bcc-csm1-1_historical_r0i0p0.nc", "/badc/cmip5/data/cmip5/output1/BCC/bcc-csm1-1/historical/mon/atmos/Amon/r1i1p1/latest/tas/tas_Amon_bcc-csm1-1_historical_r1i1p1_185001-201212.nc"])
/group_workspaces/jasmin2/cp4cds1/magic-test/tmp-bandela/version2_development/conda/envs/esmvaltool/lib/python3.6/site-packages/iris/fileformats/cf.py:798: UserWarning: Missing CF-netCDF measure variable 'areacella', referenced by netCDF variable 'tas'
warnings.warn(message % (variable_name, nc_var_name))
[<iris 'Cube' of air_temperature / (K) (time: 1956; latitude: 64; longitude: 128)>,
<iris 'Cube' of cell_area / (m2) (latitude: 64; longitude: 128)>]
(note that this currently does not work yet).
Maybe we could filter the warning until support is implemented?
from esmvalcore.
I think this issue is obsolete now; closing. @schlunma, please reopen if you feel otherwise.
from esmvalcore.
BTW we're going to be moving to logging
for iris
3.1, which will silence, finally, all/most of the warning messages 👍
from esmvalcore.
Related Issues (20)
- Add `esmvaltool compare` command to run `esmvaltool/utils/testing/regression/compare.py` HOT 4
- GFDL-CM4 SfcWind height Issues HOT 1
- [testing/mamba] No useful output from mamba
- Improve the ESMValCore release documentation
- Automatically select a lazy regridding scheme in `regrid` preprocessor function for 2D lat/2D lon grids when possible HOT 6
- Drop support for Python 3.9 HOT 3
- Update Iris pin to avoid using versions with memory issues HOT 4
- Increase the version number for 2.11.0 release
- Add draft release notes for v2.11.0rc1 HOT 1
- Remove `compilers` from `environment.yml`
- Recipe test results for ESMValCore v2.11.0rc1 HOT 15
- Diagnostic failure for `recipe_martin18grl.yml` on `v2.11.0rc1` HOT 1
- Diagnostic failure for `recipe_pcrglobwb.yml` on `v2.11.0rc1` HOT 1
- Diagnostic failure for `recipe_lauer22jclim_fig3-4_zonal.yml` on `v2.11.0rc1` HOT 1
- Add native6, OBS6 and RAWOBS rootpaths to metoffice config-user.yml template, and remove temporary dir
- Add control over chunks at load time
- Interpolation in `resample_hours`
- Adding ETCCDI custom CMOR tables for HadEX3 CMORizer and IPCC diagnotics HOT 1
- Make extract_point/extract_location/extract_coordinate_points preprocessor functions lazy HOT 1
- Lazy derive preprocessor function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esmvalcore.