[MITgcm-support]MNC global file

Gus Correa gus at ldeo.columbia.edu
Wed Apr 8 10:51:41 EDT 2009


Hi Lian

If I remember right, useSingleCpuIO=.TRUE. will enforce
global files only if you output binary files (MDSIO package).
If your output is NetCDF (useMNC=.TRUE.) the files will be tiled
according to your domain decomposition.
Just like you, I've been longing for a MITgcm global NetCDF
output also, but ...

The workaround that I know of is based on building the
global files from the tiled NetCDF ones using Matlab scripts.
You need the Mexnc package installed along with Matlab also.

A Matlab utility script that assembles the NetCDF tile files
is mnc_assembly.m.
David Wang contributed another nice Matlab script called gluemnc.m,
which builds on mnc_assembly.m, and makes easier to build
global NetCDF files from the MITgcm MNC output.
I think both scripts are in the latest MITgcm releases,
but I am not sure.

If you don't have Matlab, you may try to use Octave instead.
Octave is free and available for Linux and MacOS-X,
maybe also for Cygwin (not sure).
I haven't used Octave to assemble the MITgcm tiled files, though.

I hope this helps.
Gus Correa
---------------------------------------------------------------------
Gustavo Correa
Lamont-Doherty Earth Observatory - Columbia University
Palisades, NY, 10964-8000 - USA
---------------------------------------------------------------------

连展 wrote:
> Hello,
>  
> Can MNC output files be global files?
> I have set useSingleCpuIO=.TRUE. and globalFiles=.TRUE. But it seem does 
> not work when useMNC=.TRUE.
>  
> Thank you!
>                                            LIAN
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support




More information about the MITgcm-support mailing list