Skip to content
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 documentation on creating composites #513

Closed
wants to merge 698 commits into from
Closed

Conversation

pnuu
Copy link
Member

@pnuu pnuu commented Nov 22, 2018

This PR updates the documentatin on compositors and how the composites can be created and further configured in YAML.

@coveralls
Copy link

coveralls commented Nov 22, 2018

Coverage Status

Coverage increased (+0.3%) to 74.621% when pulling 755d2ef on document-composites into a7b3bc5 on master.

@codecov
Copy link

codecov bot commented Nov 22, 2018

Codecov Report

Merging #513 into master will increase coverage by 1.21%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #513      +/-   ##
==========================================
+ Coverage   74.31%   75.53%   +1.21%     
==========================================
  Files         136      137       +1     
  Lines       18188    20948    +2760     
==========================================
+ Hits        13517    15823    +2306     
- Misses       4671     5125     +454
Impacted Files Coverage Δ
satpy/composites/__init__.py 48% <ø> (+6.85%) ⬆️
satpy/writers/ninjotiff.py 16.66% <0%> (-4.39%) ⬇️
satpy/readers/scatsat1_l2b.py 20% <0%> (-3.53%) ⬇️
satpy/tests/reader_tests/test_utils.py 69.23% <0%> (-2.94%) ⬇️
satpy/readers/fci_fdhsi.py 17.82% <0%> (-2.4%) ⬇️
satpy/readers/gac_lac_l1.py 10.14% <0%> (-1.86%) ⬇️
satpy/readers/li_l2.py 23.46% <0%> (-0.42%) ⬇️
satpy/tests/test_plugin.py 0% <0%> (ø) ⬆️
satpy/tests/test_utils.py 100% <0%> (ø) ⬆️
satpy/readers/amsr2_l1b.py 100% <0%> (ø) ⬆️
... and 42 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a7b3bc5...e2cd34e. Read the comment docs.

@djhoese
Copy link
Member

djhoese commented Nov 23, 2018

I really think we should consider using the autodoc functionality and moving this documentation either in to the satpy/composites/__init__.py module or using .. autosummary:: or similarly .. autoclass:: for the composite classes. One difficulty is that the autoclass (and other autodoc sections) aren't meant to be duplicated so we'd have to think about how to do that best. I also noticed that autosummary wasn't giving a useful number of the arguments in the generated docs. Maybe there are options for both that could be useful.

@pnuu pnuu changed the title [WIP] Add documentation on creating composites Add documentation on creating composites Dec 3, 2018
@pnuu
Copy link
Member Author

pnuu commented Dec 3, 2018

There are couple of compositors that need better explainations (esp. RatioSharpenedRGB and SelfSharpenedRGB), and also few enhancements (histogram, crefl_scaling, cira_stretch and lookup) that lack information. Anyone with anything to contribute, please do, so we could call this PR "ready for now". @djhoese @mraspaud @adybbroe, would you have few moments?

@pnuu pnuu requested review from djhoese and mraspaud February 8, 2019 11:50
Copy link
Member

@djhoese djhoese left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's nice to have this documentation but it just makes me realize how difficult it is to do some of this stuff. Have you tested that the generated HTML properly links to the compositors, etc?

doc/source/composites.rst Outdated Show resolved Hide resolved
djhoese and others added 13 commits April 5, 2019 08:21
Add reader for FY-3 VIRR (virr_l1b)
…available (e.g: Old versions of the HSD format).
WIP: Allow variations of image filename extensions in 'generic_image' reader
Add demo subpackage to simplify test data download
Allow selection of Himawari VIS calibration coefficients for HSD data
Rename SatPy to Satpy throughout documentation
Previously, the AHI HSD reader navigated through a data file by using assumed-length headers. However, these headers contain descriptors that give the actual length of the header. This PR uses these descriptors to ensure that we always navigate to the correct position in the file (using file.seek) rather than just assuming that each header is always of a certain size.

 - [x] Tests added
 - [x] Tests passed
 - [x] Passes ``git diff origin/master -- "*py" | flake8 --diff``
Mask out invalid values in the precipitation probability product
@gerritholl gerritholl mentioned this pull request Apr 8, 2019
5 tasks
@pnuu
Copy link
Member Author

pnuu commented Apr 8, 2019

OK, now the new commits are made to the origin, not in my fork. Ye olden days smiteth back.

@pnuu
Copy link
Member Author

pnuu commented Apr 8, 2019

Something went pretty much wrong in some point. I'll make a new PR from a new branch in my fork with these changes tomorrow and then close this one.

@pnuu pnuu closed this Apr 9, 2019
@pnuu pnuu mentioned this pull request Apr 9, 2019
1 task
@pnuu pnuu deleted the document-composites branch February 2, 2022 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants