Skip to content

Commit

Permalink
Adapts pymica to new gdal version lat lon order
Browse files Browse the repository at this point in the history
  • Loading branch information
ecasellas committed Feb 3, 2022
1 parent d03529c commit a8ce7dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymica/pymica.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def __init__(self, data_file, variables_file,

for point in data:
geom = ogr.Geometry(ogr.wkbPoint)
geom.AddPoint(point[self.data_format['loc_vars'][0]],
point[self.data_format['loc_vars'][1]])
geom.AddPoint(point[self.data_format['loc_vars'][1]],
point[self.data_format['loc_vars'][0]])
geom.Transform(transf)

if point[self.data_format['id_key']] in residuals:
Expand Down

0 comments on commit a8ce7dd

Please sign in to comment.