- wx
+ wxType
Weather
Weather
0.0
- 10.0
+ 12.0
-99999.0
0
SFC
diff --git a/edexOsgi/com.raytheon.edex.plugin.grib/utility/edex_static/base/grib/tables/7/5/4.2.0.1.table b/edexOsgi/com.raytheon.edex.plugin.grib/utility/edex_static/base/grib/tables/7/5/4.2.0.1.table
index 0b57e342d0..403d07a1e5 100644
--- a/edexOsgi/com.raytheon.edex.plugin.grib/utility/edex_static/base/grib/tables/7/5/4.2.0.1.table
+++ b/edexOsgi/com.raytheon.edex.plugin.grib/utility/edex_static/base/grib/tables/7/5/4.2.0.1.table
@@ -1,6 +1,6 @@
# Product Discipline 0: Meteorological products, Parameter Category 1: Moisture
#192-254 Reserved for local use
-192:192:Categorical Rain::CRAIN
+192:192:Weather::wxType
193:193:Categorical Freezing Rain::CFRZR
194:194:Categorical Ice Pellets::CICEP
195:195:Categorical Snow::CSNOW
diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.ffmp/src/com/raytheon/uf/common/dataplugin/ffmp/FFMPUtils.java b/edexOsgi/com.raytheon.uf.common.dataplugin.ffmp/src/com/raytheon/uf/common/dataplugin/ffmp/FFMPUtils.java
index 5758321623..d8197bc1a8 100644
--- a/edexOsgi/com.raytheon.uf.common.dataplugin.ffmp/src/com/raytheon/uf/common/dataplugin/ffmp/FFMPUtils.java
+++ b/edexOsgi/com.raytheon.uf.common.dataplugin.ffmp/src/com/raytheon/uf/common/dataplugin/ffmp/FFMPUtils.java
@@ -71,6 +71,7 @@ import com.vividsolutions.jts.io.WKTWriter;
* ------------ ---------- ----------- --------------------------
* 06/22/09 2152 D. Hladky Initial release
* 06/18/12 DR 15108 G. Zhang Fix County FIPS 4-digit issue
+ * 09/05/12 DR 15164 G. Zhang Fix FFMP Table county/state name null issue
*
*
* @author dhladky
@@ -467,9 +468,11 @@ public class FFMPUtils {
* @return
*/
public static FFMPCounty getCounty(Long pfaf, String mode) {
-
+
+ String ftxt = (pfaf>=10000 ? ""+pfaf : "0"+pfaf);// DR 15164
+
String sql = "SELECT county.countyname, county.state FROM "
- + " mapdata.county WHERE county.fips = '" + pfaf + "'";
+ + " mapdata.county WHERE county.fips = '" + ftxt/*pfaf*/ + "'";// DR 15164
ISpatialQuery sq = null;
FFMPCounty county = new FFMPCounty();
diff --git a/edexOsgi/com.raytheon.uf.common.monitor/src/com/raytheon/uf/common/monitor/config/FFMPRunConfigurationManager.java b/edexOsgi/com.raytheon.uf.common.monitor/src/com/raytheon/uf/common/monitor/config/FFMPRunConfigurationManager.java
index 2f4bc03c1c..07311d42c3 100644
--- a/edexOsgi/com.raytheon.uf.common.monitor/src/com/raytheon/uf/common/monitor/config/FFMPRunConfigurationManager.java
+++ b/edexOsgi/com.raytheon.uf.common.monitor/src/com/raytheon/uf/common/monitor/config/FFMPRunConfigurationManager.java
@@ -42,6 +42,21 @@ import com.raytheon.uf.common.monitor.xml.SourceXML;
import com.raytheon.uf.common.serialization.SerializationException;
import com.raytheon.uf.common.serialization.SerializationUtil;
+
+/**
+ * FFMPRunConfigurationManager
+ *
+ *
+ *
+ * SOFTWARE HISTORY
+ * Date Ticket# Engineer Description
+ * ------------ ---------- ----------- --------------------------
+ * 2012-09-04 DR 14404 gzhang Fixing ConcurrentModificationException
+ *
+ *
+ *
+ */
+
public class FFMPRunConfigurationManager implements ILocalizationFileObserver {
/** Path to FFMP Source config. */
@@ -56,8 +71,9 @@ public class FFMPRunConfigurationManager implements ILocalizationFileObserver {
protected boolean isPopulated;
private LocalizationFile lf = null;
-
- private ArrayList listeners = new ArrayList();
+
+ private java.util.concurrent.CopyOnWriteArrayList listeners = new java.util.concurrent.CopyOnWriteArrayList();// DR 14404
+ //private ArrayList listeners = new ArrayList();// DR 14404
/** Singleton instance of this class */
private static FFMPRunConfigurationManager instance = new FFMPRunConfigurationManager();
@@ -259,11 +275,11 @@ public class FFMPRunConfigurationManager implements ILocalizationFileObserver {
try {
readConfigXml();
// inform listeners
- synchronized (listeners) {
+ //synchronized (listeners) {// DR 14404
for (MonitorConfigListener fl : listeners) {
fl.configChanged(new MonitorConfigEvent(this));
}
- }
+ //}// DR 14404
} catch (SerializationException e) {
e.printStackTrace();
}
diff --git a/edexOsgi/com.raytheon.uf.common.monitor/src/com/raytheon/uf/common/monitor/config/FFMPSourceConfigurationManager.java b/edexOsgi/com.raytheon.uf.common.monitor/src/com/raytheon/uf/common/monitor/config/FFMPSourceConfigurationManager.java
index 3f997cde88..4fceac7b05 100644
--- a/edexOsgi/com.raytheon.uf.common.monitor/src/com/raytheon/uf/common/monitor/config/FFMPSourceConfigurationManager.java
+++ b/edexOsgi/com.raytheon.uf.common.monitor/src/com/raytheon/uf/common/monitor/config/FFMPSourceConfigurationManager.java
@@ -38,6 +38,20 @@ import com.raytheon.uf.common.monitor.xml.SourceXML;
import com.raytheon.uf.common.serialization.SerializationException;
import com.raytheon.uf.common.serialization.SerializationUtil;
+/**
+ * FFMPSourceConfigurationManager
+ *
+ *
+ *
+ * SOFTWARE HISTORY
+ * Date Ticket# Engineer Description
+ * ------------ ---------- ----------- --------------------------
+ * 2012-09-04 DR 14404 gzhang Fixing ConcurrentModificationException
+ *
+ *
+ *
+ */
+
public class FFMPSourceConfigurationManager implements
ILocalizationFileObserver {
@@ -64,8 +78,9 @@ public class FFMPSourceConfigurationManager implements
private ArrayList accumulators = null;
private LocalizationFile lf = null;
-
- private ArrayList listeners = new ArrayList();
+
+ private java.util.concurrent.CopyOnWriteArrayList listeners = new java.util.concurrent.CopyOnWriteArrayList();// DR 14404
+ //private ArrayList listeners = new ArrayList();// DR 14404
/* Private Constructor */
private FFMPSourceConfigurationManager() {
@@ -481,11 +496,11 @@ public class FFMPSourceConfigurationManager implements
if (message.getFileName().equals(CONFIG_FILE_NAME)) {
readConfigXml();
// inform listeners
- synchronized (listeners) {
+ //synchronized (listeners) {// DR 14404
for (MonitorConfigListener fl : listeners) {
fl.configChanged(new MonitorConfigEvent(this));
}
- }
+ //}// DR 14404
}
}
diff --git a/edexOsgi/com.raytheon.uf.tools.gfesuite/cli/rsyncGridsToCWF.sh b/edexOsgi/com.raytheon.uf.tools.gfesuite/cli/rsyncGridsToCWF.sh
index 7c549fd520..9b01df9704 100644
--- a/edexOsgi/com.raytheon.uf.tools.gfesuite/cli/rsyncGridsToCWF.sh
+++ b/edexOsgi/com.raytheon.uf.tools.gfesuite/cli/rsyncGridsToCWF.sh
@@ -154,83 +154,21 @@ else
site=$(echo ${1} | tr '[A-Z]' '[a-z]')
fi
-IFPS_DATA="/awips2/GFESuite/ServiceBackup/data"
-GFESUITE_BIN="/awips2/GFESuite/bin"
-
################################################################################
# Configuration Section #
################################################################################
-### Work Directory for Netcdf files. ###
-DXwrkDir=$IFPS_DATA/rsyncGridsToCWF # must be a non-nas1 drive with enough space
-if [ ! -d ${DXwrkDir} ] ;then
- mkdir -p ${DXwrkDir}
- chmod 777 ${DXwrkDir}
- chown awips:fxalpha ${DXwrkDir}
+IFPS_DATA="/awips2/GFESuite/ServiceBackup/data"
+
+if [ ! -f ${IFPS_DATA}/rsync_parms.${site} ] ;then
+ echo "${IFPS_DATA}/rsync_parms.${site} does not exist!"
+ echo "Please contact your ITO to create this file from /awips2/GFESuite/bin/rsync_parms.ccc"
+ exit
+else
+ . ${IFPS_DATA}/rsync_parms.${site}
fi
-### Turn On/Off certain script functionality. ###
-QCnetCDF="no" # Do you want the netCDF file checked before
- # it is rsynced? This takes 5-15 minutes to
- # complete depending on size of domain.
- # *** Leave "no" for AWIPS 2. QC doesn't work ***
-
-checkCWFavailability="no" # Do you want the script to check to see if
- # the netcdf file made it to the Consolidated
- # web farm?
-
-### Banner notification configuration ###
-SendQCgoodNotification="no" # Tell forecaster that netcdf file passed
- # QC check.
-
-sendCWFnotification="no" # Tell forecaster when netcdf rsync complete
- # to the consolidated web farm.
-
-turnOffAllNotifications="yes" # This will turn off all banner messages.
-
-### new ldad configuration ###
-locServer="ldad@ls1" # Name of local rsync server.
-locDirectory="/data/ldad/grid" # Directory where grids are stored on the
- # local rsync server. Note that file will be
- # stored in $site sub directory.
-locRsyncSwitches="--address=192.168.1.10" # Needed to fix a noaanet rysnc problem.
-
-# Consolidated web farm
-remServer1="sync.weather.gov" # Name of remote rsync server.
-remDirectory1="netcdf-wfo" # Directory where grids are stored on the
- # remote rsync server.
-
-# Edit area to limit the portion of the grid domain to send to the webfarms.
-mask=ISC_Send_Area
-
-# Parameter list for the netcdf file
-parmlist="" #send all parameters
-. ${IFPS_DATA}/rsync_parms.${site}
-
-creationAttempts=3 # How many times do you want script to create and
- # quality control netcdf files if bad netcdf files
- # are detected?
-
-rsyncWait=30 # Minutes to wait for free rsync connection.
-CWFcheckWait=360 # Delay in seconds to wait to check to see if file made it
- # to the consolidated web farm.
-
-iscMosaicDelay=0.0 # Delay of 0.0 causes GFE pauses.
-
-probAlertNum=1 # Guardian alert level when problems occur.
-
-# Email notification configuration
-sendEmailNotification="no" # Do you want to send email notification of grids are not sent?
-emailAddress1=""
-emailAddress2=""
-emailAddress3=""
-
################################################################################
-# Set some paths
-WRKDIR="${DXwrkDir}/data"
-FXA_BIN="/awips2/fxa/bin"
-CDSHOST="ec"
-CDSPORT="9581"
# set current data and log file name
currdate=$(date -u +%Y%m%d)
@@ -278,6 +216,8 @@ else
echo "Will send all elements" >> $LOG_FILE
fi
+echo "Using grid domain $mask" >> $LOG_FILE
+
# Determine the ifpnetCDF start and end times.
start_time=$(date +%Y%m%d_%H00 -d "6 hours ago")
end_time=$(date +%Y%m%d_%H00 -d "192 hours")
diff --git a/edexOsgi/com.raytheon.uf.tools.gfesuite/cli/rsync_parms.ccc b/edexOsgi/com.raytheon.uf.tools.gfesuite/cli/rsync_parms.ccc
index d4613a9b00..4813f80e85 100644
--- a/edexOsgi/com.raytheon.uf.tools.gfesuite/cli/rsync_parms.ccc
+++ b/edexOsgi/com.raytheon.uf.tools.gfesuite/cli/rsync_parms.ccc
@@ -1,8 +1,78 @@
+# Configuration file for rsyncGridsToCWF.sh
+
+GFESUITE_BIN="/awips2/GFESuite/bin"
+
+### Work Directory for Netcdf files. ###
+DXwrkDir=$IFPS_DATA/rsyncGridsToCWF # must be a non-nas1 drive with enough space
+if [ ! -d ${DXwrkDir} ] ;then
+ mkdir -p ${DXwrkDir}
+ chmod 777 ${DXwrkDir}
+ chown awips:fxalpha ${DXwrkDir}
+fi
+
+### Turn On/Off certain script functionality. ###
+QCnetCDF="no" # Do you want the netCDF file checked before
+ # it is rsynced? This takes 5-15 minutes to
+ # complete depending on size of domain.
+ # *** Leave "no" for AWIPS 2. QC doesn't work ***
+
+checkCWFavailability="no" # Do you want the script to check to see if
+ # the netcdf file made it to the Consolidated
+ # web farm?
+
+### Banner notification configuration ###
+SendQCgoodNotification="no" # Tell forecaster that netcdf file passed
+ # QC check.
+
+sendCWFnotification="no" # Tell forecaster when netcdf rsync complete
+ # to the consolidated web farm.
+
+turnOffAllNotifications="yes" # This will turn off all banner messages.
+
+### new ldad configuration ###
+locServer="ldad@ls1" # Name of local rsync server.
+locDirectory="/data/ldad/grid" # Directory where grids are stored on the
+ # local rsync server. Note that file will be
+ # stored in $site sub directory.
+locRsyncSwitches="--address=192.168.1.10" # Needed to fix a noaanet rysnc problem.
+
+# Consolidated web farm
+remServer1="sync.weather.gov" # Name of remote rsync server.
+remDirectory1="netcdf-wfo" # Directory where grids are stored on the
+ # remote rsync server.
+
+# Edit area to limit the portion of the grid domain to send to the webfarms.
+mask=ISC_Send_Area
+
# Parameter list for the netcdf file
-# Example: parmlist1="-p ClearIndex -p MaxT"
-parmlist1=""
-parmlist2=""
-parmlist3=""
+parmlist1="-p MaxT -p MinT -p MaxRH -p MinRH -p T -p Td -p RH -p WindChill -p HeatIndex -p ApparentT"
+parmlist2="-p PoP -p PoP12 -p Sky -p Wx -p Hazards -p SnowLevel -p QPF -p SnowAmt -p IceAccum -p Wind -p WindGust"
+parmlist3="-p ClearIndex -p FreeWind -p LAL -p Haines -p MixHgt -p VentRate -p TransWind -p Wind20ft -p CLRIndx"
parmlist5=""
parmlist6=""
parmlist="$parmlist1 $parmlist2 $parmlist3 $parmlist4 $parmlist5 $parmlist6"
+parmlist="" #uncomment to send all parameters
+
+creationAttempts=3 # How many times do you want script to create and
+ # quality control netcdf files if bad netcdf files
+ # are detected?
+
+rsyncWait=30 # Minutes to wait for free rsync connection.
+CWFcheckWait=360 # Delay in seconds to wait to check to see if file made it
+ # to the consolidated web farm.
+
+iscMosaicDelay=0.0 # Delay of 0.0 causes GFE pauses.
+
+probAlertNum=1 # Guardian alert level when problems occur.
+
+# Email notification configuration
+sendEmailNotification="no" # Do you want to send email notification of grids are not sent?
+emailAddress1=""
+emailAddress2=""
+emailAddress3=""
+
+# Set some paths
+WRKDIR="${DXwrkDir}/data"
+FXA_BIN="/awips2/fxa/bin"
+CDSHOST="ec"
+CDSPORT="9581"