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

quentin jamet quentinjamett at gmail.com
Tue Feb 12 04:35:56 EST 2013


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20130212/ff4d4262/attachment.htm>


More information about the MITgcm-support mailing list