Ignore:
Timestamp:
10/18/19 00:13:27 (5 years ago)
Author:
jdquinn
Message:

BUG: Extra spaces (committing progress, but grep and manual fix is taking too long; will talk tomorrow to Basile about reverting and modifying his syntax parsing script)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/coordsystems/ll2xy.py

    r24213 r24254  
    1414      x, y = ll2xy(lat, lon, sgn, central_meridian, standard_parallel)
    1515
    16  - sgn = Sign of latitude + 1 : north latitude (default is mer = 45 lat = 70)
    17  - 1 : south latitude (default is mer = 0  lat = 71)
     16 - sgn = Sign of latitude       1 : north latitude (default is mer = 45 lat = 70)
     17                                                   -1 : south latitude (default is mer = 0  lat = 71)
    1818    '''
    1919
    20     assert sgn == 1 or sgn == - 1, 'error: sgn should be either + 1 or - 1'
     20    assert sgn == 1 or sgn == -1, 'error: sgn should be either 1 or -1'
    2121
    2222    #Get central_meridian and standard_parallel depending on hemisphere
     
    5353        rho = re * mc * T / tc
    5454
    55     y = - rho * sgn * np.cos(sgn * longitude)
     55    y = -rho * sgn * np.cos(sgn * longitude)
    5656    x = rho * sgn * np.sin(sgn * longitude)
    5757
Note: See TracChangeset for help on using the changeset viewer.