[MITgcm-support] bathymetry file in a .bin format

Martin Losch martin.losch at awi.de
Fri Jan 27 11:14:07 EST 2017


Saeid,

bathymetry for oceans should be < 0, land = 0 (>0 also works). 

There are plenty of examples in the verification folder how to write bathymetry files in matlab (fid = fopen(“bathy.bin”,”b”,”w”); fwrite(fid, bathyField2d, “real*4 or 8”); fclose(fid)), and one in python (verification/seaice_itd/input/gendata.py)

Martin

> On 26 Jan 2017, at 21:32, smaeilpour <saeid_gal at yahoo.com> wrote:
> 
> Hi MITgcm experts and dear all,
> i created a file (in .asc format) by GEBCO Grid Demonstrator Software, so i converted it to a TXT format, now for creating a bathymetry file for MITgcm Model, should values be positive (+) or negative (-) in water? as regards, the ocean surface is at z=0, and land values should be zero (0).
> could you please write me the commands in MATLAB that i can create a bathymetry file in a binary format (e.g. .bin)? or what way is easy for making it?
> thank you in advance.
> 
> Best,
> saeid
> 
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support




More information about the MITgcm-support mailing list