How can I write variables larger than 4 GiB?
If you change the first dimension of a variable from a fixed size to an unlimited size instead, the variable can be much larger. In the netCDF classic or 64-bit offset formats, record variables are restricted to 4 Gib per record but may have over 4 billion records. NetCDF classic or 64-bit offset files can only have one unlimited dimension. If you are already using a record dimension for other purposes, you can overcome the 4 GiB size barrier by using the netCDF-4 HDF5 format for your data. The only change required to the program that writes the data is an extra flag to the file creation call, followed by recompiling and relinking to the netCDF-4 library. Programs that access the data would also need to be recompiled and relinked to the netCDF-4 library.
Related Questions
- you need to write non-record variables larger than 4GiB or record variables with more than 4GiB per record (see "Have all netCDF size limits been eliminated?
- Can I write the battle scene for this contest, and then put it in a larger fanfic in another thread?
- How can I write variables larger than 4 GiB?