[MITgcm-support] Generation of broken lines on CS-grid

Jean-Michel Campin jmc at ocean.mit.edu
Tue Feb 12 13:05:29 EST 2013


Hi Quentin,

I've just updated the utils/matlab/cs_grid/bk_line/ scripts to
enable (by changing ncdf=0 to ncdf=1) to use NetCDF grid-files
instead of plain binary (MDS) files.
But I still have problems (with rdmnc) when each face has several 
tiles in Y dir.

Cheers,
Jean-Michel

On Tue, Feb 12, 2013 at 10:35:56AM +0100, quentin jamet wrote:
> Thanks David and Martin,
> 
> I got troubles to find the way out with the different projections but
> everything seems to be fine now.
> 
> Regards.
> 
> Quentin
> 
> 2013/2/11 David Ferreira <dfer at mit.edu>
> 
> >  Hi Quentin,
> > In case you don't really care how those broken line files (MOC and
> > barotropic streamfunction) are generated, you can find them here:
> > http://mitgcm.org/viewvc/MITgcm/MITgcm_contrib/dfer/matlab_stuff/
> > cheers,
> > david
> >
> >
> > On 2/11/13 9:51 AM, quentin jamet wrote:
> >
> > Dear all,
> >
> > I use the broken lines generator in order to compute the barotropic
> > stream function on a cubed sphere. All my outputs are written in netcdf
> > format. I first wonder if this format is supported by the script
> > gener_bk_line.m? I managed to run it by switching load_cs.m to
> > load_cs_mnc.m where I used rdmnc instead of rdmds. I am right to do so ?
> > And by the way, what is 'RAC'  ? I didn't find it anywhere in my files !
> >
> > My second question concerns the script gener_bk_line.m itself. I got an
> > error at line 55 using the 'reshape' function when evaluating
> >
> > yg2=zeros(nPp2,1); yg2([1:nPxy],1)=reshape(ycg,[nPxy 1]);
> >
> > There, ycg has the size (145x25) and nPxy = 3456 (144x24). I then
> > rewritte it as :
> >
> > yg2=zeros(nPp2,1); yg2([1:nPxy],1)=reshape(ycg(1:end-1,1:end-1),[nPxy 1]);
> >
> > and same for xg2. It works fine but I am not sure about the consistency
> > of my trick. Can anyone confirme what I did or explain me the good things
> > to do?
> >
> > Regards
> >
> > Quentin
> >
> >
> > _______________________________________________
> > MITgcm-support mailing listMITgcm-support at mitgcm.orghttp://mitgcm.org/mailman/listinfo/mitgcm-support
> >
> >
> >
> > _______________________________________________
> > MITgcm-support mailing list
> > MITgcm-support at mitgcm.org
> > http://mitgcm.org/mailman/listinfo/mitgcm-support
> >
> >
> 
> 
> -- 
> Quentin Jamet

> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support




More information about the MITgcm-support mailing list