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
python nc2rdf.py /Users/dlenz/Downloads/tos_O1_2001-2002.nc
Traceback (most recent call last):
File "/Users/dlenz/git/bald/nc2rdf/nc2rdf.py", line 155, in <module>
nc2rdf(args.ncfile, args.format, baseuri=args.baseuri)
File "/Users/dlenz/git/bald/nc2rdf/nc2rdf.py", line 111, in nc2rdf
ttl = root_container.rdfgraph().serialize(format=outformat).decode("utf-8")
File "/Users/dlenz/git/bald/venv/lib/python3.9/site-packages/bald/__init__.py", line 674, in rdfgraph
self.rdfnode(graph)
File "/Users/dlenz/git/bald/venv/lib/python3.9/site-packages/bald/__init__.py", line 635, in rdfnode
node = obj.rdfnode(graph)
File "/Users/dlenz/git/bald/venv/lib/python3.9/site-packages/bald/__init__.py", line 616, in rdfnode
rdfobj = rdflib.Literal(str(rdfobj), datatype=rdflib.XSD.dateTime)
File "/Users/dlenz/git/bald/venv/lib/python3.9/site-packages/bald/datetime.py", line 871, in __str__
result = str(dts[0])
File "/Users/dlenz/git/bald/venv/lib/python3.9/site-packages/numpy/ma/core.py", line 3220, in __getitem__
dout = self.data[indx]
IndexError: too many indices for array: array is 0-dimensional, but 1 were indexed
Thank you for creating this valuable library.
I'm seeing what appears to be an issue triggered by datetime values.
Reproduce:
test file: https://www.unidata.ucar.edu/software/netcdf/examples/tos_O1_2001-2002.nc
Versions:
The text was updated successfully, but these errors were encountered: