用pycharm和python进行调试

时间:2019-06-12 09:08:52

标签: pycharm

enter image description here我正在尝试调试以下代码:

import gdal

def create(folder):
    src_ds=gdal.Open(folder)

    subdataset = 'HDF5:"' +'E:\Ioannis_MarineEO_Task1\SST\VIRS\V2019156000000.L2_SNPP_SST.nc' + '":' + '//geophysical_data/sst'
    src_ds_sd = gdal.Open (subdataset)

    #
    options=gdal.WarpOptions(tps=True,dstSRS='EPSG:4326')
    temp=gdal.Warp('E:/Ioannis_MarineEO_Task1/sst1.tif',src_ds_sd,options=options)

    src_ds = gdal.Open(temp)
    temp = None
    upx, xres, xskew, upy, yskew, yres = src_ds.GetGeoTransform()
    print(upx, xres, xskew, upy, yskew, yresv)
    return

create('E:\Ioannis_MarineEO_Task1\SST\VIRS\V2019156000000.L2_SNPP_SST.nc')

为此,我正在使用pycharm。但是,当我运行它时,变量部分已断开连接。有什么想法吗?

我已附上图片。

0 个答案:

没有答案