我正在尝试从NetCDF文件中提取“乐队名称”,并给了我一个我无法识别的语法错误。乐队名称由M3C13标识,我只想在M3C之后提取13 。我的代码是:
channel_13 = 'C13/OR_ABI-L2-CMIPF-M3C13_G16_s20180391900384_e20180391911162_c20180391911244.nc'
path_30 = '/Volumes/Anthonys_backup/Masters_Thesis/Satellite_Data/new/'
# Path to the GOES-R simulated image file
path = path_30 + channel_13
# Search for the GOES-R channel in the file name
Band = (path[<span class="skimlinks-unlinked">path.find("M3C")+3:path.find("_G16</span>I Band: " + Band)
print(Band)
有什么建议吗?