Displaying differences for changeset
 
display as  

src/java/m/cfa/download/guiDownload_Data.java

@@ -17,11 +17,11 @@
 * @since 21-June-2012
 */
 public class guiDownload_Data {
-    String directory = "E:/Projects/TylerWible_repos/NetBeans/data/CFA";
+    String directory = "C:/Projects/TylerWible_repos/NetBeans/data/CFA";
     String database = "USGS";//"CDWR";//"STORET";//"CDSN";//"UserData";//
     String orgId = "n/a";//"n/a";//"21COL001";//"CITYFTCO_WQX";//"n/a";//
     String stationId = "06752260";//"CLAGRECO";//"000028";//"1EFF";//"n/a";//
-    String wqTest = "flow";//"00600";//"Nitrogen, Nitrate (NO3) as NO3";//"Fecal Coliform";//"15-min flow";//"stage-discharge";//"All";//
+    String wqTest = "15-min flow";//"All";//"flow";//"00600";//"Nitrogen, Nitrate (NO3) as NO3";//"Fecal Coliform";//"stage-discharge";//
     String startDate = "";
     String endDate = "";
 

src/java/m/cfa/durationcurve/guiDC_Model.java

@@ -41,17 +41,17 @@
 */
 public class guiDC_Model {
     //Inputs
-    String directory = "E:/Projects/TylerWible_repos/NetBeans/data/CFA/DurationCurve";
-    String database = "USGS";//"CDWR";//"STORET";//"CDSN";//"UserData";//
+    String directory = "C:/Projects/TylerWible_repos/NetBeans/data/CFA/DurationCurve";
+    String database = "UserData";//"CDWR";//"STORET";//"CDSN";//"UserData";//
     String orgId = "n/a";//"n/a";//"21COL001";//"CITYFTCO_WQX";//"n/a";//
-    String stationId = "06764880";//"CLAGRECO";//"000028";//"1EFF";//"n/a";//
-    String stationName = "South Platte River at Roscoe, Nebr.";//"Cache La Poudre Near Greeley";//"BIG THOMPSON R NEAR MOUTH";//"n/a";//"n/a";//
+    String stationId = "09505800";//"CLAGRECO";//"000028";//"1EFF";//"n/a";//
+    String stationName = "WestClearCreek_";//"South Platte River at Roscoe, Nebr.";//"Cache La Poudre Near Greeley";//"BIG THOMPSON R NEAR MOUTH";//"n/a";//"n/a";//
     String wqTest = "flow";//"00600 Total nitrogen, water, unfiltered, milligrams per liter -- mg/L";//"00625 Ammonia-nitrogen as N -- mg/L";//
     double wqTarget = 10;//in units of current test
     String startDate = "";
     String endDate = "";
     String seasonBegin = "04-01";//"MM-dd"
-    String seasonEnd = "09-30";//"MM-dd"
+    String seasonEnd = "04-30";//"MM-dd"
     boolean seasonalOnly = false;//true;//
     String period1Begin = "";
     String period1End = "";
@@ -62,11 +62,14 @@
     double highPercentile = 0.75;
     double lowPercentile = 0.25;
     boolean showMonthlyStatsTF = false;
-    boolean calcFlowStatisticsFileTF = true;
+    boolean calcFlowStatisticsFileTF = false;
     String mQnPeriod = "false";//"7Q10";//
     boolean mergeDatasets = false;//true;//
     String mergeMethod = "user";//"public";//"max";//"average";//"min";//
     String userData = "";//"Date\tFlow\n1999-04-29\t8.3\n1999-05-09\t60.2\n1999-05-29\t20.1$$Date\t00600\n1999-04-29\t8.3\n1999-05-09\t60.2\n1999-05-29\t20.1";//"Date\tFlow\n1999-04-29\t8.3\n1999-05-09\t60.2\n1999-05-29\t20.1";//
+//    String userData = "Date\tFlow\n"+
+//            "2020-09-23\t6.15204415970915\n"+
+//            "";
     
     //Outputs
     String flowLen = "-1";
@@ -173,13 +176,13 @@
         if(sortedData_combined.length == 0){
             ArrayList<String> errorMessage = new ArrayList<>();
             if(sortedData.length == 0){
-                errorMessage.add("There is no available flow data in the " + database + " database for station '" + stationId + "' and the specified date range.");
+                errorMessage.add("There is no available flow data in the " + database + " database for station " + stationId + " and the specified date range.");
                 if(database.equalsIgnoreCase("CDWR")){
                     errorMessage.add("The CDWR database is sensitive to the begin date used, try specifying a later begin date");
                 }
             }
             if(sortedData_user.length == 0){
-                errorMessage.add("There is no available uploaded data for station '" + stationId + "' and the specified date range");
+                errorMessage.add("There is no available uploaded data for station " + stationId + " and the specified date range");
             }
             writeError(errorMessage);
         }
@@ -423,7 +426,7 @@
         String finalYear = end.substring(0,4);
         boolean moreYears = xyRanks.length > 0;
         while(moreYears){
-            //Get current year's data and graph it
+            //Get current years data and graph it
             String[][] partialData = DoubleArray.getYearsData(sortedData_combined, currentYear);
             double[][] partialRanks = DoubleArray.weibullPlottingPosition(partialData);
             Graphing.addXYSeries(plot, partialRanks, Color.lightGray, seriesIndex);
@@ -480,7 +483,7 @@
             ChartUtilities.saveChartAsJPEG(new File(path), chart, 1280, 800);
             System.out.println("JFreeChart created properly at: " + path);
         }catch(IOException e){
-            System.out.println("A problem occurred while trying to creating the chart for station '" + stationName + "'. Error: USGSFDC0003");
+            System.out.println("A problem occurred while trying to creating the chart for station " + stationName + ". Error: USGSFDC0003");
             System.out.println(e.toString());
         }
     }
@@ -531,21 +534,21 @@
         ArrayList<String> errorMessage = new ArrayList<>();
         if(sortedData_combined.length == 0){
             if(sortedData.length == 0){
-                errorMessage.add("There is no available flow data in the " + database + " database for station '" + stationId + "' and the specified date range.");
+                errorMessage.add("There is no available flow data in the " + database + " database for station " + stationId + " and the specified date range.");
                 if(database.equalsIgnoreCase("CDWR")){
                     errorMessage.add("The CDWR database is sensitive to the begin date used, try specifying a later begin date");
                 }
             }
             if(sortedData_user.length==0){
-                errorMessage.add("There is no uploaded flow data for station '" + stationId + "' and the specified date range.");
+                errorMessage.add("There is no uploaded flow data for station " + stationId + " and the specified date range.");
             }
         }
         if(WQdata_combined.length == 0){
             if(WQdata.length == 0){
-                errorMessage.add("There are no available '" + wqTest + "' water quality tests in the " + database + " database for station '" + stationId + "' and the specified date range.");
+                errorMessage.add("There are no available " + wqTest + " water quality tests in the " + database + " database for station " + stationId + " and the specified date range.");
             }
             if(WQdata_user.length==0){
-                errorMessage.add("There are no uploaded '" + wqTest + "' water quality tests for station " + stationId+  " and the specified date range");
+                errorMessage.add("There are no uploaded " + wqTest + " water quality tests for station " + stationId+  " and the specified date range");
             }
         }
         if(errorMessage.size() > 0){
@@ -645,7 +648,7 @@
      * @param WQdata_user  the user data water quality points XY scatter of user data only
      * @param seasonalWQ_combined the observed water quality points within the "season" XY scatter of combined data
      * @param seasonalWQ_user the user data water quality points within the "season" XY scatter of user data only
-     * @param mQn  the value of the mQn flow (if it is zero then don't show this line in the graph)
+     * @param mQn  the value of the mQn flow (if it is zero then dont show this line in the graph)
      * @param m  the value of m from mQn flow calculations
      * @param n the value of n from mqn flow calculations
      * @return the name/title of the dynamic paragraph to be created to accompany the graph created during this function
@@ -1150,7 +1153,7 @@
         String finalYear = end.substring(0,4);
         boolean moreYears = xyRanks.length > 0;
         while(moreYears){
-            //Get current year's data and graph it
+            //Get current years data and graph it
             String[][] partialData = DoubleArray.getYearsData(sortedData_combined, currentYear);
             double[][] partialRanks = DoubleArray.weibullPlottingPosition(partialData);
             for(int i=0; i<partialRanks.length; i++){
@@ -1214,7 +1217,7 @@
             ChartUtilities.saveChartAsJPEG(new File(path), chart, 1280, 800);
             System.out.println("JFreeChart created properly at: " + path);
         }catch(IOException e){
-            System.out.println("A problem occurred while trying to creating the chart for station '" + stationName + "'. Error: USGSLDC0003");
+            System.out.println("A problem occurred while trying to creating the chart for station " + stationName + ". Error: USGSLDC0003");
             System.out.println(e.toString());
         }
 
@@ -1389,19 +1392,19 @@
             dynamic_paragraph = dynamic_paragraph + "Erosion based pollutant sources are likely when the target is met under all the flow intervals except under the High Flows and upper end of the Moist Conditions. Due to the higher velocities of the water during these flows, bank erosion and channel scour are more likely to occur and release pollutants (particularly sediment) into the water.  Solutions to this pollutant problem may include but are not limited to: river bank stabilization efforts and channel protection policies (Cleland 2007). Pollutants related to sediment concentration will be those most affected by these efforts.\n";
             dynamic_paragraph = dynamic_paragraph + "The grey graphed lines are duration curves for each individual year within the analysis period.\n";
         }else if(paragraphTitle.equals("Multiple Pollution Sources: ")){
-            dynamic_paragraph = dynamic_paragraph + "Most of the flow intervals contain many points which exceed the target.  No single pollution source is likely. Please click 'Further Information' for more pollutant identification help.\n";
+            dynamic_paragraph = dynamic_paragraph + "Most of the flow intervals contain many points which exceed the target.  No single pollution source is likely. Please click Further Information for more pollutant identification help.\n";
             dynamic_paragraph = dynamic_paragraph + "The grey graphed lines are duration curves for each individual year within the analysis period.\n";
         }else if(paragraphTitle.equals("Flow Duration Curve Overview: ")){
             dynamic_paragraph = dynamic_paragraph + "A flow duration curve (FDC) is the ranked graphing of river flows on a scale of percent exceedance.  For example a flow value associated with the flow interval of 15% means that particular flow value is met or exceeded only 15% of the time.  This graph is meant to give a quick overview of the flow ranges, variability, and probability of flows of a river segment during the different flow periods of a river; which are High Flows from 0 to 10 percent flow interval, Moist Conditions 10-40, Mid-Range Flows 40-60, Dry Conditions 60-90, and Low Flows 90-100 (Cleland 2003).\n";
-            dynamic_paragraph = dynamic_paragraph + "The grey graphed lines are duration curves for each individual year within the analysis period or 'annual flow duration curves'.\n";
+            dynamic_paragraph = dynamic_paragraph + "The grey graphed lines are duration curves for each individual year within the analysis period or annual flow duration curves.\n";
         }else{
-            dynamic_paragraph = dynamic_paragraph + "Although some observed points may exceed the target curve's concentration there is no single apparent pollutant source.\n";
-            dynamic_paragraph = dynamic_paragraph + "Please click 'Further Model Information' for more pollutant source identification help.\n";
+            dynamic_paragraph = dynamic_paragraph + "Although some observed points may exceed the target curves concentration there is no single apparent pollutant source.\n";
+            dynamic_paragraph = dynamic_paragraph + "Please click Further Model Information for more pollutant source identification help.\n";
         }
         //Create references for paragraph
         dynamic_paragraph = dynamic_paragraph + "References:\n";
         dynamic_paragraph = dynamic_paragraph + dataSource + "\n";
-        dynamic_paragraph = dynamic_paragraph + "Cleland, B. R. November 2003. TMDL Development from the 'Bottom Up' Part III: Duration Curves and Wet-Weather Assessments. National TMDL Science and Policy 2003.\n"; 
+        dynamic_paragraph = dynamic_paragraph + "Cleland, B. R. November 2003. TMDL Development from the Bottom Up Part III: Duration Curves and Wet-Weather Assessments. National TMDL Science and Policy 2003.\n"; 
         dynamic_paragraph = dynamic_paragraph + "Cleland, B. R. August 2007. An Approach for Using Load Duration Curves in the Development of TMDLs. National TMDL Science and Policy 2007.";
 
         return dynamic_paragraph;

src/java/m/cfa/flood/guiFlood_Model.java

@@ -18,7 +18,7 @@
 * @since 13-June-2012
 */
 public class guiFlood_Model {
-    String directory = "E:/Projects/TylerWible_repos/NetBeans/data/CFA";
+    String directory = "C:/Projects/TylerWible_repos/NetBeans/data/CFA";
     String database = "USGS";//"CDWR";//"STORET";//"CDSN";//"UserData";//
     String orgId = "n/a";//"n/a";//"21COL001";//"CITYFTCO_WQX";//"n/a";//
     String stationId = "06764880";//"CLAGRECO";//"000028";//"1EFF";//"n/a";//

src/java/m/cfa/timeseries/guiTimeseries_Model.java

@@ -60,7 +60,7 @@
 */
 public class guiTimeseries_Model {
     //Inputs
-    String directory = "E:/Projects/TylerWible_repos/NetBeans/data/CFA/Timeseries";
+    String directory = "C:/Projects/TylerWible_repos/NetBeans/data/CFA/Timeseries";
     String database = "USGS";//"CDWR";//"STORET";//"CDSN";//"UserData";//
     String orgId = "n/a";//"n/a";//"21COL001";//"CITYFTCO_WQX";//"n/a";//
     String stationId = "06764880";//"CLAGRECO";//"000028";//"1EFF";//"n/a";//