[MITgcm-support] read mnc

Daniel Enderton enderton at MIT.EDU
Sat Dec 1 11:27:25 EST 2007


Manfredi,

The array that you pass rdmnc should be the *model* iteration numbers.

Thus, if the model outputs every 100 iterations and you want the 
first ten outputs, you need to specify

[100:100:1000]

not

[1:1:10].

Hopefully that does it!

Daniel

>Hi,
>
>I am trying to use rdmnc to load a NetCDF file (output of MITgcm ) 
>with 60 time steps for reading only a few given that if I do not 
>specifiy the
>time steps the memory is not enough.
>
>I am using this line here to selecet only 12 :
>
>DOC=rdmnc('ptr_tave.0000131544.*','trc1','T',[1:1:12]);
>
>I have got this error :
>
>??? Error using ==> rdmnc>rdmnc_local
>Iters not found
>
>Error in ==> rdmnc at 113
>     S=rdmnc_local(nc,varlist,iters,S,dBug);
>
>Without [1:1:12] it starts to work but then it crashes for lack of memory.
>
>Any guess ?
>
>Manfredi
>
>
>--
>
>
>Manfredi Manizza
>Room 54-1410
>EAPS-MIT
>77 Massachusetts Avenue
>Cambridge, MA 02139-4307, USA
>phone: 617-253-3573
>fax  : 617-253-4464
>email: mmanizza at ocean.mit.edu
>web  : http://web.mit.edu/mmanizza/www/
>_______________________________________________
>MITgcm-support mailing list
>MITgcm-support at mitgcm.org
>http://mitgcm.org/mailman/listinfo/mitgcm-support


-- 
Daniel Enderton
PhD Candidate, Climate Physics and Chemistry
Massachusetts Institute of Technology
E-Mail:  enderton at mit.edu
Phone:  857.204.3542



More information about the MITgcm-support mailing list