Copying the metadata from a BOUT.restart.*.nc file to the resized BOUT.restart.*.nc file is a bad idea. I mean, you are resizing the grid and therefore parameters like "nx" (and others) should be obviously updated to match the size of the new grid.
|
attributes = old.attributes(var) |
Copying the metadata from a
BOUT.restart.*.ncfile to the resizedBOUT.restart.*.ncfile is a bad idea. I mean, you are resizing the grid and therefore parameters like "nx" (and others) should be obviously updated to match the size of the new grid.boutdata/boutdata/restart.py
Line 219 in 1cb6d08