diff --git a/src/utils/raw_to_rgba.py b/src/utils/raw_to_rgba.py index 8077a32..500a240 100644 --- a/src/utils/raw_to_rgba.py +++ b/src/utils/raw_to_rgba.py @@ -13,18 +13,18 @@ ------------------------------------------------------------------------------- Authors: CVEO Team -Last Updated: 2025-01-08 +Last Updated: 2026-05-18 =============================================================================== """ import os -import sys from pathlib import Path from typing import List, Optional + import numpy as np -from PIL import Image -from osgeo import gdal import xarray as xr +from osgeo import gdal +from PIL import Image from rioxarray import open_rasterio gdal.UseExceptions() @@ -239,7 +239,7 @@ def combine_bands_to_rgb( if __name__ == "__main__": - # tif_dir = "D:\\Open_EarthData_Tools\\data\\HLS\\2024\\2024012" + # tif_dir = "D:\\open-earthdata-cli\\data\\HLS\\2024\\2024012" # red_path = os.path.join( # tif_dir, "HLS.S30.T49RGP.2024012T031101.v2.0.RED.subset.tif" # ) @@ -251,7 +251,7 @@ if __name__ == "__main__": # ) # output_path = os.path.join(tif_dir, "HLS.S30.T49RGP.2024012T031101.v2.0.RGB.tif") - # tif_dir = "D:\\Open_EarthData_Tools\\data\\HLS\\2025\\2025011" + # tif_dir = "D:\\open-earthdata-cli\\data\\HLS\\2025\\2025011" # red_path = os.path.join( # tif_dir, "HLS.S30.T49RGP.2025011T031009.v2.0.RED.subset.tif" # )