-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add a Command Line Interface #184
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #184 +/- ##
========================================
Coverage 95.93% 95.93%
========================================
Files 12 14 +2
Lines 3098 3246 +148
========================================
+ Hits 2972 3114 +142
- Misses 126 132 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
This looks very interesting! Do you have an example of how to use this? To process old data, where we no longer have logfiles to recover a posstroll message from, we'd have to construct the JSON manually to pass this on the command line? |
example usage: satpy_cli -p pl.yaml ~/data/satellite/Meteosat-11/seviri/lvl1.5/2018/02/28/HRIT/* -m '{"start_time": "201802281500", "platform_name": "MSG4"}' |
I tried
but this fails with
if I process the same files with
then everything seems fine. |
could you show us |
And I know why it's happening too: normally |
How would I encode a |
If you just use |
Ok, so there is not default encoding for datetimes in json. However, in posttroll we do have a codec for datetimes that we could use here. I'll have a look. |
For the cli tool recently added in pytroll#184, this adds an option to profile the run via dask and visualise the output as a bokeh plot.
@gerritholl @pnuu This is now ready I think |
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.
Just one minor comment inline. LGTM
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
This PR adds a command line interface (CLI) to trollflow2.
This allows for easier launching in environments that might not have posttroll messaging enabled or for batch reprocessing.
flake8 trollflow2
AUTHORS.md
if not there already