Omaha #5235 - do not clear the grid when exiting group edit mode. Eliminated source code warnings.
Former-commit-id: 91e0318ffdf6dd3235a348c34d58ac46eb7903df
This commit is contained in:
parent
dcdf3e69d7
commit
356b57f7f7
1 changed files with 44 additions and 47 deletions
|
@ -31,8 +31,6 @@ import com.raytheon.viz.mpe.util.EstDailyTStations;
|
|||
import com.raytheon.viz.mpe.util.EstPartStations;
|
||||
import com.raytheon.viz.mpe.util.QCStations;
|
||||
import com.raytheon.viz.mpe.util.QCTStations;
|
||||
import com.raytheon.viz.mpe.util.ReadPrecipStationList;
|
||||
import com.raytheon.viz.mpe.util.ReadTemperatureStationList;
|
||||
|
||||
/**
|
||||
* TODO Add Description
|
||||
|
@ -45,6 +43,8 @@ import com.raytheon.viz.mpe.util.ReadTemperatureStationList;
|
|||
* Mar 31, 2009 snaples Initial creation
|
||||
* Feb 5, 2015 17101 snaples Updated max_stations to use size of dqc.precip_stations.
|
||||
* Jun 25, 2015 17397 snaples Removed send_expose in apply_group method to prevent screen from blanking.
|
||||
* Jan 07, 2015 5235 bkowal Do not clear the QC grid after applying a temperature group update.
|
||||
* Eliminated all warnings.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -55,28 +55,28 @@ import com.raytheon.viz.mpe.util.ReadTemperatureStationList;
|
|||
public class GroupEditCalls {
|
||||
|
||||
private DailyQcUtils dqc = DailyQcUtils.getInstance();
|
||||
|
||||
|
||||
int group_edit = 0;
|
||||
|
||||
int pcpn_day = dqc.pcpn_day;
|
||||
int pcpn_day = DailyQcUtils.pcpn_day;
|
||||
|
||||
OtherPrecipOptions opo = new OtherPrecipOptions();
|
||||
|
||||
int pcpn_time_step = MPEDisplayManager.pcpn_time_step;
|
||||
|
||||
int pcp_flag = dqc.pcp_flag;
|
||||
int pcp_flag = DailyQcUtils.pcp_flag;
|
||||
|
||||
int points_flag = dqc.points_flag;
|
||||
int points_flag = DailyQcUtils.points_flag;
|
||||
|
||||
int grids_flag = dqc.grids_flag;
|
||||
int grids_flag = DailyQcUtils.grids_flag;
|
||||
|
||||
int map_flag = dqc.map_flag;
|
||||
int map_flag = DailyQcUtils.map_flag;
|
||||
|
||||
int pcpn_time = dqc.pcpn_time;
|
||||
int pcpn_time = DailyQcUtils.pcpn_time;
|
||||
|
||||
int max_stations = dqc.precip_stations.size();
|
||||
int max_stations = DailyQcUtils.precip_stations.size();
|
||||
|
||||
int max_tstations = dqc.temperature_stations.size();
|
||||
int max_tstations = DailyQcUtils.temperature_stations.size();
|
||||
|
||||
public void apply_group()
|
||||
|
||||
|
@ -93,10 +93,10 @@ public class GroupEditCalls {
|
|||
time_pos = 40 + pcpn_day;
|
||||
}
|
||||
|
||||
dqc.pcp_in_use[time_pos] = -1;
|
||||
DailyQcUtils.pcp_in_use[time_pos] = -1;
|
||||
|
||||
if (dqc.pdata[pcpn_day].used[k] != 0) {
|
||||
dqc.pdata[pcpn_day].used[k] = 2;
|
||||
if (DailyQcUtils.pdata[pcpn_day].used[k] != 0) {
|
||||
DailyQcUtils.pdata[pcpn_day].used[k] = 2;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -115,7 +115,7 @@ public class GroupEditCalls {
|
|||
time_pos = 40 + pcpn_day;
|
||||
}
|
||||
|
||||
if (points_flag == 1 && dqc.pcp_in_use[time_pos] == -1) {
|
||||
if (points_flag == 1 && DailyQcUtils.pcp_in_use[time_pos] == -1) {
|
||||
k = 0;
|
||||
} else if (points_flag == 1 && grids_flag == -1 && map_flag == -1) {
|
||||
k = 0;
|
||||
|
@ -142,27 +142,26 @@ public class GroupEditCalls {
|
|||
*/
|
||||
|
||||
if (pcpn_day == 0
|
||||
&& (dqc.curHr00_06 == 1
|
||||
|| dqc.curHr06_12 == 1 || dqc.curHr18_00 == 1)) {
|
||||
&& (dqc.curHr00_06 == 1 || dqc.curHr06_12 == 1 || dqc.curHr18_00 == 1)) {
|
||||
} else {
|
||||
EstDailyStations eds = new EstDailyStations();
|
||||
eds.estimate_daily_stations(pcpn_day, dqc.precip_stations,
|
||||
eds.estimate_daily_stations(pcpn_day, DailyQcUtils.precip_stations,
|
||||
max_stations);
|
||||
|
||||
EstPartStations eps = new EstPartStations();
|
||||
eps.estimate_partial_stations(pcpn_day,
|
||||
dqc.precip_stations, max_stations);
|
||||
DailyQcUtils.precip_stations, max_stations);
|
||||
}
|
||||
|
||||
QCStations qcs = new QCStations();
|
||||
qcs.quality_control_stations(pcpn_day, dqc.precip_stations,
|
||||
qcs.quality_control_stations(pcpn_day, DailyQcUtils.precip_stations,
|
||||
max_stations);
|
||||
|
||||
CheckConsistency cc = new CheckConsistency();
|
||||
cc.check_consistency(pcpn_day, dqc.precip_stations,
|
||||
cc.check_consistency(pcpn_day, DailyQcUtils.precip_stations,
|
||||
max_stations);
|
||||
|
||||
bv.restore_bad_values(pcpn_day, dqc.precip_stations,
|
||||
bv.restore_bad_values(pcpn_day, DailyQcUtils.precip_stations,
|
||||
max_stations);
|
||||
group_edit = 0;
|
||||
|
||||
|
@ -178,45 +177,44 @@ public class GroupEditCalls {
|
|||
|
||||
if (pcpn_time_step == 1) {
|
||||
|
||||
if (dqc.tdata[pcpn_day].used[4] != 0) {
|
||||
dqc.tdata[pcpn_day].used[4] = 2;
|
||||
if (DailyQcUtils.tdata[pcpn_day].used[4] != 0) {
|
||||
DailyQcUtils.tdata[pcpn_day].used[4] = 2;
|
||||
}
|
||||
|
||||
dqc.pcp_in_use[190 + pcpn_day] = -1;
|
||||
DailyQcUtils.pcp_in_use[190 + pcpn_day] = -1;
|
||||
|
||||
}
|
||||
|
||||
else if (pcpn_time_step == 2) {
|
||||
|
||||
if (dqc.tdata[pcpn_day].used[5] != 0) {
|
||||
dqc.tdata[pcpn_day].used[5] = 2;
|
||||
if (DailyQcUtils.tdata[pcpn_day].used[5] != 0) {
|
||||
DailyQcUtils.tdata[pcpn_day].used[5] = 2;
|
||||
}
|
||||
|
||||
dqc.pcp_in_use[200 + pcpn_day] = -1;
|
||||
DailyQcUtils.pcp_in_use[200 + pcpn_day] = -1;
|
||||
|
||||
}
|
||||
|
||||
else {
|
||||
|
||||
if (dqc.tdata[pcpn_day].used[dqc.pcpn_time] != 0) {
|
||||
dqc.tdata[pcpn_day].used[dqc.pcpn_time] = 2;
|
||||
if (DailyQcUtils.tdata[pcpn_day].used[DailyQcUtils.pcpn_time] != 0) {
|
||||
DailyQcUtils.tdata[pcpn_day].used[DailyQcUtils.pcpn_time] = 2;
|
||||
}
|
||||
|
||||
dqc.pcp_in_use[150 + dqc.pcp_flag + 1] = -1;
|
||||
DailyQcUtils.pcp_in_use[150 + DailyQcUtils.pcp_flag + 1] = -1;
|
||||
|
||||
}
|
||||
|
||||
// logMessage("start1\n");
|
||||
if (pcpn_time_step == 1 || pcpn_time_step == 2) {
|
||||
|
||||
for (k = 0; k < 4; k++) {
|
||||
|
||||
time_pos = 150 + pcpn_day * 4 + k;
|
||||
|
||||
dqc.pcp_in_use[time_pos] = -1;
|
||||
DailyQcUtils.pcp_in_use[time_pos] = -1;
|
||||
|
||||
if (dqc.tdata[pcpn_day].used[k] != 0) {
|
||||
dqc.tdata[pcpn_day].used[k] = 2;
|
||||
if (DailyQcUtils.tdata[pcpn_day].used[k] != 0) {
|
||||
DailyQcUtils.tdata[pcpn_day].used[k] = 2;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -231,14 +229,14 @@ public class GroupEditCalls {
|
|||
.toArray(a));
|
||||
|
||||
if (pcpn_time_step == 0) {
|
||||
time_pos = 150 + dqc.pcp_flag + 1;
|
||||
time_pos = 150 + DailyQcUtils.pcp_flag + 1;
|
||||
} else if (pcpn_time_step == 1) {
|
||||
time_pos = 190 + dqc.pcpn_day;
|
||||
time_pos = 190 + DailyQcUtils.pcpn_day;
|
||||
} else if (pcpn_time_step == 2) {
|
||||
time_pos = 200 + dqc.pcpn_day;
|
||||
time_pos = 200 + DailyQcUtils.pcpn_day;
|
||||
}
|
||||
|
||||
if (points_flag == 1 && dqc.pcp_in_use[time_pos] == -1) {
|
||||
if (points_flag == 1 && DailyQcUtils.pcp_in_use[time_pos] == -1) {
|
||||
k = 0;
|
||||
} else if (points_flag == 1 && grids_flag == -1 && map_flag == -1) {
|
||||
k = 0;
|
||||
|
@ -257,20 +255,19 @@ public class GroupEditCalls {
|
|||
QcTempOptionsDialog.dataDispCbo.select(k);
|
||||
|
||||
BadTValues btv = new BadTValues();
|
||||
btv.update_bad_tvalues(dqc.pcpn_day);
|
||||
btv.update_bad_tvalues(DailyQcUtils.pcpn_day);
|
||||
|
||||
EstDailyTStations edt = new EstDailyTStations();
|
||||
edt.estimate_daily_tstations(dqc.pcpn_day,
|
||||
dqc.temperature_stations, max_tstations);
|
||||
edt.estimate_daily_tstations(DailyQcUtils.pcpn_day,
|
||||
DailyQcUtils.temperature_stations, max_tstations);
|
||||
|
||||
QCTStations qct = new QCTStations();
|
||||
qct.quality_control_tstations(dqc.pcpn_day,
|
||||
dqc.temperature_stations, max_tstations);
|
||||
qct.quality_control_tstations(DailyQcUtils.pcpn_day,
|
||||
DailyQcUtils.temperature_stations, max_tstations);
|
||||
|
||||
btv.restore_bad_tvalues(dqc.pcpn_day,
|
||||
dqc.temperature_stations, max_tstations);
|
||||
btv.restore_bad_tvalues(DailyQcUtils.pcpn_day,
|
||||
DailyQcUtils.temperature_stations, max_tstations);
|
||||
|
||||
opo.send_expose();
|
||||
group_edit = 0;
|
||||
|
||||
QcTempOptionsDialog.groupEditBtn.setEnabled(true);
|
||||
|
|
Loading…
Add table
Reference in a new issue