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
Lat / Lon not correctly read from forcing #132
Comments
Thanks @StephanThober for the report. I suspect this is one of two things.
This could also be causing a problem. |
@arbennett may have other ideas though... |
Having a time dimension in the lat/lon variables may cause issues, but that doesn't appear to be what's happening here (from the traceback at least). @StephanThober I looked at your example, but the netcdf files were not in the |
@StephanThober thanks for sending along your input. I looked into this and there are a couple of things that need to be done to get you up and running. First, I would recommend making sure that you have the most up to date version of MetSim by running: There a couple of changes to the configuration file that are necessary. The issue with the
The domain file Finally, there is one other thing that you will need to change to make everything work. You are currently using Let me know if you have any other questions! |
@arbennett Thanks for your advice! I installed the latest version, corrected the config file (sorry for that), removed the time variable from the static file and changed the start time to 1979/5/1:0. I also had to add a variable swe in the forcing_orig.nc file. In disaggregate.py in line 62, I had to change df_daily.index[-1][0] to df_daily.index[-1] and in line 64, I had to change df_daily.index[0][0] to df_daily.index[0]. Now, I get the following error: Traceback (most recent call last): The problem seems to be that df_daily contains no values at this location, so the error message makes sense. Is it a problem that I have cells with no data values in the forcing file? |
If you had to add Alternatively, usually the error you posted happens with you have data points with |
@StephanThober just wanted to give you an update. We have released version 1.1.0, so you should be able to reinstall MetSim with |
@arbennett I did this, but now get another error related to Numba, that you find below. But again, it seems that the program tries to work on an empty data frame because the basin only covers a part of the netcdf file? Is metsim able to deal with this? Thanks in advance! The Numba error looks like this: ./ms darling_1979.conf
File "../../py_venvs/python3.6.4_venv/lib/python3.6/site-packages/metsim/physics.py", line 231: This is not usually a problem with Numba itself but instead often caused by To see Python/NumPy features supported by the latest release of Numba visit: For more information about typing errors and how to debug them visit: If you think your code should work with Numba, please report the error message |
Hi @StephanThober sorry for the late reply. I have been unable to reproduce this issue, are you still experiencing it? |
@arbennett : Unfortunately, yes. :( Did you use my configuration file that I provided? Could you share your pip list? I updated my numba version to 0.39.0, but this also did not help. Just for clarification, metsim is able to deal with domains that contain entire cells with missing values? |
I have been testing more on your data and was able to reproduce your issue. I think the root cause was a versioning issue in In the mean time, if you would like to try I have my fix at https://github.com/arbennett/MetSim/tree/bugfix/lat_list and you can install it with: Let me know if this works! |
@arbennett That did it! Thanks a lot Andrew. I can finally start working with this tool :) |
Hi all,
first of all, thank you for developing this nice tool. I try to use for one catchment I am studying, but get the following error:
I attach for you here my pip list:
pip_list.txt
and the tarball of config and input files:
example.zip
Thanks in advance for your help! If you have any questions, please let me know.
Stephan
The text was updated successfully, but these errors were encountered: