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

Adjust default blending in DayNightCompositor #1064

Merged
merged 3 commits into from
Feb 12, 2020

Conversation

pnuu
Copy link
Member

@pnuu pnuu commented Feb 10, 2020

This PR adjusts the default Sun zenith angle (SZA) interval where the overlapping day and night products are blended from 85.0 ... 95.0 to 85.0 ... 88.0.

The default limit of SZA correction in Satpy is the same 88.0 degrees. If the upper limit is higher, there will be a dark band between the products.

The original version:

natural_with_colorized_ir_clouds_old_20200210_082000

Proposed version:

natural_with_colorized_ir_clouds_new_20200210_082000

  • Tests adjusted
  • Tests passed
  • Passes flake8 satpy
  • Documentation updated

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.004%) to 88.094% when pulling 484590b on pnuu:adjust-dnc-default-blend-limits into fbefad6 on pytroll:master.

@codecov
Copy link

codecov bot commented Feb 10, 2020

Codecov Report

Merging #1064 into master will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1064      +/-   ##
==========================================
- Coverage   88.09%   88.09%   -0.01%     
==========================================
  Files         191      191              
  Lines       29439    29438       -1     
==========================================
- Hits        25935    25934       -1     
  Misses       3504     3504              

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 fbefad6...484590b. Read the comment docs.

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.

My gut reaction was "why change it, it looks fine already" until I actually saw the comparison. Yeah, this looks better.

Have you tried it with other composite combinations? Like with a true_color on the day side? I'm wondering if the edges are worse...wait this change just gives more of the night image, right?

Copy link
Member

@mraspaud mraspaud left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for fixing this.

@pnuu
Copy link
Member Author

pnuu commented Feb 11, 2020

Yes, this just shifts the night time product a bit into the day side. I've made 11 separate DNC composites that I've passed to our forecasters for reviews, and all of them look nicer with these new limits. Here's a composite with true color and ash RGBs.

crop_truecolor_with_ash_20200210_082000

@djhoese
Copy link
Member

djhoese commented Feb 11, 2020

Good image. That's what I was hoping for; an image with a very dark image on one side and a bright image on the other. Looks good.

@mraspaud
Copy link
Member

How does it look like if you take a night-only composite on the night side, eg night_microphysics, does it still look ok ?

@pnuu
Copy link
Member Author

pnuu commented Feb 12, 2020

Here's one with night microphysical:
crop_natural_with_night_microphysical_20200210_082000

I'll still run one test with higher SZA limit for the day side.

@pnuu
Copy link
Member Author

pnuu commented Feb 12, 2020

And here are the three above composites with low_lim=87.0 and high_lim=88.0, so only one degree SZA range where the blending is done.

Natural color / colorized IR clouds:
crop_natural_with_colorized_ir_clouds_20200210_082000_low87

True color with ash:
crop_truecolor_with_ash_20200210_082000_low87

Natural color with night microphysical:
crop_natural_with_night_microphysical_20200210_082000_low87

@mraspaud
Copy link
Member

Looks really good @pnuu !

@mraspaud mraspaud merged commit 472786d into pytroll:master Feb 12, 2020
@mraspaud mraspaud added the enhancement code enhancements, features, improvements label Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:compositors component:enhancements enhancement code enhancements, features, improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants