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

Normalize data types. #4

Open
dblodgett-usgs opened this issue May 30, 2024 · 0 comments
Open

Normalize data types. #4

dblodgett-usgs opened this issue May 30, 2024 · 0 comments

Comments

@dblodgett-usgs
Copy link
Collaborator

From pizzarr:

Data types

Zarr Data Type Status
(reading / writing)
Notes
b1 / boolean ✔ / ✔ Converted to logical in R.
i1 / int8 ✔ / ✔ Converted to integer in R.
u1 / uint8 ✔ / ✔ Converted to integer in R.
i2 / int16 ✔ / ✔ Converted to integer in R.
u2 / uint16 ✔ / ✔ Converted to integer in R.
i4 / int32 ✔ / ✔ Converted to integer in R.
u4 / uint32 ✔ / ✔ Converted to integer in R.
i8 / int64 ✔ / ✔ Converted to integer in R.
u8 / uint64 ✔ / ✔ Converted to integer in R.
f2 / float16 ✔ / ✔ Converted to double in R.
f4 / float32 ✔ / ✔ Converted to double in R.
f8 / float64 ✔ / ✔ Converted to double in R.
complex ❌ / ❌
timedelta ❌ / ❌
datetime ❌ / ❌
string ✔ / ✔ Converted to character in R.
Unicode ✔ / ✔ Converted to character in R.
void * ❌ / ❌
Structured data types ❌ / ❌
Object data type - VLenUTF8 ✔ / ✔ Converted to character in R.

From RNetCDF, numeric are doubles by default but can be coerced to a smaller type according to:

NC_TYPE R Type
NC_BYTE integer
NC_UBYTE integer
NC_SHORT integer
NC_USHORT integer
NC_INT integer
NC_UINT double
NC_FLOAT double
NC_DOUBLE double
NC_INT64 bit64:bit64-package]{integer64
NC_UINT64 bit64:bit64-package]{integer64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant