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 support for meteo file in OLCI L1B reader #962

Merged
merged 9 commits into from Dec 28, 2019
Merged

add support for meteo file in OLCI L1B reader #962

merged 9 commits into from Dec 28, 2019

Conversation

ghislainp
Copy link
Contributor

@ghislainp ghislainp commented Nov 8, 2019

OLCI L1B product ships with a meteo ancillary data file. It is now read by the L1B reader and makes available 4 new datasets (humidity, sea_level_pressure, total_columnar_water_vapour and total_ozone) useful for atmospheric correction.

  • Tests added and test suite added to parent suite
  • Tests passed
  • Passes flake8 satpy
  • Fully documented
  • Add your name to AUTHORS.md if not there already

@coveralls
Copy link

coveralls commented Nov 8, 2019

Coverage Status

Coverage decreased (-0.03%) to 87.34% when pulling 3782d19 on ghislainp:master into e2100df on pytroll:master.

@codecov
Copy link

codecov bot commented Nov 8, 2019

Codecov Report

Merging #962 into master will decrease coverage by 0.03%.
The diff coverage is 90%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #962      +/-   ##
==========================================
- Coverage   87.37%   87.33%   -0.04%     
==========================================
  Files         188      188              
  Lines       28624    28664      +40     
==========================================
+ Hits        25009    25035      +26     
- Misses       3615     3629      +14
Impacted Files Coverage Δ
satpy/tests/reader_tests/test_olci_nc.py 96.26% <100%> (+0.65%) ⬆️
satpy/readers/olci_nc.py 90% <87.03%> (-0.91%) ⬇️
satpy/resample.py 90.61% <0%> (-2.17%) ⬇️
satpy/scene.py 89.8% <0%> (-0.36%) ⬇️
satpy/readers/__init__.py 94.56% <0%> (+1.2%) ⬆️

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 e2100df...3782d19. Read the comment docs.

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.

Wow, thanks a lots for a very nice PR, taking the time to factorize the low res operations into a class!
I have a few comments as the coverage went down a bit. Also, codefactor complains about a couple trailing whitspaces. Could you have a look at these ? Appart from that, it looks good to me!

Comment on lines +431 to +434
elif key.name in self.cache:
values = self.cache[key.name]
else:
values = self.nc[key.name]
Copy link
Member

Choose a reason for hiding this comment

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

Could you test these two cases also ?

Comment on lines 302 to 310
@property
def start_time(self):
"""Start the file handler."""
return self._start_time

@property
def end_time(self):
"""End the file handler."""
return self._end_time
Copy link
Member

Choose a reason for hiding this comment

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

Would be nice to test these two.

@mraspaud
Copy link
Member

mraspaud commented Dec 6, 2019

@ghislainp will you have time to do the last fixes in the near future ?

@mraspaud mraspaud self-assigned this Dec 26, 2019
@mraspaud mraspaud added component:readers enhancement code enhancements, features, improvements labels Dec 26, 2019
@mraspaud mraspaud merged commit af1334c into pytroll:master Dec 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:readers enhancement code enhancements, features, improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants