-
Notifications
You must be signed in to change notification settings - Fork 12
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
Create instrument swath outlines as shapefiles #93
base: main
Are you sure you want to change the base?
Conversation
…shapefile support Signed-off-by: Adam.Dybbroe <[email protected]>
Signed-off-by: Adam.Dybbroe <[email protected]>
…ine-shapefile # Conflicts: # trollsched/tests/test_satpass.py
Signed-off-by: Adam.Dybbroe <[email protected]>
Signed-off-by: Adam.Dybbroe <[email protected]>
Signed-off-by: Adam.Dybbroe <[email protected]>
Signed-off-by: Adam.Dybbroe <[email protected]>
Signed-off-by: Adam.Dybbroe <[email protected]>
Signed-off-by: Adam.Dybbroe <[email protected]>
Signed-off-by: Adam.Dybbroe <[email protected]>
Signed-off-by: Adam.Dybbroe <[email protected]>
Here an example of how the script can be run: |
Could you add something like that example you gave to the docs? |
Signed-off-by: Adam.Dybbroe <[email protected]>
Signed-off-by: Adam.Dybbroe <[email protected]>
Signed-off-by: Adam.Dybbroe <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #93 +/- ##
==========================================
+ Coverage 55.71% 60.49% +4.77%
==========================================
Files 14 18 +4
Lines 2107 2278 +171
==========================================
+ Hits 1174 1378 +204
+ Misses 933 900 -33 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Adam.Dybbroe <[email protected]>
Signed-off-by: Adam.Dybbroe <[email protected]>
Good point, absolutely. I have added a bare minimum at least. |
Signed-off-by: Adam.Dybbroe <[email protected]>
Signed-off-by: Adam.Dybbroe <[email protected]>
Test closing, then opening, to trigger RTD pages build on PRs |
@TAlonglong @pnuu @mraspaud |
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.
Some suggestions and requests inline.
Co-authored-by: Panu Lahtinen <[email protected]>
Signed-off-by: Adam.Dybbroe <[email protected]>
…schedule into swathoutline-shapefile
Signed-off-by: Adam.Dybbroe <[email protected]>
Signed-off-by: Adam.Dybbroe <[email protected]>
Co-authored-by: Panu Lahtinen <[email protected]>
I think I should have actually removed the |
Signed-off-by: Adam.Dybbroe <[email protected]>
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.
Wow, thanks a lot for the huge work in cleaning this package up! Looks good in general, but I have a few comments and suggestions/requests inline
continue | ||
|
||
if platform_name not in satellites: | ||
continue | ||
try: | ||
overpass = create_pass(platform_name, instrument, | ||
datetime.strptime(child.attrib["start-time"], | ||
"%Y-%m-%d-%H:%M:%S"), | ||
datetime.strptime(child.attrib["end-time"], | ||
"%Y-%m-%d-%H:%M:%S"), | ||
tle_filename=tle_file) | ||
except KeyError: | ||
continue |
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.
imo these continue
s should be replaced by log messages.
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.
Not all of them!? Not "replaced"? I don't want to try create a pass if the instrument is None or the platform-name not requested...
How do you mean?
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.
I mean that if one of these continues is reached, something is not going as planned, right? so shouldn’t we log about it?
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.
I believe this is fixed now
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.
I think we need to figure out if the the KeyError part can be tested and when/why that actually might happen?
…errors Signed-off-by: Adam.Dybbroe <[email protected]>
Co-authored-by: Martin Raspaud <[email protected]>
Co-authored-by: Martin Raspaud <[email protected]>
Signed-off-by: Adam.Dybbroe <[email protected]>
Signed-off-by: Adam.Dybbroe <[email protected]>
…schedule into swathoutline-shapefile
…nd line args Signed-off-by: Adam.Dybbroe <[email protected]>
Signed-off-by: Adam.Dybbroe <[email protected]>
Signed-off-by: Adam.Dybbroe <[email protected]>
- sphinx_rtd_theme | ||
- sphinxcontrib-apidoc | ||
- trollsift | ||
- xarray |
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.
do we need xarray here?
This PR adds a script to create Satellite instrument swath outlines in shapefile format, e.g. for use in an WMS/WFS service.
Also some re-factoring has been done in this PR.
git diff origin/main **/*py | flake8 --diff