[MITgcm-support] cubeZ2latlon.m broken
Jean-Michel Campin
jmc at ocean.mit.edu
Fri Aug 5 19:07:35 EDT 2005
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
More information about the MITgcm-support
mailing list