DART icon indicating copy to clipboard operation
DART copied to clipboard

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

Open hkershaw-brown opened this issue 4 years ago • 1 comments

noticed this when testing:

direct_netcdf_mod.f90 creates netcdf files in 64bit offset mode: https://github.com/NCAR/DART/blob/62ecfa2a2b4c7de55f98f434de49e076060fd82c/assimilation_code/modules/io/direct_netcdf_mod.f90#L1617

netcdf_utilities_mod.f90 creates netcdf files in classic mode https://github.com/NCAR/DART/blob/62ecfa2a2b4c7de55f98f434de49e076060fd82c/assimilation_code/modules/utilities/netcdf_utilities_mod.f90#L2409

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 https://github.com/NCAR/DART/issues/278#issuecomment-917251539

hkershaw-brown avatar Sep 16 '21 20:09 hkershaw-brown

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 ?

hkershaw-brown avatar Aug 18 '22 19:08 hkershaw-brown