Migrate all ODC models and prediction pipeline to Microsoft Planetary Computer
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import sys
|
||||
# Thêm đường dẫn hiện tại vào PYTHONPATH để import được new_import_ODC nếu cần
|
||||
sys.path.append('.')
|
||||
import warnings
|
||||
warnings.filterwarnings('ignore')
|
||||
from new_import_ODC import load_sen1
|
||||
|
||||
print("Testing load_sen1 with a short time range to speed up Dask compute...")
|
||||
bbox = [105.5, 9.2, 106.4, 10.0]
|
||||
time_range = "2023-01-01/2023-01-31" # Short time range for fast testing
|
||||
vh, vv = load_sen1(bbox, time_range)
|
||||
print("VH shape:", vh.shape)
|
||||
print("VV shape:", vv.shape)
|
||||
print("VH CRS:", vh.rio.crs)
|
||||
print("Success!")
|
||||
Reference in New Issue
Block a user