Ignore:
Timestamp:
05/24/13 13:02:48 (12 years ago)
Author:
Eric.Larour
Message:

CHG: changed the names of _printString_ and _pprintString_
to _printf_ and _printf0_

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/wrappers/Ll2xy/Ll2xy.cpp

    r15099 r15100  
    55
    66void Ll2xyUsage(void){/*{{{*/
    7         _pprintString_("Ll2xy - lat/long to x/y coordinate transformation module:" << "\n");
    8         _pprintString_("" << "\n");
    9         _pprintString_("   This module transforms lat/long to x/y coordinates." << "\n");
    10         _pprintString_("" << "\n");
    11         _pprintString_("   Usage:" << "\n");
    12         _pprintString_("      [x,y]=Ll2xy(lat,lon,sgn,'param name',param,...);" << "\n");
    13         _pprintString_("" << "\n");
    14         _pprintString_("      lat         latitude coordinates (double vector)" << "\n");
    15         _pprintString_("      lon         longitude coordinates (double vector)" << "\n");
    16         _pprintString_("      sgn         sign for hemisphere (double, +1 (north) or -1 (south))" << "\n");
    17         _pprintString_("" << "\n");
    18         _pprintString_("      central_meridian     central meridian (double, optional, but must specify with sp)" << "\n");
    19         _pprintString_("      standard_parallel    standard parallel (double, optional, but must specify with cm)" << "\n");
    20         _pprintString_("" << "\n");
    21         _pprintString_("      x           x coordinates (double vector)" << "\n");
    22         _pprintString_("      y           y coordinates (double vector)" << "\n");
    23         _pprintString_("" << "\n");
    24         _pprintString_("   Examples:" << "\n");
    25         _pprintString_("      [x,y]=Ll2xy(lat,lon, 1);" << "\n");
    26         _pprintString_("      [x,y]=Ll2xy(lat,lon, 1,'central_meridian',45,'standard_parallel',70);" << "\n");
    27         _pprintString_("      [x,y]=Ll2xy(lat,lon,-1,'central_meridian', 0,'standard_parallel',71);" << "\n");
    28         _pprintString_("" << "\n");
     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");
    2929}/*}}}*/
    3030WRAPPER(Ll2xy){
     
    6464        if(options->GetOption("central_meridian") || options->GetOption("standard_parallel")){
    6565                options->Get(&cm,"central_meridian");
    66                 if (verbose) _printString_("  cm=" << cm << "\n");
     66                if (verbose) _printf_("  cm=" << cm << "\n");
    6767                options->Get(&sp,"standard_parallel");
    68                 if (verbose) _printString_("  sp=" << sp << "\n");
     68                if (verbose) _printf_("  sp=" << sp << "\n");
    6969        }
    7070
    7171        /*some checks*/
    72         if (verbose) _printString_("Checking inputs:" << "\n");
     72        if (verbose) _printf_("Checking inputs:" << "\n");
    7373        if (nlat != nlon){_error_("Must have same number of lat[" << nlat << "] and lon[" << nlon << "] coordinates.");}
    7474        else                ncoord=nlat;
Note: See TracChangeset for help on using the changeset viewer.