Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read ACCESS CMIP5 file #30

Closed
znicholls opened this issue Nov 22, 2018 · 2 comments
Closed

Cannot read ACCESS CMIP5 file #30

znicholls opened this issue Nov 22, 2018 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@znicholls
Copy link
Owner

Describe the bug

When crunching the ACCESS1-0 CMIP5 data, the following error is thrown

'real_datetime' object has no attribute 'nanosecond'

Failing Test

def read_access_data(access_data_path):
    cube = MarbleCMIP5Cube()
    cube.load_data_from_path(TEST_ACCESS_CMIP5_FILE)

Expected behavior

NetCDF-SCM should be able to read this file.

Screenshots

If applicable, add screenshots to help explain your problem.

System (please complete the following information):

  • OS: macOS
  • Python version [e.g. Python 3.5] and output of conda list --export and pip freeze as applicable
$ python --version
Python 3.6.6
$ conda list --export
# This file may be used to create an environment using:
# $ conda create --name <env> --file <this file>
# platform: osx-64
asn1crypto=0.24.0=py36_1003
beautifulsoup4=4.6.3=py36_1000
blas=1.0=mkl
bokeh=1.0.1=py36_1000
bzip2=1.0.6=1
ca-certificates=2018.10.15=ha4d7672_0
cartopy=0.16.0=py36h81b52dc_2
certifi=2018.10.15=py36_1000
cf_units=2.0.1=py36h7eb728f_2
cffi=1.11.5=py36h5e8e0c9_1
cftime=1.0.2.1=py36h7eb728f_0
chardet=3.0.4=py36_1003
click=7.0=py_0
cloudpickle=0.6.1=py_0
conda=4.5.11=py36_1000
conda-build=3.16.2=py36_0
conda-env=2.6.0=1
cryptography=2.3.1=py36hdffb7b8_0
cryptography-vectors=2.3.1=py36_1000
curl=7.62.0=h74213dd_0
cycler=0.10.0=py_1
cytoolz=0.9.0.1=py36h470a237_1
dask=0.20.1=py_0
dask-core=0.20.1=py_0
distributed=1.24.1=py36_1000
expat=2.2.5=hfc679d8_2
filelock=3.0.10=py_0
freetype=2.9.1=h6debe1e_4
geos=3.6.2=hfc679d8_3
glob2=0.6=py_0
hdf4=4.2.13=h951d187_2
hdf5=1.10.3=hc401514_2
heapdict=1.0.0=py36_1000
icu=58.2=hfc679d8_0
idna=2.7=py36_1002
intel-openmp=2019.0=118
iris=2.2.0=py36_1
jinja2=2.10=py_1
jpeg=9c=h470a237_1
kiwisolver=1.0.1=py36h2d50403_2
krb5=1.16.2=hbb41f41_0
libarchive=3.3.3=h823be47_0
libcurl=7.62.0=hbdb9355_0
libcxx=7.0.0=h2d50403_2
libedit=3.1.20170329=haf1bffa_1
libffi=3.2.1=hfc679d8_5
libgfortran=3.0.1=h93005f0_2
libiconv=1.15=h470a237_3
libnetcdf=4.6.1=h350cafa_11
libpng=1.6.35=ha92aebf_2
libssh2=1.8.0=h5b517e9_2
libtiff=4.0.9=he6b73bb_2
libxml2=2.9.8=h422b904_5
libxslt=1.1.32=h88dbc4e_2
llvm-meta=7.0.0=0
locket=0.2.0=py_2
lxml=4.2.5=py36hc9114bc_0
markupsafe=1.1.0=py36h470a237_0
matplotlib=3.0.1=1
matplotlib-base=3.0.1=py36h45c993b_1
mkl=2018.0.3=1
mkl_fft=1.0.6=py36_0
mkl_random=1.0.2=py36_0
msgpack-python=0.5.6=py36h2d50403_3
nc-time-axis=1.1.0=py_0
ncurses=6.1=hfc679d8_1
netcdf4=1.4.2=py36hac939d9_0
numpy=1.15.4=py36h6a91979_0
numpy-base=1.15.4=py36h8a80b8c_0
olefile=0.46=py_0
openssl=1.0.2p=h470a237_1
owslib=0.17.0=py_0
packaging=18.0=py_0
pandas=0.23.4=py36hf8a1672_0
partd=0.3.9=py_0
pillow=5.3.0=py36hc736899_0
pip=18.1=py36_1000
pkginfo=1.4.2=py_1
proj4=4.9.3=h470a237_8
psutil=5.4.8=py36h470a237_0
pycosat=0.6.3=py36h470a237_1
pycparser=2.19=py_0
pyepsg=0.3.2=py_1
pyke=1.1.1=py36_1000
pyopenssl=18.0.0=py36_1000
pyparsing=2.3.0=py_0
pyproj=1.9.5.1=py36h508ed2a_6
pyshp=2.0.0=py_0
pysocks=1.6.8=py36_1002
python=3.6.6=h5001a0f_0
python-dateutil=2.7.5=py_0
python-libarchive-c=2.8=py36_1004
pytz=2018.7=py_0
pyyaml=3.13=py36h470a237_1
readline=7.0=haf1bffa_1
requests=2.20.0=py36_1000
ruamel_yaml=0.15.71=py36h470a237_0
scipy=1.1.0=py36h28f7352_1
setuptools=40.5.0=py36_0
shapely=1.6.4=py36h164cb2d_1
six=1.11.0=py36_1001
sortedcontainers=2.0.5=py_0
sqlite=3.25.3=hb1c47c0_0
tblib=1.3.2=py_1
tk=8.6.8=ha92aebf_0
toolz=0.9.0=py_1
tornado=5.1.1=py36h470a237_0
tqdm=4.28.1=py_0
udunits2=2.2.27.6=h3a4f0e9_1
urllib3=1.23=py36_1001
wheel=0.32.2=py36_0
xz=5.2.4=h470a237_1
yaml=0.1.7=h470a237_1
zict=0.1.3=py_0
zlib=1.2.11=h470a237_3
$ pip freeze
alabaster==0.7.12
appdirs==1.4.3
appnope==0.1.0
asn1crypto==0.24.0
atomicwrites==1.2.1
attrs==18.2.0
Babel==2.6.0
backcall==0.1.0
beautifulsoup4==4.6.3
black==18.9b0
bleach==3.0.2
bokeh==1.0.1
Cartopy==0.16.0
certifi==2018.10.15
cf-units==2.0.1
cffi==1.11.5
cftime==1.0.2.1
chardet==3.0.4
Click==7.0
cloudpickle==0.6.1
codecov==2.0.15
conda==4.5.11
conda-build==3.16.2
coverage==4.5.1
cryptography==2.3.1
cryptography-vectors==2.3.1
cycler==0.10.0
cytoolz==0.9.0.1
dask==0.20.1
decorator==4.3.0
defusedxml==0.5.0
distributed==1.24.1
docutils==0.14
entrypoints==0.2.3
ExpectException==0.1.1
f90nml==1.0.2
filelock==3.0.10
flake8==3.6.0
glob2==0.6
heapdict==1.0.0
idna==2.7
imagesize==1.1.0
ipykernel==5.1.0
ipython==7.1.1
ipython-genutils==0.2.0
jedi==0.13.1
Jinja2==2.10
jsonschema==2.6.0
jupyter-client==5.2.3
jupyter-core==4.4.0
kiwisolver==1.0.1
libarchive-c==2.8
locket==0.2.0
lxml==4.2.5
MarkupSafe==1.1.0
matplotlib==3.0.1
mccabe==0.6.1
mistune==0.8.4
mkl-fft==1.0.6
mkl-random==1.0.2
more-itertools==4.3.0
msgpack==0.5.6
nbconvert==5.4.0
nbformat==4.4.0
nbresuse==0.3.0
nbval==0.9.1
nc-time-axis==1.1.0
-e git+git@github.com:znicholls/netcdf-scm.git@7968219efcec5b4cff0d7473166b07b758ae58ae#egg=netcdf_scm
netCDF4==1.4.2
notebook==5.7.0
numpy==1.15.4
olefile==0.46
OWSLib==0.17.0
packaging==18.0
pandas==0.23.4
pandas-datapackage-reader==0.11.1
pandocfilters==1.4.2
parso==0.3.1
partd==0.3.9
pexpect==4.6.0
pickleshare==0.7.5
Pillow==5.3.0
pkginfo==1.4.2
pluggy==0.8.0
progressbar2==3.38.0
prometheus-client==0.4.2
prompt-toolkit==2.0.7
psutil==5.4.8
ptyprocess==0.6.0
py==1.7.0
pyam-iamc==0.1.1
pycodestyle==2.4.0
pycosat==0.6.3
pycparser==2.19
pyepsg==0.3.2
pyflakes==2.0.0
Pygments==2.2.0
pyke==1.1.1
pymagicc==2.0.0a0
pyOpenSSL==18.0.0
pyparsing==2.3.0
pyproj==1.9.5.1
pyshp==2.0.0
PySocks==1.6.8
pytest==3.10.0
pytest-cov==2.6.0
python-dateutil==2.7.5
python-utils==2.3.0
pytz==2018.7
PyYAML==3.13
pyzmq==17.1.2
readme-renderer==24.0
requests==2.20.0
requests-toolbelt==0.8.0
ruamel-yaml==0.15.71
scipy==1.1.0
scitools-iris==2.2.0
seaborn==0.9.0
Send2Trash==1.5.0
Shapely==1.6.4.post1
six==1.11.0
snowballstemmer==1.2.1
sortedcontainers==2.0.5
Sphinx==1.8.1
sphinx-rtd-theme==0.4.2
sphinxcontrib-websupport==1.1.0
tblib==1.3.2
terminado==0.8.1
testpath==0.4.2
toml==0.10.0
toolz==0.9.0
tornado==5.1.1
tqdm==4.28.1
traitlets==4.3.2
twine==1.12.1
urllib3==1.23
versioneer==0.18
wcwidth==0.1.7
webencodings==0.5.1
xlrd==1.1.0
XlsxWriter==1.1.2
zict==0.1.3

Additional context

Add any other context about the problem here.

@znicholls znicholls added the bug Something isn't working label Nov 22, 2018
@znicholls znicholls self-assigned this Nov 22, 2018
@znicholls
Copy link
Owner Author

Looks like this is related to SciTools/iris#3216

@znicholls
Copy link
Owner Author

Fixed in #29

znicholls added a commit that referenced this issue Nov 22, 2018
znicholls added a commit that referenced this issue Aug 28, 2019
Former-commit-id: 12590e4
znicholls added a commit that referenced this issue Aug 29, 2019
Former-commit-id: ff0e1bcdf119c4cffb08d7555fab80ee130c20e0 [formerly 12590e4]
Former-commit-id: f01ea1b5244e33978a16fa33b6f15452c0627e1c
znicholls added a commit that referenced this issue Aug 29, 2019
Former-commit-id: 8052db41ab3fcbfe9bb9ba4bd2ebcf6832dc55b5 [formerly 12590e4]
Former-commit-id: a02f09852bca594aae32b3327e1815e955b09c5b
znicholls added a commit that referenced this issue Aug 29, 2019
Former-commit-id: a840fed [formerly e837d9d96807d8c9ed6fb3951d51fe8aeee11cb6] [formerly 38bf2b8] [formerly a840fed [formerly e837d9d96807d8c9ed6fb3951d51fe8aeee11cb6] [formerly 38bf2b8] [formerly ebc68391f391c0c8aadbe0515ffb3a74b387ca48 [formerly 3f044036307d092efd62027d0be43b0c00c8be04] [formerly 38bf2b8 [formerly daac14905c047c78cbc483d9a1ff052f1fb3d8e2]]]]
Former-commit-id: ebc68391f391c0c8aadbe0515ffb3a74b387ca48 [formerly 3f044036307d092efd62027d0be43b0c00c8be04]
Former-commit-id: 4393940b93517480a1c1bf84dd3d89ac3c3b0853 [formerly 4409af893935f5581a6a827f0a1ae73612de3e9c] [formerly ebc68391f391c0c8aadbe0515ffb3a74b387ca48]
Former-commit-id: 1c27a645e899f89f855e54c6d2d5f7c5cd35f3f6 [formerly ee1c330c8283fb332985d0f28f1aa100ddc19f91]
Former-commit-id: def111db132783f809b2af069f3d6a9dc381c5a5
znicholls added a commit that referenced this issue Aug 29, 2019
Former-commit-id: daac14905c047c78cbc483d9a1ff052f1fb3d8e2
znicholls added a commit that referenced this issue Aug 29, 2019
Former-commit-id: daac14905c047c78cbc483d9a1ff052f1fb3d8e2
znicholls added a commit that referenced this issue Aug 29, 2019
znicholls added a commit that referenced this issue Aug 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant