-
Notifications
You must be signed in to change notification settings - Fork 168
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
Attribute error #506
Comments
I'm unfamiliar with a script named Please follow up with the stack trace, as helpful error messages will be contained therein, leading to the problem. |
I was following the YouTube tutorial from Nasa, there I got the code. But I think I was wrong all along. I have to use this python script in my Jupyter notebook to get work done, right? It would be really helpful if there is a video dedicated "how to calculate SPI?" as I am new to python. |
The NASA video and tutorial use ancient versions of this code. Please re-install from the master branch -- I think you'll get much better results, though there may also be other issues where the NASA training is outdated. They didn't coordinate with me when they put together this training material, and as a result, several things are off and I have had to try to help numerous users like you before. I will hopefully be able to put together an example notebook to explain how to use this package for new Python users like you @farheen2022 . The main idea is to get the precipitation timeseries data into a numpy array, then compute the corresponding index values using the |
An example notebook would be very helpful in executing this code. |
Please install from the master branch of this repository.
|
While running the code "python process_grid.py --index spi --time_series_type monthly --netcdf_precip ../example_inputs/ds.nc --var_name_precip pre --output_file_base ../results/cru --scales 1 --calibration_start_year 1999 --calibration_end_year 2000" in anaconda prompt in indices_env environment. I am getting: AttributeError: module 'climate_indices.indices' has no attribute 'spi_gamma'
Kindly help me to fix this problem
The text was updated successfully, but these errors were encountered: