파이썬 2.6 스크립트를 사용하고 있습니다. 필자는 꽤 오랫동안 사용 해왔다. 파이썬 스크립트는 여기에 코드파이썬과 netCDF sciprt가 더 이상 작동하지 않습니다.
from numpy import *
import numpy as numpy
from netCDF4 import Dataset
import datetime as DT
from time import strftime
import os
floc ='/media/USB-HDD/NCEP_NCAP data/data_2010/' #location of directory that the file resides
fname ='cfsr_Scotland_2010' # name of the netCDF file
in_ext = '.nc' # ending extentsion of the netCDF
basetime = DT.datetime(2010,01,01,0,0,0) # Initial time (start) for the netCDF
ncfile = Dataset(floc+fname+in_ext,'r') # netCDF assigned name
time = ncfile.variables['time']
lon = ncfile.variables['lon']
lat = ncfile.variables['lat']
uwind = ncfile.variables['10u']
vwind = ncfile.variables['10v']
ht = ncfile.variables['height']
내가 그 작성 방법을 확인 홀수 원인 인 ncfile 이름에있는 오류는의 netCDF의 파일이있는 곳의 위치를 형성 실행
Traceback (most recent call last):
File "CFSR2WIND.py", line 24, in <module>
ncfile = Dataset(floc+fname+in_ext,'r') # netCDF assigned name
File "netCDF4.pyx", line 1317, in netCDF4.Dataset.__init__ (netCDF4.c:14608)
RuntimeError: No such file or directory
당신에게
조지
,536 감사이 원인이 어떤 이유은 아무도 알고 있나요, 어떻게 그것은
를 해결할 수있다