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
Warnings are raised when selecting a latitudinal range while reading some observational datasets.
Raised when a netCDF file is read:
/opt/miniconda3/envs/cdat/lib/python3.7/site-packages/cdms2/fvariable.py:103: 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.
result = result[revlist]
from cdms2 import open as CDMS2open
filename = "precip.mon.mean.nc"
variable = "precip"
ff = CDMS2open(filename)
tab = ff(variable, latitude=(-5, 5))
The preceding code uses CPC Merged Analysis of Precipitation (CMAP) Precipitation Mean (Standard Monthly) (probably raises the same warning with other variables) downloaded from https://psl.noaa.gov/data/gridded/data.cmap.html
I encountered the same warning with:
Twentieth Century Reanalysis (V2): Monthly Mean Single Level (Analyses and Forecasts) Gaussian Gridded (192x94) data. From 3-hr Forecast Values (8 times daily) Air Temperature Monthly Means Surface (probably raises the same warning with other variables) downloaded from https://psl.noaa.gov/data/gridded/data.20thC_ReanV2.monolevel.mm.html: air.sig995.mon.mean.nc
Raised when the same netCDF file is read but a 'dataset' was created with the cdscan utility (e.g., cdscan -x CMAP_precip.xml precip.mon.mean.nc):
/opt/miniconda3/envs/cdat/lib/python3.7/site-packages/numpy/ma/core.py:3225: 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.
dout = self.data[indx]
In the case of HadISST1 (HadISST_sst.nc) dataset created with the cdscan utility a second warning is raised:
/opt/miniconda3/envs/cdat/lib/python3.7/site-packages/numpy/ma/core.py:3257: 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.
mout = _mask[indx]
The text was updated successfully, but these errors were encountered:
Warnings are raised when selecting a latitudinal range while reading some observational datasets.
Raised when a netCDF file is read:
/opt/miniconda3/envs/cdat/lib/python3.7/site-packages/cdms2/fvariable.py:103: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use
arr[tuple(seq)]
instead ofarr[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.result = result[revlist]
The preceding code uses CPC Merged Analysis of Precipitation (CMAP) Precipitation Mean (Standard Monthly) (probably raises the same warning with other variables) downloaded from https://psl.noaa.gov/data/gridded/data.cmap.html
I encountered the same warning with:
Raised when the same netCDF file is read but a 'dataset' was created with the cdscan utility (e.g., cdscan -x CMAP_precip.xml precip.mon.mean.nc):
/opt/miniconda3/envs/cdat/lib/python3.7/site-packages/numpy/ma/core.py:3225: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use
arr[tuple(seq)]
instead ofarr[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.dout = self.data[indx]
In the case of HadISST1 (HadISST_sst.nc) dataset created with the cdscan utility a second warning is raised:
/opt/miniconda3/envs/cdat/lib/python3.7/site-packages/numpy/ma/core.py:3257: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use
arr[tuple(seq)]
instead ofarr[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.mout = _mask[indx]
The text was updated successfully, but these errors were encountered: