Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: File for year:2014 not found #7

Open
duguangmeiyu opened this issue Jul 29, 2020 · 3 comments
Open

IndexError: File for year:2014 not found #7

duguangmeiyu opened this issue Jul 29, 2020 · 3 comments

Comments

@duguangmeiyu
Copy link

Hello, I have faced the following problem and I used python 2.7 to run this code,can you help me to solve this problem please?Thank you very much.

data dir data/prism/ppt/raw
Traceback (most recent call last):
File "prism.py", line 361, in
main_prism_tf(config)
File "prism.py", line 324, in main_prism_tf
config.get('Paths', 'elevation'), model=model.lower())
File "prism.py", line 187, in init
super(PrismSuperRes, self).init(data_dir, year, elevation_file, var=var)
File "prism.py", line 155, in init
self.read_data()
File "prism.py", line 178, in read_data
self._read_highres()
File "prism.py", line 169, in _read_highres
highres_file = self._get_year_file()
File "prism.py", line 164, in _get_year_file
raise IndexError("File for year:%i not found" % self.year)
IndexError: File for year:2014 not found

@daman1209arora
Copy link

You need to enable internet access on your machine, and download the dataset.

@Afshinshafei
Copy link

I have the same problem. I am using google colab, and have the same error.

@XiaochenLiuUnibz
Copy link

So how to solve this problem on colab?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants