Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@monocongo I had some time so I took the bait and worked on the Palmer Drought Severity Index. I took the existing Fortran code from NOAA and parsed it to Python. I tried to keep the process flow the same and just change the syntax so that it would be easy to reference back. Therefore, the resulting code is not very pythonic. I think later on some enhancements and efficiencies could be gained, but at least it works.
I developed a suite of tests by running the Fortran code on all the available climate division data (downloaded from NOAA here), and then extracting the results. Some tweaks had to be made to the original Fortran code in order to get around differences in rounding errors. I stored these in fixture files to use in the pytests. These are the bulk of the file changes. I'm not sure what style preferences you have so I'm happy to restructure this - this just seemed the most logical layout to me.
Please let me know if I need to do anything else to support the pull request.