Skip to content

Commit

Permalink
Fixed bug where program would freeze while loading observational radi…
Browse files Browse the repository at this point in the history
…osonde.
  • Loading branch information
a-urq committed Sep 14, 2023
1 parent c7dd492 commit 46b4bd8
Show file tree
Hide file tree
Showing 23 changed files with 13 additions and 3 deletions.
Binary file modified bin/com/ameliaWx/radarView/RadarView$2.class
Binary file not shown.
Binary file modified bin/com/ameliaWx/radarView/RadarView$3.class
Binary file not shown.
Binary file modified bin/com/ameliaWx/radarView/RadarView$4.class
Binary file not shown.
Binary file added bin/com/ameliaWx/radarView/RadarView$5.class
Binary file not shown.
Binary file modified bin/com/ameliaWx/radarView/RadarView$AnimateThread$1.class
Binary file not shown.
Binary file modified bin/com/ameliaWx/radarView/RadarView$AnimateThread.class
Binary file not shown.
Binary file modified bin/com/ameliaWx/radarView/RadarView$CheckOnlineThread$1.class
Binary file not shown.
Binary file modified bin/com/ameliaWx/radarView/RadarView$CheckOnlineThread.class
Binary file not shown.
Binary file modified bin/com/ameliaWx/radarView/RadarView$RVGraphics.class
Binary file not shown.
Binary file modified bin/com/ameliaWx/radarView/RadarView$RVKeyListener$1.class
Binary file not shown.
Binary file modified bin/com/ameliaWx/radarView/RadarView$RVKeyListener$2.class
Binary file not shown.
Binary file modified bin/com/ameliaWx/radarView/RadarView$RVKeyListener$3.class
Binary file not shown.
Binary file modified bin/com/ameliaWx/radarView/RadarView$RVKeyListener.class
Binary file not shown.
Binary file modified bin/com/ameliaWx/radarView/RadarView$RVMouseListener$1.class
Binary file not shown.
Binary file modified bin/com/ameliaWx/radarView/RadarView$RVMouseListener$2.class
Binary file not shown.
Binary file modified bin/com/ameliaWx/radarView/RadarView$RVMouseListener.class
Binary file not shown.
Binary file modified bin/com/ameliaWx/radarView/RadarView$RVMouseMotionListener.class
Binary file not shown.
Binary file modified bin/com/ameliaWx/radarView/RadarView$RVMouseWheelListener.class
Binary file not shown.
Binary file modified bin/com/ameliaWx/radarView/RadarView$RefreshTimerThread$1.class
Binary file not shown.
Binary file not shown.
Binary file modified bin/com/ameliaWx/radarView/RadarView$RefreshTimerThread.class
Binary file not shown.
Binary file modified bin/com/ameliaWx/radarView/RadarView.class
Binary file not shown.
16 changes: 13 additions & 3 deletions src/com/ameliaWx/radarView/RadarView.java
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,7 @@ public RadarView() {
segmentTimes[0] = System.currentTimeMillis() - segmentStartTime;

loadWindow.setTitle("Initializing RadarView: Loading radiosonde sites...");
radiosondeList = RadiosondeSite.fourLetterCodeList();


loadWindow.setTitle("Initializing RadarView: Loading cities...");
segmentStartTime = System.currentTimeMillis();
loadCities();
Expand Down Expand Up @@ -2240,7 +2239,14 @@ private static void displayRadiosonde() {
"What radiosonde would you like to view?\n", "Choose Radiosonde",
JOptionPane.QUESTION_MESSAGE, null, radiosondeList.toArray(), 0);

RadiosondeWrapper.displayCurrentSounding(RadiosondeSite.findSite(radiosonde.substring(0, 4)));
new Thread(new Runnable() {

@Override
public void run() {
RadiosondeWrapper.displayCurrentSounding(RadiosondeSite.findSite(radiosonde.substring(0, 4)));
}

}).start();
}

private static void chooseDefaultRadarSite() {
Expand Down Expand Up @@ -3302,6 +3308,10 @@ public static void downloadModelData() {
// System.out.println(convToGigaMega(usedMemory));
// System.out.printf("%4.1f", 100.0 * usedMemory / maxMemory);
// System.out.println("%");
loadingMessage = "Loading Radiosonde Sites...";

radiosondeList = RadiosondeSite.fourLetterCodeList();
RadiosondeWrapper.initializeEarly();

loadingMessage = "Loading SRTM Data...";
g.repaint();
Expand Down

0 comments on commit 46b4bd8

Please sign in to comment.