@@ -0,0 +1,974 @@
+import numpy as np%0A%0Afrom xmitgcm import open_mdsdataset %0A%0Adir0 = '/homedata/bderembl/runmit/test_southatlgyre6'%0Ai = 108%0A%0Ads = open_mdsdataset(dir0,iters=i,prefix=%5B'etan'%5D)%0Ads%5B'ETAN'%5D.to_netcdf('ETA_Surface_Height_Anomaly-'+'0000'+str(i)+'.nc')  %0A%0Awhile (i %3C 500000):%0A    i = int(i+216)%0A    print(i)%0A    if (i %3E 100) and (i %3C 999):%0A        ds0 = open_mdsdataset(dir0,iters=i,prefix=%5B'etan'%5D)%0A        ds0%5B'ETAN'%5D.to_netcdf('ETA_Surface_Height_Anomaly-'+'0000'+str(i)+'.nc')  %0A    elif (i %3E 1000) and (i %3C 9999):%0A        ds1 = open_mdsdataset(dir0,iters=i,prefix=%5B'etan'%5D)%0A        ds1%5B'ETAN'%5D.to_netcdf('ETA_Surface_Height_Anomaly-'+'000'+str(i)+'.nc')  %0A    elif (i %3E 10000 ) and (i %3C 99999):%0A        ds2 = open_mdsdataset(dir0,iters=i,prefix=%5B'etan'%5D)%0A        ds2%5B'ETAN'%5D.to_netcdf('ETA_Surface_Height_Anomaly-'+'00'+str(i)+'.nc')%0A    else:%0A        ds3 = open_mdsdataset(dir0,iters=i,prefix=%5B'etan'%5D)%0A        ds3%5B'ETAN'%5D.to_netcdf('ETA_Surface_Height_Anomaly-'+str(i)+'.nc')%0A

Create A_convertsion_netCFD_etan.py