C:\Users\12114\anaconda3\envs\Missyao\python.exe "D:/Program Files/JetBrains/PyCharm 2023.1/plugins/python/helpers/pydev/pydevconsole.py" --mode=client --host=127.0.0.1 --port=13819
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['D:\\py\\pythonProject1'])
PyDev console: starting.
Python 3.11.12 | packaged by conda-forge | (main, Apr 10 2025, 22:09:00) [MSC v.1943 64 bit (AMD64)] on win32
runfile('D:\\py\\pythonProject1\\tem相关性.py', wdir='D:\\py\\pythonProject1')
Warning 3: Cannot find gdalvrt.xsd (GDAL_DATA is not defined)
Traceback (most recent call last):
File "rasterio\\_base.pyx", line 310, in rasterio._base.DatasetBase.__init__
File "rasterio\\_base.pyx", line 221, in rasterio._base.open_dataset
File "rasterio\\_err.pyx", line 359, in rasterio._err.exc_wrap_pointer
rasterio._err.CPLE_OpenFailedError: vegetation.tif: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Program Files\JetBrains\PyCharm 2023.1\plugins\python\helpers\pydev\pydevconsole.py", line 364, in runcode
coro = func()
^^^^^^
File "<input>", line 1, in <module>
File "D:\Program Files\JetBrains\PyCharm 2023.1\plugins\python\helpers\pydev\_pydev_bundle\pydev_umd.py", line 198, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Program Files\JetBrains\PyCharm 2023.1\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "D:\py\pythonProject1\tem相关性.py", line 46, in <module>
calculate_correlation_tif(
File "D:\py\pythonProject1\tem相关性.py", line 8, in calculate_correlation_tif
with rasterio.open(veg_tif) as src_veg:
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\12114\anaconda3\envs\Missyao\Lib\site-packages\rasterio\env.py", line 463, in wrapper
return f(*args, **kwds)
^^^^^^^^^^^^^^^^
File "C:\Users\12114\anaconda3\envs\Missyao\Lib\site-packages\rasterio\__init__.py", line 356, in open
dataset = DatasetReader(path, driver=driver, sharing=sharing, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "rasterio\\_base.pyx", line 312, in rasterio._base.DatasetBase.__init__
rasterio.errors.RasterioIOError: vegetation.tif: No such file or directory
最新发布