/[MITgcm]/MITgcm_contrib/high_res_cube/matlab-grid-generator/bin/mask.m
ViewVC logotype

Annotation of /MITgcm_contrib/high_res_cube/matlab-grid-generator/bin/mask.m

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


Revision 1.1 - (hide annotations) (download)
Tue Nov 11 18:08:08 2003 UTC (23 years ago) by cnh
Branch point for: MAIN, initial
Initial revision

1 cnh 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