/[MITgcm]/MITgcm_contrib/gael/matlab_class/@gcmfaces/m_ll2xy.m
ViewVC logotype

Contents of /MITgcm_contrib/gael/matlab_class/@gcmfaces/m_ll2xy.m

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


Revision 1.2 - (show annotations) (download)
Thu Oct 20 20:57:01 2011 UTC (13 years, 8 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint65x, checkpoint65r, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, HEAD
Changes since 1.1: +4 -0 lines
Error occurred while calculating annotation data.
- add help sections at the top.

1 function [xx,yy] = m_ll2xy(x,y,varargin)
2 %overloaded gcmfaces m_ll2xy function :
3 % simply calls m_map's m_ll2xy function for each face data
4 % if the first two arguments (lon and lat) are gcmfaces objects
5 % passing over the other arguments
6
7 xx=x; yy=y;
8
9 for iFace=1:x.nFaces;
10 iF=num2str(iFace);
11 eval(['[tmpx,tmpy]=m_ll2xy(x.f' iF ',y.f' iF ',varargin{:});']);
12 eval(['xx.f' iF '=tmpx; yy.f' iF '=tmpy;']);
13 end;
14
15

  ViewVC Help
Powered by ViewVC 1.1.22