-
Notifications
You must be signed in to change notification settings - Fork 50
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
"not all values found in index 'lat'" #164
Comments
Hi @BenjaminFTurner - I took a look at your setup and it appears that there is a slight difference in the latitudes between the domain and forcing data. Note the difference starting around the 5th decimal place:
Currently, MetSim requires these to be exact, so I would suggest simply rounding these values so that they match. |
Thank you very much, Andrew, for taking the time to look at this and reply with a suggestion. My domain and forcings data were based on the same grid, but the domain data had been processed slightly with my R script which introduced some rounding error. To make them the same, I just used the domain coordinates, and I added some code in my script to verify that the forcings coordinates were the same within a tolerable error. So this issue is fixed for me. Because it may not be obvious that the coordinates need to match exactly, however, I suggest that either the docs be updated to reflect this or something in the code check this to provide a more human-understandable error message. Thanks for the free software! - Ben |
Hello. I'm getting the following error when attempting to run MetSim (installed yesterday with "pip install metsim"):
From the looks of it, it seems that there is a problem reading the forcings file. The data for this file look like this:
I'm not sure if it matters, but I made sure that the lengths of the lat and lon vectors match those in the domain file, and they are all increasing in value. The dimensions of the variables all seem to check out, and I've run out of ideas for other things to check.
Please let me know if you have any advice.
Ben
[Edit: adding files: metsim.zip]
The text was updated successfully, but these errors were encountered: