[MITgcm-support] cubeZ2latlon.m broken
Yuan Lian
lian at U.Arizona.EDU
Mon Aug 8 01:27:11 EDT 2005
Hi, Jean-Michel,
I actually did round nc/2 to an integer, however the output I got from
cubeZ2latlon.m is an 180x90x32 array (interpolated as
xi=-179:2:180;yi=-89:2:90;), this doesn't seem correct since the
cubeZ2latlon function is supposed to get an array sized as 180x90, is this
right?
Best regards,
Yuan
On Fri, 5 Aug 2005, Jean-Michel Campin wrote:
> Hi Yuan,
>
> Thanks for reporting the problem.
>
> I've just change this line 42, (I did not find an other nc/2
> outside of floor(nc/2)).
> But it's hard for me to test it since I don't have
> here a NxN cubed-sphere grid with N beeing an odd number.
>
> Jean-Michel
>
> On Fri, Aug 05, 2005 at 01:13:25PM -0700, Yuan Lian wrote:
> > Hi, Jean-Michel,
> >
> > I found the matlab code under cubeZ2latlon.m MITgcm/utils/cs_grid is
> > broken, the problem is that the variable "nc" is odd (C32 grid) , when
> > calculate the index "i" for X(i,j) on line 42, i is not integer thus
> > Matlab can't deal with it. I think you might miss some operator to round
> > the number to an integer. Could you please check it? Thanks a lot!
> >
> > Best regards,
> > Yuan
> > _______________________________________________
> > 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