Skip to content
Snippets Groups Projects
Commit c8024ac1 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent ebdac256
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ NO_ICE = '\s*NEG\s*|\s*NONE\s*|\s*NEGATIVE\s*|\s*NO\s*' ...@@ -6,6 +6,7 @@ NO_ICE = '\s*NEG\s*|\s*NONE\s*|\s*NEGATIVE\s*|\s*NO\s*'
ICE_LVL = '\d+-\d+|FL\d+-FL\d+' ICE_LVL = '\d+-\d+|FL\d+-FL\d+'
# ICE Intensity: 0:No intensity report, 1:Trace, 2:Light, 3:Light Moderate, 4:Moderate, 5:Moderate Severe, 6:Severe # ICE Intensity: 0:No intensity report, 1:Trace, 2:Light, 3:Light Moderate, 4:Moderate, 5:Moderate Severe, 6:Severe
# NO/NEG -1
ICE_TRACE = '\s*TRACE\s*|\s*TRC\s*|\s*TR\s*' ICE_TRACE = '\s*TRACE\s*|\s*TRC\s*|\s*TR\s*'
ICE_LGT = '\s*LGT\s*|\s*LIGHT\s*|\s*LT\s*|\s*LGHT\s*|\s*LIT\s*|\s*LITE\s*|\s*LG\s*' ICE_LGT = '\s*LGT\s*|\s*LIGHT\s*|\s*LT\s*|\s*LGHT\s*|\s*LIT\s*|\s*LITE\s*|\s*LG\s*'
ICE_MOD = '\s*MOD\s*|\s*MDT\s*|\s*MODERATE\s*|\s*HEAVY\s*' ICE_MOD = '\s*MOD\s*|\s*MDT\s*|\s*MODERATE\s*|\s*HEAVY\s*'
...@@ -76,7 +77,7 @@ def pirep_icing(filename, lon_range=[-180, 180], lat_range=[-55, 55]): ...@@ -76,7 +77,7 @@ def pirep_icing(filename, lon_range=[-180, 180], lat_range=[-55, 55]):
if len(re.findall(NO_ICE, ice_str)) != 0: if len(re.findall(NO_ICE, ice_str)) != 0:
rpts = neg_ice_dict.get(timestmp) rpts = neg_ice_dict.get(timestmp)
tup = (lat, lon, fl, 0, ice_str) tup = (lat, lon, fl, -1, ice_str)
if rpts is None: if rpts is None:
rpts = [] rpts = []
rpts.append(tup) rpts.append(tup)
...@@ -135,7 +136,7 @@ def pirep_icing(filename, lon_range=[-180, 180], lat_range=[-55, 55]): ...@@ -135,7 +136,7 @@ def pirep_icing(filename, lon_range=[-180, 180], lat_range=[-55, 55]):
rpts.append(tup) rpts.append(tup)
rpts = no_ice_dict.get(timestmp) rpts = no_ice_dict.get(timestmp)
tup = (lat, lon, fl, 0, 'no observed icing') tup = (lat, lon, fl, -1, 'no observed icing')
if rpts is None: if rpts is None:
rpts = [] rpts = []
rpts.append(tup) rpts.append(tup)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment