chore(raw_to_rgba.py): 更新文件元信息、调整导入顺序与示例注释
移除未使用的sys导入语句,重新调整导入包的排版顺序,同时更新示例代码中的本地测试路径注释
This commit is contained in:
parent
5e96d0e026
commit
ea31ad93cc
@ -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"
|
||||
# )
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user