/[MITgcm]/MITgcm_contrib/mlosch/interp_llc/mask.m
ViewVC logotype

Annotation of /MITgcm_contrib/mlosch/interp_llc/mask.m

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Thu May 3 21:07:21 2007 UTC (18 years, 2 months ago) by mlosch
Branch: MAIN
CVS Tags: HEAD
initial checkin of topography and hydrography interpolation scripts for
the llc-grid, based on old matlab scripts by Alistair Adcroft
Let's hope, they are useful.

1 mlosch 1.1 function [msk] = mask( T )
2     %
3     % msk=mask(T);
4     %
5     % return array of same shape as T with 0/1 indicating non-zero elements
6     % of T.
7    
8     msk=0*T;
9     msk(find(T~=0))=1;
10     msk(isnan(T))=0;

  ViewVC Help
Powered by ViewVC 1.1.22