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

David Ferreira dfer at mit.edu
Mon Feb 11 10:16:56 EST 2013


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 questionconcerns the script gener_bk_line.m itself. Igot 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 list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20130211/c9cf65a7/attachment-0001.htm>


More information about the MITgcm-support mailing list