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

note on netcdf 64bit vs netcdf-4 file creation DART #287

Open
hkershaw-brown opened this issue Sep 16, 2021 · 1 comment
Open

note on netcdf 64bit vs netcdf-4 file creation DART #287

hkershaw-brown opened this issue Sep 16, 2021 · 1 comment
Labels
IO IO refactoring notes and issues

Comments

@hkershaw-brown
Copy link
Member

hkershaw-brown commented Sep 16, 2021

noticed this when testing:

direct_netcdf_mod.f90 creates netcdf files in 64bit offset mode:

create_mode = ior(NF90_CLOBBER, NF90_64BIT_OFFSET)

netcdf_utilities_mod.f90 creates netcdf files in classic mode

function nc_create_file(filename, context)

Do we care about this? I don't know. Just making a note.

running perfect_model_obs:
input state file is netCDF-4 time as unlimited
dart created file from perfect_model_obs has a time dimension but not unlimited. 64-bit offset.

If you create the dart file as netCDF-4 (same as the template file) you get

message: nf90_enddef end define mode: NetCDF: One or more variable sizes viola
 te format constraints

so the 64 bit offset is getting around not having the unlimited dimension.

Originally posted by @hkershaw-brown in #278 (comment)

hkershaw-brown added a commit that referenced this issue Jul 18, 2022
See note in #287 about NF90_64BIT_OFFSET
@hkershaw-brown hkershaw-brown added the IO IO refactoring notes and issues label Aug 18, 2022
@hkershaw-brown
Copy link
Member Author

Just a note on this since I just hit this with MITgcm
DIFFER : FILE FORMATS : NC_FORMAT_CLASSIC <> NC_FORMAT_64BIT

should file netCDF format be
A namelist option for DART?
An argument to netcdf_utilities::nc_create_file ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO IO refactoring notes and issues
Projects
None yet
Development

No branches or pull requests

1 participant