GenericMappingTools / GenericMappingTools/gmt

IO_NC4_CHUNK_SIZE must allow 3 values for when dealing with cubes.

Open
#6,632 11 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C
Stars
979
Forks
414
Avg merge
17h 26m
Merged PRs (30d)
54

Description

``gmt_nc`` has
```
size_t nc4_chunksize[3] = {0, 0, 0};
gmt_M_memcpy (&nc4_chunksize[cube], GMT->current.setting.io_nc4_chunksize, 2U, size_t);
```
but ``gmt_defaults.h`` sets only 2
```
size_t io_nc4_chunksize[2]; /* NetCDF chunk size (lat,lon) on output [0] */
```
and ``gmt_init.c`` only accounts for maximum two chunk values, but we may need 3 when dealing with cubes.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.