GenericMappingTools / GenericMappingTools/gmt
IO_NC4_CHUNK_SIZE must allow 3 values for when dealing with cubes.
Open
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
Assessment
This issue has not been assessed yet.