print(cat_tc['sepilok_rgb']) # Print the catalog entry details
print("URL Path:", cat_tc['sepilok_rgb'].urlpath) # Print the urlpath
# Use rioxarray to open the dataset directly from the urlpath
tc_rgb = rioxarray.open_rasterio(cat_tc['sepilok_rgb'].urlpath)
print('dims =', tc_rgb.dims, ', number of bands =', len(tc_rgb.data_vars), ', crs =', tc_rgb.rio.crs)
Я хотел напечатать URL-адрес, но получаю ошибку атрибута
Я запускаю код, который обнаруживает кроны деревьев с помощью детектора 2 и библиотеки zenodo. [code]print(cat_tc['sepilok_rgb']) # Print the catalog entry details print("URL Path:", cat_tc['sepilok_rgb'].urlpath) # Print the urlpath
# Use rioxarray to open the dataset directly from the urlpath tc_rgb = rioxarray.open_rasterio(cat_tc['sepilok_rgb'].urlpath)
print('dims =', tc_rgb.dims, ', number of bands =', len(tc_rgb.data_vars), ', crs =', tc_rgb.rio.crs) [/code] Я хотел напечатать URL-адрес, но получаю ошибку атрибута