[MITgcm-support] matlab visualization of plume of on shelf

Alistair Adcroft adcroft at MIT.EDU
Fri Feb 20 15:42:19 EST 2004


>> H=rdmds('Depth');
returns a 1-D array because the plume_on_slope calcualtion is only 2-D.

>> plot(-H) will show the model depth

>> T=rdmds('T',Inf);
>> contourf( squeeze(T)' );
will contour the temperature field last written out by the model.

A.
-----Original Message-----
From: mitgcm-support-bounces at mitgcm.org
[mailto:mitgcm-support-bounces at mitgcm.org] On Behalf Of Michael
Schaferkotter (Contractor)
Sent: Friday, February 20, 2004 3:05 PM
To: mitgcm-support at mitgcm.org
Subject: [MITgcm-support] matlab visualization of plume of on shelf


hi all:
i/m trying to visualize the first run 'plume on shelf' and i/m following
instructions given at:

http://mitgcm.org/sealion/online_documents/node95.html (looking at the
output)

after starting matlab 6.1 (also tried 6.5) and issuing

H=rdmds('Depth');

on trying 

contourf(H');

we meet:

> >> size(H)
> 
> ans =
> 
>    320     1
> 
> >> contourf(H)
> ???  Index exceeds matrix dimensions.
> 
> Error in ==> /common/matlab6.1/toolbox/matlab/specgraph/contourf.m
> On line 119  ==> xx = [2*x(:,1)-x(:,2), x, 2*x(:,nz)-x(:,nz-1)];

this makes some sense in that you wouldn/t probably contour a 1d array (i
don/t consider 320x1 a 1d array, though apparently matlab does).

so what/s the deal?

michael
_______________________________________________
MITgcm-support mailing list
MITgcm-support at mitgcm.org
http://dev.mitgcm.org/mailman/listinfo/mitgcm-support




More information about the MITgcm-support mailing list