Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

akrherz
Copy link
Collaborator

@akrherz akrherz commented Oct 24, 2017

Pressure should be differentiated between a SLP provided value and one provided by altimeter.

@akrherz akrherz added this to the 1.5 milestone Aug 6, 2018
Pressure should be differentiated between a SLP provided value and one provided by altimeter.
@codecov-io
Copy link

Codecov Report

Merging #38 into master will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #38      +/-   ##
=========================================
+ Coverage   69.86%   69.9%   +0.04%     
=========================================
  Files           4       4              
  Lines         989     987       -2     
=========================================
- Hits          691     690       -1     
+ Misses        298     297       -1
Impacted Files Coverage Δ
metar/Metar.py 65.79% <100%> (+0.05%) ⬆️

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 caeed16...2eabf08. Read the comment docs.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 19

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.04%) to 69.909%

Totals Coverage Status
Change from base Build 18: 0.04%
Covered Lines: 690
Relevant Lines: 987

💛 - Coveralls

@akrherz
Copy link
Collaborator Author

akrherz commented Aug 6, 2018

Anybody watching have an opinion on this change?

Copy link
Collaborator

@phobson phobson left a comment

Choose a reason for hiding this comment

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

This makes sense to me. Are the sea level pressure values still stored?

@akrherz
Copy link
Collaborator Author

akrherz commented Aug 13, 2018

The issue at hand here is differentiating how pressure was provided within the METAR. As it stands currently, if SLP is provided and altimeter is not, the SLP value is assigned into the press attribute. On the other hand, the range in ratio between these two values (ignore the units) is rather tight. For example a query against my database for Denver ASOS

select max(alti / mslp), min(alti / mslp) from t2017 where
station = 'DEN' and alti is not null and mslp is not null;
    max    |    min    
-----------+-----------
 0.0298447 | 0.0292443

My code change also removes the option of having the SLP value appear before the remarks section. So my ingestor has been running with this change for a while now and I haven't gotten downstream complaints of how my database stores pressure. I have been wrong in the past though!

For non-US METARs, the WMO specification only seems to provide Q group encoding, which I believe is the Altimeter value.

@akrherz
Copy link
Collaborator Author

akrherz commented Aug 15, 2018

Oh @phobson sorry, i see you approved this and I didn't really answer your question. The press_sea_level attribute is still set on the receipt of SLP within the METAR.

@akrherz akrherz merged commit 275c27a into python-metar:master Aug 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants