Editing I/O API file dates only

I just want to edit the MCIPv4.5 output files in I/O API format such that year 2000 becomes 2005 and everything else stays the same. What are some ways to tackle this problem?

Trying to edit in place will mess up the internal data structures. Instead, use M3Tools program m3tshift: see https://www.cmascenter.org/ioapi/documentation/all_versions/html/M3TSHIFT.html

m3tshift of I/O API v3.1 didn’t work for me - it kept creating a new file with the same old date (basically not replacing 2000 with 2005)!

I just re-checked and it works for me. What version do you have (do ident which m3tshift)?
The current version has

 $Id: m3tshift.f90 117 2019-06-15 14:56:29Z coats $

When I typed the command ‘ident m3tshift’, I got:

 $Id:: m3tshift.f 79 2014-12-12 16:28:01Z coats             $
 $Id:: init3.F 321 2016-02-26 16:00:20Z coats                $

This version is at least 4 versions (jun152019, dec12017, sep092017, jun142016) out-of-date. You may want to update… everything.

Looks like only v3.2 is on github, I will download the tar-zip of v3.1 directly at https://www.cmascenter.org/ioapi/download/ioapi-3.1.tar.gz

Both of these versions should work correctly, unless you’re doing something like


I’d need to see a complete log to help any further.