[MITgcm-support] rdmnc

Martin Losch Martin.Losch at awi.de
Mon Jun 20 05:07:17 EDT 2011


Hi Bruno,

do you think that this is something that is general enough to be included in the matlab function? Or is it very specific and after modifying your rdmnc it will not work for reading all tiles anymore?

Martin

On Jun 13, 2011, at 11:05 PM, Bruno Deremble wrote:

> 
> just solved it, sorry.
> 
> I added these lines just after the offset computation.
> 
>    if (firstiter)
>      S.i_first = i0;
>      S.j_first = j0;
>    end 
>    i0 = i0 - S.i_first;
>    j0 = j0 - S.j_first;
> 
> with firstiter, a flag set to 1 initially and changed to 0 after the first iteration. in that case, the first file has to be the south west corner
> 
> bruno
> 
> ----- Original Message -----
> From: mitgcm-support-request at mitgcm.org
> Date: Monday, June 13, 2011 4:25 pm
> Subject: MITgcm-support Digest, Vol 96, Issue 14
> To: mitgcm-support at mitgcm.org
> 
>> Send MITgcm-support mailing list submissions to
>> 	mitgcm-support at mitgcm.org
>> 
>> To subscribe or unsubscribe via the World Wide Web, visit
>> 	http://mitgcm.org/mailman/listinfo/mitgcm-support
>> or, via email, send a message with subject or body 'help' to
>> 	mitgcm-support-request at mitgcm.org
>> 
>> You can reach the person managing the list at
>> 	mitgcm-support-owner at mitgcm.org
>> 
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of MITgcm-support digest..."
>> 
>> 
>> Today's Topics:
>> 
>>  1. rdmnc (Bruno Deremble)
>> 
>> 
>> --------------------------------------------------------------------
>> --
>> 
>> Message: 1
>> Date: Mon, 13 Jun 2011 16:24:46 -0400
>> From: Bruno Deremble<bderemble at fsu.edu>
>> To: "mitgcm-support at mitgcm.org" <mitgcm-support at mitgcm.org>
>> Subject: [MITgcm-support] rdmnc
>> Message-ID: <fcfaa9ec1bcf.4df639ce at fsu.edu>
>> Content-Type: text/plain; charset="iso-8859-1"
>> 
>> Hello,
>> 
>> I have a question about the matlab?routine rdmnc.m (in utils/matlab/)
>> I want to load only a selection of tiles and so I do 
>> rdmnc(file7,file8..., var)
>> It works but the non read tiles are replaced by zeros (cf attached 
>> pictures) and the table is twice too big (at least in my case) 
>> which gives me memory problems. There are some workarounds (like 
>> cutting the array afterwards). But, do you think rdmnc?can create 
>> the array with the good dimension? and thus avoid manipulating big 
>> arrays?
>> thanks
>> bruno
>> -------------- next part --------------
>> A non-text attachment was scrubbed...
>> Name: figure.eps
>> Type: image/x-eps
>> Size: 1371682 bytes
>> Desc: not available
>> URL: <http://mitgcm.org/pipermail/mitgcm-
>> support/attachments/20110613/9834ad36/attachment.bin>
>> ------------------------------
>> 
>> _______________________________________________
>> MITgcm-support mailing list
>> MITgcm-support at mitgcm.org
>> http://mitgcm.org/mailman/listinfo/mitgcm-support
>> 
>> 
>> End of MITgcm-support Digest, Vol 96, Issue 14
>> **********************************************
>> 
> 
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support




More information about the MITgcm-support mailing list