@@ -1275,9 +1275,9 @@ def distance_to_anomaly_cli(
1275
1275
1276
1276
Uses only the first band of the raster.
1277
1277
"""
1278
- from sys import platform
1278
+ # from sys import platform
1279
1279
1280
- from eis_toolkit .raster_processing .distance_to_anomaly import distance_to_anomaly , distance_to_anomaly_gdal
1280
+ from eis_toolkit .raster_processing .distance_to_anomaly import distance_to_anomaly
1281
1281
1282
1282
typer .echo ("Progress: 10%" )
1283
1283
@@ -1288,23 +1288,23 @@ def distance_to_anomaly_cli(
1288
1288
1289
1289
with rasterio .open (input_raster ) as raster :
1290
1290
typer .echo ("Progress: 25%" )
1291
- # Use optimized version if Windows
1292
- if platform == "win32" :
1293
- out_image , out_meta = distance_to_anomaly_gdal (
1294
- anomaly_raster_profile = raster .profile ,
1295
- anomaly_raster_data = raster .read (1 ),
1296
- threshold_criteria_value = threshold_criteria_value ,
1297
- threshold_criteria = get_enum_values (threshold_criteria ),
1298
- max_distance = max_distance ,
1299
- )
1300
- else :
1301
- out_image , out_meta = distance_to_anomaly (
1302
- anomaly_raster_profile = raster .profile ,
1303
- anomaly_raster_data = raster .read (1 ),
1304
- threshold_criteria_value = threshold_criteria_value ,
1305
- threshold_criteria = get_enum_values (threshold_criteria ),
1306
- max_distance = max_distance ,
1307
- )
1291
+ # # Use optimized version if Windows
1292
+ # if platform == "win32":
1293
+ # out_image, out_meta = distance_to_anomaly_gdal(
1294
+ # anomaly_raster_profile=raster.profile,
1295
+ # anomaly_raster_data=raster.read(1),
1296
+ # threshold_criteria_value=threshold_criteria_value,
1297
+ # threshold_criteria=get_enum_values(threshold_criteria),
1298
+ # max_distance=max_distance,
1299
+ # )
1300
+ # else:
1301
+ out_image , out_meta = distance_to_anomaly (
1302
+ anomaly_raster_profile = raster .profile ,
1303
+ anomaly_raster_data = raster .read (1 ),
1304
+ threshold_criteria_value = threshold_criteria_value ,
1305
+ threshold_criteria = get_enum_values (threshold_criteria ),
1306
+ max_distance = max_distance ,
1307
+ )
1308
1308
1309
1309
typer .echo ("Progress: 75%" )
1310
1310
0 commit comments