ASM #16889 - Fixed issue with precip station count, also added logging for Snow data file read and station edit.
Change-Id: I1b689b485a152e1c942c021ac0f778b0f299d3e3 Former-commit-id: c836fb0c1f8721f81049af56cb8f7be9960a5cd6
This commit is contained in:
parent
e4224cd67b
commit
539b859040
3 changed files with 6 additions and 3 deletions
|
@ -45,7 +45,6 @@ import com.raytheon.viz.mpe.util.MakeRsel;
|
|||
import com.raytheon.viz.mpe.util.QCStations;
|
||||
import com.raytheon.viz.mpe.util.QCTStations;
|
||||
import com.raytheon.viz.mpe.util.ReadFreezingStationList;
|
||||
import com.raytheon.viz.mpe.util.ReadPrecipStationList;
|
||||
import com.raytheon.viz.mpe.util.ReadTemperatureStationList;
|
||||
import com.raytheon.viz.mpe.util.RenderPcp;
|
||||
import com.raytheon.viz.mpe.util.RenderT;
|
||||
|
@ -442,8 +441,8 @@ public class OtherPrecipOptions {
|
|||
MakeRsel mr = new MakeRsel();
|
||||
// Hrap_Grid hrap_grid = DailyQcUtils.getHrap_grid();
|
||||
Calendar tmtime = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
|
||||
ReadPrecipStationList rp = new ReadPrecipStationList();
|
||||
int num_stations = rp.getNumPstations();
|
||||
// ReadPrecipStationList rp = new ReadPrecipStationList();
|
||||
int num_stations = dqc.precip_stations.size();
|
||||
String s = appsDefaults.getToken(dqc_ending_6hour_obstime_tok);
|
||||
int dqc_ending_6hour_obstime = ((!(null == s)) ? Integer.parseInt(s)
|
||||
: -1);
|
||||
|
|
|
@ -387,6 +387,7 @@ public class EditPrecipStationsDialog extends AbstractMPEDialog implements
|
|||
if (srain.data > -98) {
|
||||
if (time_pos == HOURS_24 && srain.data >= 0) {
|
||||
snow = true;
|
||||
System.out.println("Snow data is true for station.");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -476,6 +477,7 @@ public class EditPrecipStationsDialog extends AbstractMPEDialog implements
|
|||
"Snow water change is %5.2f in.", srain.data));
|
||||
if (time_pos == HOURS_24 && srain.data >= 0) {
|
||||
snow = true;
|
||||
System.out.println("Snow water change is available for " + selectedStation.hb5);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -86,6 +86,7 @@ public class ReadSnowData {
|
|||
}
|
||||
}
|
||||
in = new BufferedReader(new FileReader(prece));
|
||||
System.out.println("Reading Snow data from : " + prece);
|
||||
|
||||
// int p = 1;
|
||||
// String sn = cbuf;
|
||||
|
@ -168,6 +169,7 @@ public class ReadSnowData {
|
|||
dqc.pdata[i].stn[j].srain[kk].data = Float.parseFloat(qbuf);
|
||||
|
||||
dqc.pdata[i].stn[j].srain[kk].qual = 8;
|
||||
System.out.println("Loading Snow Data for Station "+ hb5 +" with value: "+ dqc.pdata[i].stn[j].srain[kk].data);
|
||||
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue