Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Allow 64-bit dimension lengths #875

Open
cwardgar opened this issue Jul 10, 2017 · 1 comment
Open

Allow 64-bit dimension lengths #875

cwardgar opened this issue Jul 10, 2017 · 1 comment

Comments

@cwardgar
Copy link
Contributor

From LQO-782179.

The length of a dimension in the CDM is limited to a signed int (32 bits). Presumably, this is to match the dimension length limit in NetCDF-3, which is also a 32-bit int (although it is unsigned, not signed). This limit has been in place at least 10 years, and probably appeared in NetCDF-Java 1.0.

Since then, NetCDF-4 was released, which supports 64-bit unsigned integer dimension lengths. We ought to upgrade the CDM to use type long for dimension lengths, which is a 64-bit signed integer.

@cyrilleponcelet
Copy link

Note that in java 8, some support for unsigned long where added to the class java.lang.Long, so we can use long type to be treated as unsigned

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants