def Modelling(inPathNetCDF, inPathCov, outPath, concentration): netcdfName = os.path.basename(inPathNetCDF).split('.')[0] covName = os.path.basename(inPathCov) env.workspace = outPath netcdfList = netcdfName.split('_')[4] modelName = (netcdfName.split('_')[2]).lower() dateForTitle = netcdfList[6:8] + netcdfList[4:6] + netcdfList[:4] date18Z = netcdfList[6:8] + '/' + netcdfList[4:6] + '/' + netcdfList[:4] arcpy.MakeNetCDFRasterLayer_md(inPathNetCDF, 'IceConc', 'lon', 'lat', 'tmpNetCDF18', '', '"time" "%s 6:00:00 PM"' %date18Z, 'BY_VALUE') arcpy.CopyRaster_management('tmpNetCDF18', outPath + os.sep + outNetcdfName18Z)
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.