From 34759aa0c0ab9b65920544417a0251a158434ec5 Mon Sep 17 00:00:00 2001 From: Kenn Cartier Date: Tue, 3 Sep 2024 10:33:23 -0700 Subject: [PATCH] more attempts to isolate projection issue --- city_metrix/layers/layer.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/city_metrix/layers/layer.py b/city_metrix/layers/layer.py index 74eedfe..7678fb6 100644 --- a/city_metrix/layers/layer.py +++ b/city_metrix/layers/layer.py @@ -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