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

smaeilpour saeid_gal at yahoo.com
Fri Jan 27 11:52:54 EST 2017


Hi Martin and dear all
I am really tankful for you, that's okay.

cheers
Saeid


--------------------------------------------
On Fri, 1/27/17, Martin Losch <martin.losch at awi.de> wrote:

 Subject: Re: [MITgcm-support] bathymetry file in a .bin format
 To: "MITgcm Support" <mitgcm-support at mitgcm.org>
 Date: Friday, January 27, 2017, 11:14 AM
 
 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
 
 
 _______________________________________________
 MITgcm-support mailing list
 MITgcm-support at mitgcm.org
 http://mitgcm.org/mailman/listinfo/mitgcm-support
 



More information about the MITgcm-support mailing list