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
Mimic TPW Reader #858
Mimic TPW Reader #858
Conversation
not good files to use as an example.
…t. Add tpwGrid to yaml because the automatic detection is not adding the tpwGrid variable to the handled_variables outside of debugging mode in pycharm. This is still not a model of code to follow.
"Fix" the area definition, because the data is in degrees and needs longlat projection from Proj4 but I am not sure if that was the only thing wrong.
…oarse and fine mimic files Since the mimic files for the coarse and fine resolution are named exactly the same, errors and failure result when data variables are described in yaml. Follow TommyJ approach to extracting any data variable that matches navigation shape. This then smoothly reads all the variables in the coarse resolution files, while still being able to read the single tpwGrid variable in the fine resolution files. The coordinates of 'latitude', 'longitude' were returing datasetID errors and were removed from the new_info update for the tpw variables
Fix informational text for reader
Codecov Report
@@ Coverage Diff @@
## master #858 +/- ##
==========================================
+ Coverage 87.36% 87.39% +0.02%
==========================================
Files 185 188 +3
Lines 28446 28621 +175
==========================================
+ Hits 24853 25012 +159
- Misses 3593 3609 +16
Continue to review full report at Codecov.
|
I cannot resample using the built-in scn.resample() method. I think there must be something wrong with the way the data is being loaded. I need to look into this. |
Re-open and just try to fix the problem with the pull request open. |
That is an interesting question, it is an addition I made before finding out that the resampling issue was due to the area_of_influence setting in resample. I looked more closely at why I thought it was a keyword. It can be included in certain AreaDefinitions from certain methods (I think) but may not be appropriate here. When I first wrote the code in that section, I was thinking that the grid spacing of the longlat proj would be inferred... Here is the documentation that included resolution, but looking at it closer, it might be the wrong doc again: https://pyresample.readthedocs.io/en/stable/geometry_utils.html#areadefinition-creation In particular, it does not accept a tuple resolution as documented. |
That is for the |
@joleenf Could you merge this with master again to see if the tests pass? |
@djhoese How would I merge this again? I have a message that "Merging is blocked." I am not authorized. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for adding this new reader for precip products !
Could you just add the test suite to the master suite for readers in satpy/tests/reader_tests/__init__.py
?
Tests failing with:
I don't think |
…2_nc in import block. Merge branch 'master' of https://github.com/pytroll/satpy into mimic
…module added Merge branch 'master' of https://github.com/pytroll/satpy into mimic
Mimic TPW reader for files from SSEC, reads both the coarse and fine scale equirectangular grids produced. Addresses #807
flake8 satpy
No - Weird error that I cannot figure out..."flake8-docstrings" failed during execution due to "module 'pydocstyle' has no attribute 'tokenize_open'" Run flake8 with greater verbosity to see more details.
I ran flake8 with doctstrings extension and could not reproduce outside of pre-commit environment.