Changeset 2453 in lmdz_wrf


Ignore:
Timestamp:
Apr 21, 2019, 10:09:02 PM (6 years ago)
Author:
lfita
Message:

Fixing `mirror_polygon'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/geometry_tools.py

    r2452 r2453  
    271271    if axis == 'x':
    272272        for iv in range(N):
    273             reflex[iv,:] = [-polygon[iv,1], polygon[iv,0]]
     273            reflex[iv,:] = [-polygon[iv,0], polygon[iv,1]]
    274274    elif axis == 'y':
    275275        for iv in range(N):
    276             reflex[iv,:] = [polygon[iv,1], -polygon[iv,0]]
     276            reflex[iv,:] = [polygon[iv,0], -polygon[iv,1]]
    277277
    278278    return reflex
Note: See TracChangeset for help on using the changeset viewer.