[MITgcm-support] CS Grid Generator and Convertor Matlab Scripts
Yuan Lian
lian at ashimaresearch.com
Wed Feb 15 14:41:12 EST 2012
Hi Chris,
It appears that you didn't define the path that contains the .bin file
correctly. What worked for me is to use the following
sz=[nx nx 6];
prm=[1 2 3];
chdatapath=input('full path to load data /~/ : ','s');
path(chdatapath,path);
Once you set the path correctly you can load the .bin files regardless
where they are. Hope this helps.
Best,
Yuan
On 2/15/12 2:54 AM, Chris Watkins wrote:
> Hi Yuan,
>
> I'm afraid that didn't work. The problem really seems to lie in that 6
> files for LONC, LATC, LONG and LATG are produced by gengrids.m one for
> each face. However, only one combining all six faces is expected by
> convertMITgrid.m. For example, convertMITgrid.m tries to
> read LONC.bin in line 5 xc=permute(
> rdda('LONC.bin',sz,1,'real*8','b') ,prm); which gives an error: Error
> while opening file: No such file or directory.
>
> Thank you for your help
>
> Regards,
>
> Chris
>
> P.S. do you know what am I doing wrong in my submissions to the list.
> I seem to be making a new thread each time.
>
> Hi Chris,
>
> The permute sequence appears to be platform dependent. Try to use the
> following permute sequence in convertMITgrid:
>
> prm=[1 2 3]
>
> Please let me know if this works.
>
> Best,
>
> Yuan
>
>
>
>
> _______________________________________________
> 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/20120215/ad4a6561/attachment.htm>
More information about the MITgcm-support
mailing list