-
Notifications
You must be signed in to change notification settings - Fork 9
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
Append values along one or more 'unlimited' dimension for NETCDF4 file. #9
Comments
I realized that the 'append' mode can be achieved with the 'nc_write' subroutine. However, the usage of multiple 'unlimited' dimensions seems not allowed with the ncio. The following error message occurred when I try to write two "unlimited" dimensions with 'nc_write_dim' subroutine. |
If you see a way to improve this, I would be happy to pull it into the code. |
Hi Alex, I think it may be related to the the "nc_create" subroutine in the ncio. The cmode can only be "nf90_clobber" or "nf90_noclobber", which might prevent defining multiple unlimited dimensions. I write a simple test scipt with my netcdf lib (version 4.6.0) by changing the cmode to "nf90_netcdf4" and it works well for the mlutiple unlimited dimensions. If I switch the cmode back to "nf90_clobber" then it issueS an error "NetCDF: NC_UNLIMITED size already in use". The testing code is as follows and I hope it can helpful for your improvment. `module NCIO
end module NCIO program main
end program main` |
The netCDF4 library allows one or more 'unlimited' dimensions so that arrays can be appended along them. Could the authors further implement the 'append' mode and allows the usages of multiple 'unlimited' dimensions?
The text was updated successfully, but these errors were encountered: