Skip to content

Commit

Permalink
more attempts to isolate projection issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kcartier-wri committed Sep 3, 2024
1 parent 0aefba2 commit 34759aa
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions city_metrix/layers/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,16 @@ def get_image_collection(
print(f"Extracting layer {name} from Google Earth Engine for bbox {bbox}:")
data = ds.compute()

crs_orig = ds_orig.attrs['crs']
crs_modified = ds.attrs['crs']
print('CRS: %s' % (crs_orig))
print('CRS: %s' % (crs_modified))

x_val_orig = ds_orig.coords['lon'].values.min()
x_val_modified = ds.coords['X'].values.min()
print('Org_x: %s' % (x_val_orig))
print('Modified_x: %s' % (x_val_modified))

crs_orig = ds_orig.attrs['crs']
crs_modified = ds.attrs['crs']
print('CRS: %s, Org_x: %s' % (crs_orig, x_val_orig))
print('CRS: %s, Modified_x: %s' % (crs_modified, x_val_modified))


# get in rioxarray format
Expand Down

0 comments on commit 34759aa

Please sign in to comment.