NCAR / DART

Data Assimilation Research Testbed
https://dart.ucar.edu/
Apache License 2.0
196 stars 145 forks source link

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

Open hkershaw-brown opened 3 years ago

hkershaw-brown commented 3 years ago

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 commented 2 years ago

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 ?