@@ -445,7 +445,7 @@ def tile_progress_callback(
445445
446446 except Exception as e :
447447 self .logger .warning (
448- f"Failed to download tile ({ tile_lat :.2f} , { tile_lon :.2f} ): { e } "
448+ f"Failed to download tile ({ tile_lon :.2f} , { tile_lat :.2f} ): { e } "
449449 )
450450 if progress_callback :
451451 progress_callback (
@@ -697,11 +697,11 @@ def update_progress(status: str):
697697 tile = local_tile_map .get ((tile_lon , tile_lat ))
698698 if tile is None or not tile .is_available ():
699699 self .logger .warning (
700- f"Tile ({ tile_lat :.2f} , { tile_lon :.2f} ) not available after download, skipping"
700+ f"Tile ({ tile_lon :.2f} , { tile_lat :.2f} ) not available after download, skipping"
701701 )
702702 continue
703703
704- update_progress (f"Loading tile ({ tile_lat :.2f} , { tile_lon :.2f} )" )
704+ update_progress (f"Loading tile ({ tile_lon :.2f} , { tile_lat :.2f} )" )
705705
706706 try :
707707 # Load embedding from Tile (handles both NPY and GeoTIFF formats)
@@ -721,7 +721,7 @@ def update_progress(status: str):
721721 # Ensure dimensions are valid integers
722722 if dst_width is None or dst_height is None :
723723 raise ValueError (
724- f"Failed to calculate dimensions for tile ({ tile_lat } , { tile_lon } )"
724+ f"Failed to calculate dimensions for tile ({ tile_lon } , { tile_lat } )"
725725 )
726726 dst_width = int (dst_width )
727727 dst_height = int (dst_height )
@@ -758,11 +758,11 @@ def update_progress(status: str):
758758 dataset .write (reprojected_embedding )
759759
760760 reprojected_memfiles .append (memfile )
761- update_progress (f"Reprojected tile ({ tile_lat :.2f} , { tile_lon :.2f} )" )
761+ update_progress (f"Reprojected tile ({ tile_lon :.2f} , { tile_lat :.2f} )" )
762762
763763 except Exception as e :
764764 self .logger .warning (
765- f"Failed to process tile ({ tile_lat :.2f} , { tile_lon :.2f} ): { e } "
765+ f"Failed to process tile ({ tile_lon :.2f} , { tile_lat :.2f} ): { e } "
766766 )
767767 continue
768768
@@ -918,7 +918,7 @@ def sample_embeddings_at_points(
918918 progress_callback (
919919 tile_idx ,
920920 total_tiles ,
921- f"Processing tile { tile_idx + 1 } /{ total_tiles } : ({ tile_lat :.2f} , { tile_lon :.2f} )" ,
921+ f"Processing tile { tile_idx + 1 } /{ total_tiles } : ({ tile_lon :.2f} , { tile_lat :.2f} )" ,
922922 )
923923
924924 try :
@@ -985,7 +985,7 @@ def sample_embeddings_at_points(
985985 except Exception as e :
986986 # If tile fetch/load fails, leave those points as NaN
987987 self .logger .warning (
988- f"Failed to process tile ({ tile_lat :.2f} , { tile_lon :.2f} ): { e } "
988+ f"Failed to process tile ({ tile_lon :.2f} , { tile_lat :.2f} ): { e } "
989989 )
990990 if include_metadata :
991991 for original_idx in point_indices :
@@ -1208,7 +1208,7 @@ def download_tile(
12081208 return True
12091209
12101210 except Exception as e :
1211- self .logger .error (f"Failed to download tile ({ lat :.2f} , { lon :.2f} ): { e } " )
1211+ self .logger .error (f"Failed to download tile ({ lon :.2f} , { lat :.2f} ): { e } " )
12121212 return False
12131213
12141214 def download_tiles_for_points (
@@ -2157,7 +2157,7 @@ def apply_pca_to_embeddings(
21572157 progress_callback (
21582158 i ,
21592159 total_tiles ,
2160- f"Processing tile { i + 1 } /{ total_tiles } : ({ tile_lat :.2f} , { tile_lon :.2f} )" ,
2160+ f"Processing tile { i + 1 } /{ total_tiles } : ({ tile_lon :.2f} , { tile_lat :.2f} )" ,
21612161 )
21622162
21632163 # Reshape for PCA: (height, width, channels) -> (pixels, channels)
0 commit comments