Changeset 15396 for issm/trunk/src/wrappers/Ll2xy/Ll2xy.cpp
- Timestamp:
- 07/02/13 09:24:16 (12 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:ignore
-
old new 1 par 2 ad 3 proj-* 1 4 projects 2 5 autom4te.cache
-
- Property svn:mergeinfo changed
/issm/trunk-jpl merged: 14311,14313,14316-14506,14508-15387,15390-15392
- Property svn:ignore
-
issm/trunk/src
- Property svn:mergeinfo changed
-
issm/trunk/src/wrappers/Ll2xy/Ll2xy.cpp
r13236 r15396 5 5 6 6 void Ll2xyUsage(void){/*{{{*/ 7 _p printLine_("Ll2xy - lat/long to x/y coordinate transformation module:");8 _p printLine_("");9 _p printLine_(" This module transforms lat/long to x/y coordinates.");10 _p printLine_("");11 _p printLine_(" Usage:");12 _p printLine_(" [x,y]=Ll2xy(lat,lon,sgn,'param name',param,...);");13 _p printLine_("");14 _p printLine_(" lat latitude coordinates (double vector)");15 _p printLine_(" lon longitude coordinates (double vector)");16 _p printLine_(" sgn sign for hemisphere (double, +1 (north) or -1 (south))");17 _p printLine_("");18 _p printLine_(" central_meridian central meridian (double, optional, but must specify with sp)");19 _p printLine_(" standard_parallel standard parallel (double, optional, but must specify with cm)");20 _p printLine_("");21 _p printLine_(" x x coordinates (double vector)");22 _p printLine_(" y y coordinates (double vector)");23 _p printLine_("");24 _p printLine_(" Examples:");25 _p printLine_(" [x,y]=Ll2xy(lat,lon, 1);");26 _p printLine_(" [x,y]=Ll2xy(lat,lon, 1,'central_meridian',45,'standard_parallel',70);");27 _p printLine_(" [x,y]=Ll2xy(lat,lon,-1,'central_meridian', 0,'standard_parallel',71);");28 _p printLine_("");7 _printf0_("Ll2xy - lat/long to x/y coordinate transformation module:\n"); 8 _printf0_("\n"); 9 _printf0_(" This module transforms lat/long to x/y coordinates.\n"); 10 _printf0_("\n"); 11 _printf0_(" Usage:\n"); 12 _printf0_(" [x,y]=Ll2xy(lat,lon,sgn,'param name',param,...);\n"); 13 _printf0_("\n"); 14 _printf0_(" lat latitude coordinates (double vector)\n"); 15 _printf0_(" lon longitude coordinates (double vector)\n"); 16 _printf0_(" sgn sign for hemisphere (double, +1 (north) or -1 (south))\n"); 17 _printf0_("\n"); 18 _printf0_(" central_meridian central meridian (double, optional, but must specify with sp)\n"); 19 _printf0_(" standard_parallel standard parallel (double, optional, but must specify with cm)\n"); 20 _printf0_("\n"); 21 _printf0_(" x x coordinates (double vector)\n"); 22 _printf0_(" y y coordinates (double vector)\n"); 23 _printf0_("\n"); 24 _printf0_(" Examples:\n"); 25 _printf0_(" [x,y]=Ll2xy(lat,lon, 1);\n"); 26 _printf0_(" [x,y]=Ll2xy(lat,lon, 1,'central_meridian',45,'standard_parallel',70);\n"); 27 _printf0_(" [x,y]=Ll2xy(lat,lon,-1,'central_meridian', 0,'standard_parallel',71);\n"); 28 _printf0_("\n"); 29 29 }/*}}}*/ 30 30 WRAPPER(Ll2xy){ … … 64 64 if(options->GetOption("central_meridian") || options->GetOption("standard_parallel")){ 65 65 options->Get(&cm,"central_meridian"); 66 if (verbose) _print Line_(" cm=" << cm);66 if (verbose) _printf_(" cm=" << cm << "\n"); 67 67 options->Get(&sp,"standard_parallel"); 68 if (verbose) _print Line_(" sp=" << sp);68 if (verbose) _printf_(" sp=" << sp << "\n"); 69 69 } 70 70 71 71 /*some checks*/ 72 if (verbose) _print Line_("Checking inputs:");72 if (verbose) _printf_("Checking inputs:\n"); 73 73 if (nlat != nlon){_error_("Must have same number of lat[" << nlat << "] and lon[" << nlon << "] coordinates.");} 74 74 else ncoord=nlat;
Note:
See TracChangeset
for help on using the changeset viewer.