Skip to content

Commit

Permalink
cloud top pressure/height changes when new profile put in focus
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Szkodzinski committed Nov 2, 2020
1 parent 6c64ade commit cb8a265
Show file tree
Hide file tree
Showing 4 changed files with 277 additions and 258 deletions.
8 changes: 3 additions & 5 deletions runsharp/full_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
from sharppy._version import get_versions
import sys
import glob as glob
import os
import numpy as np
import warnings
import sutils.frozenutils as frozenutils
Expand Down Expand Up @@ -722,7 +721,7 @@ def skewApp(self, filename=None, ntry=0):
:return:
"""
# JTS
srcid = self.loc['srcid']
print(f'full_gui.py -> New profile retrieved from the internet.')
pathCloudFile = f'{HOME_DIR}/datasources/cloudTopValues.txt'

# Retrieve cloud top pressure/fraction values.
Expand All @@ -748,7 +747,7 @@ def skewApp(self, filename=None, ntry=0):

# Create temporary text file that will store the above values.
cloudValues = []
cloudValues.append(f'{srcid} {ctf_low} {ctf_high} {ctp_low} {ctp_high}')
cloudValues.append(f'{ctf_low} {ctf_high} {ctp_low} {ctp_high}')

file = open(pathCloudFile, "w")
for line in cloudValues:
Expand All @@ -763,7 +762,7 @@ def skewApp(self, filename=None, ntry=0):

# Create temporary text file that will store the above values.
cloudValues = []
cloudValues.append(f'{srcid} {ctf_low} {ctf_high} {ctp_low} {ctp_high}')
cloudValues.append(f'{ctf_low} {ctf_high} {ctp_low} {ctp_high}')

file = open(pathCloudFile, "w")
for line in cloudValues:
Expand Down Expand Up @@ -905,7 +904,6 @@ def loadArchive(self, filename):
logging.debug('Get the profiles from the decoded file.')
profs = dec.getProfiles()
stn_id = dec.getStnId()

return profs, stn_id

def hasConnection(self):
Expand Down
Loading

0 comments on commit cb8a265

Please sign in to comment.