From 6b033595399f89a4eb9e0e55ab22a349e37e20a4 Mon Sep 17 00:00:00 2001 From: mjames-upc Date: Thu, 7 Jan 2016 10:53:31 -0700 Subject: [PATCH] removing LDAD components Former-commit-id: e68a98374fb9f30cc7c91cd028777406d5603965 --- .../feature.xml | 7 - .../feature.xml | 6 - .../bundles/run-ldadScheduler.xml | 5 - .../localization/bundles/LDADHydroPlot.xml | 67 - .../localization/bundles/LDADMesoPlot.xml | 67 - .../localization/bundles/LDADMesoQCPlot.xml | 93 - .../localization/menus/obs/baseLocalData.xml | 122 - .../localization/menus/obs/index.xml | 4 +- .../viz/pointdata/rsc/PlotResourceData.java | 2 - .../pointdata/util/PointDataCubeAdapter.java | 2 +- .../com.raytheon.edex.plugin.ldad/.classpath | 7 - .../com.raytheon.edex.plugin.ldad/.project | 28 - .../META-INF/MANIFEST.MF | 8 - .../build.properties | 5 - .../com.raytheon.edex.plugin.ldad.ecl | 0 .../res/spring/ldad-common.xml | 15 - .../res/spring/ldad-ingest.xml | 56 - .../edex/plugin/ldad/common/DecodedData.java | 67 - .../edex/plugin/ldad/common/LdadDataType.java | 59 - .../edex/plugin/ldad/common/LdadField.java | 56 - .../edex_static/base/ldad/ldadUnitsMap.txt | 356 --- .../.classpath | 7 - .../.project | 28 - .../META-INF/MANIFEST.MF | 19 - .../build.properties | 5 - .../com.raytheon.edex.plugin.ldadhydro.ecl | 0 .../res/pointdata/ldadhydro.xml | 59 - .../res/pointdata/ldadhydrodb.xml | 28 - .../res/spring/ldadhydro-common.xml | 16 - .../res/spring/ldadhydro-ingest.xml | 40 - .../plugin/ldadhydro/dao/HydroDecoder.java | 337 --- .../plugin/ldadhydro/dao/LdadHydroDao.java | 174 -- .../dao/LdadhydroPointDataTransform.java | 205 -- .../base/purge/ldadhydroPurgeRules.xml | 8 - .../base/distribution/ldadhydro.xml | 23 - .../.classpath | 7 - .../.project | 28 - .../META-INF/MANIFEST.MF | 16 - ...f.common.serialization.ISerializableObject | 1 - .../build.properties | 5 - .../com.raytheon.edex.plugin.ldadmanual.ecl | 0 .../res/spring/ldadmanual-common.xml | 17 - .../res/spring/ldadmanual-ingest.xml | 37 - .../plugin/ldadmanual/dao/LdadManualDao.java | 76 - .../plugin/ldadmanual/dao/ManualDecoder.java | 292 --- .../ldadmanual/dao/ManualLdadRecord.java | 2314 ----------------- .../base/purge/ldadmanualPurgeRules.xml | 8 - .../base/distribution/ldadmanual.xml | 23 - .../.classpath | 7 - .../.project | 34 - .../.pydevproject | 7 - .../LdadprofilerDecoder.py | 122 - .../META-INF/MANIFEST.MF | 19 - ...f.common.serialization.ISerializableObject | 2 - .../build.properties | 7 - .../com.raytheon.edex.plugin.ldadprofiler.ecl | 0 .../res/pointdata/ldadprofiler.xml | 35 - .../res/spring/ldadprofiler-common.xml | 21 - .../res/spring/ldadprofiler-ingest.xml | 55 - .../LdadprofilerPointDataTransform.java | 192 -- .../common/ProfilerLdadLevel.java | 283 -- .../ldadprofiler/common/ProfilerLdadObs.java | 344 --- .../ldadprofiler/dao/LdadProfilerDao.java | 90 - .../base/purge/ldadprofilerPurgeRules.xml | 8 - .../base/distribution/ldadprofiler.xml | 23 - .../.classpath | 7 - .../.project | 28 - .../META-INF/MANIFEST.MF | 21 - .../build.properties | 5 - ...aytheon.uf.common.dataplugin.ldadhydro.ecl | 0 .../dataplugin/ldadhydro/HydroLdadRecord.java | 1036 -------- .../definitions/accum_precip15min.xml | 29 - .../definitions/accum_precip30min.xml | 30 - .../definitions/accum_precipAccum15min.xml | 29 - .../definitions/accum_precipAccum1hr.xml | 29 - .../definitions/accum_precipAccum30min.xml | 29 - .../definitions/accum_precipAccum3hr.xml | 29 - .../definitions/accum_precipAccum5min.xml | 29 - .../definitions/lh_precip15min.xml | 27 - .../definitions/lh_precip1hr.xml | 27 - .../definitions/lh_precip30min.xml | 27 - .../definitions/lh_precip3hr.xml | 27 - .../definitions/lh_precip5min.xml | 27 - .../.classpath | 7 - .../.project | 28 - .../META-INF/MANIFEST.MF | 15 - .../build.properties | 5 - ...theon.uf.common.dataplugin.ldadmesonet.ecl | 0 .../spring/ldadmesonet-common-dataaccess.xml | 12 - .../ldadmesonet/MesonetLdadRecord.java | 1666 ------------ .../base/archiver/purger/PROCESSED_DATA.xml | 9 - .../feature.xml | 49 - .../.classpath | 7 - .../.project | 28 - .../META-INF/MANIFEST.MF | 14 - .../build.properties | 5 - ...om.raytheon.uf.edex.plugin.ldadmesonet.ecl | 0 .../res/pointdata/ldadmesonet.xml | 91 - .../res/pointdata/ldadmesonetdb.xml | 30 - .../res/spring/ldadmesonet-common.xml | 20 - .../res/spring/ldadmesonet-ingest.xml | 42 - .../LdadmesonetPointDataTransform.java | 557 ---- .../plugin/ldadmesonet/MesonetDecoder.java | 445 ---- .../ldadmesonet/dao/LdadMesonetDao.java | 172 -- .../base/purge/ldadmesonetPurgeRules.xml | 8 - .../base/distribution/ldadmesonet.xml | 23 - 106 files changed, 2 insertions(+), 10721 deletions(-) delete mode 100644 cave/com.raytheon.viz.hydro/localization/bundles/run-ldadScheduler.xml delete mode 100644 cave/com.raytheon.viz.pointdata/localization/bundles/LDADHydroPlot.xml delete mode 100644 cave/com.raytheon.viz.pointdata/localization/bundles/LDADMesoPlot.xml delete mode 100644 cave/com.raytheon.viz.pointdata/localization/bundles/LDADMesoQCPlot.xml delete mode 100644 cave/com.raytheon.viz.pointdata/localization/menus/obs/baseLocalData.xml delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldad/.classpath delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldad/.project delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldad/META-INF/MANIFEST.MF delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldad/build.properties delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldad/com.raytheon.edex.plugin.ldad.ecl delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldad/res/spring/ldad-common.xml delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldad/res/spring/ldad-ingest.xml delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldad/src/com/raytheon/edex/plugin/ldad/common/DecodedData.java delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldad/src/com/raytheon/edex/plugin/ldad/common/LdadDataType.java delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldad/src/com/raytheon/edex/plugin/ldad/common/LdadField.java delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldad/utility/edex_static/base/ldad/ldadUnitsMap.txt delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadhydro/.classpath delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadhydro/.project delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadhydro/META-INF/MANIFEST.MF delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadhydro/build.properties delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadhydro/com.raytheon.edex.plugin.ldadhydro.ecl delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadhydro/res/pointdata/ldadhydro.xml delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadhydro/res/pointdata/ldadhydrodb.xml delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadhydro/res/spring/ldadhydro-common.xml delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadhydro/res/spring/ldadhydro-ingest.xml delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadhydro/src/com/raytheon/edex/plugin/ldadhydro/dao/HydroDecoder.java delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadhydro/src/com/raytheon/edex/plugin/ldadhydro/dao/LdadHydroDao.java delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadhydro/src/com/raytheon/edex/plugin/ldadhydro/dao/LdadhydroPointDataTransform.java delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadhydro/utility/common_static/base/purge/ldadhydroPurgeRules.xml delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadhydro/utility/edex_static/base/distribution/ldadhydro.xml delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadmanual/.classpath delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadmanual/.project delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadmanual/META-INF/MANIFEST.MF delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadmanual/META-INF/services/com.raytheon.uf.common.serialization.ISerializableObject delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadmanual/build.properties delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadmanual/com.raytheon.edex.plugin.ldadmanual.ecl delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadmanual/res/spring/ldadmanual-common.xml delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadmanual/res/spring/ldadmanual-ingest.xml delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadmanual/src/com/raytheon/edex/plugin/ldadmanual/dao/LdadManualDao.java delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadmanual/src/com/raytheon/edex/plugin/ldadmanual/dao/ManualDecoder.java delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadmanual/src/com/raytheon/edex/plugin/ldadmanual/dao/ManualLdadRecord.java delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadmanual/utility/common_static/base/purge/ldadmanualPurgeRules.xml delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadmanual/utility/edex_static/base/distribution/ldadmanual.xml delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadprofiler/.classpath delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadprofiler/.project delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadprofiler/.pydevproject delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadprofiler/LdadprofilerDecoder.py delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadprofiler/META-INF/MANIFEST.MF delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadprofiler/META-INF/services/com.raytheon.uf.common.serialization.ISerializableObject delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadprofiler/build.properties delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadprofiler/com.raytheon.edex.plugin.ldadprofiler.ecl delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadprofiler/res/pointdata/ldadprofiler.xml delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadprofiler/res/spring/ldadprofiler-common.xml delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadprofiler/res/spring/ldadprofiler-ingest.xml delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadprofiler/src/com/raytheon/edex/plugin/ldadprofiler/common/LdadprofilerPointDataTransform.java delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadprofiler/src/com/raytheon/edex/plugin/ldadprofiler/common/ProfilerLdadLevel.java delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadprofiler/src/com/raytheon/edex/plugin/ldadprofiler/common/ProfilerLdadObs.java delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadprofiler/src/com/raytheon/edex/plugin/ldadprofiler/dao/LdadProfilerDao.java delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadprofiler/utility/common_static/base/purge/ldadprofilerPurgeRules.xml delete mode 100644 edexOsgi/com.raytheon.edex.plugin.ldadprofiler/utility/edex_static/base/distribution/ldadprofiler.xml delete mode 100644 edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/.classpath delete mode 100644 edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/.project delete mode 100644 edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/META-INF/MANIFEST.MF delete mode 100644 edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/build.properties delete mode 100644 edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/com.raytheon.uf.common.dataplugin.ldadhydro.ecl delete mode 100644 edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/src/com/raytheon/uf/common/dataplugin/ldadhydro/HydroLdadRecord.java delete mode 100644 edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precip15min.xml delete mode 100644 edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precip30min.xml delete mode 100644 edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precipAccum15min.xml delete mode 100644 edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precipAccum1hr.xml delete mode 100644 edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precipAccum30min.xml delete mode 100644 edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precipAccum3hr.xml delete mode 100644 edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precipAccum5min.xml delete mode 100644 edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/lh_precip15min.xml delete mode 100644 edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/lh_precip1hr.xml delete mode 100644 edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/lh_precip30min.xml delete mode 100644 edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/lh_precip3hr.xml delete mode 100644 edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/lh_precip5min.xml delete mode 100644 edexOsgi/com.raytheon.uf.common.dataplugin.ldadmesonet/.classpath delete mode 100644 edexOsgi/com.raytheon.uf.common.dataplugin.ldadmesonet/.project delete mode 100644 edexOsgi/com.raytheon.uf.common.dataplugin.ldadmesonet/META-INF/MANIFEST.MF delete mode 100644 edexOsgi/com.raytheon.uf.common.dataplugin.ldadmesonet/build.properties delete mode 100644 edexOsgi/com.raytheon.uf.common.dataplugin.ldadmesonet/com.raytheon.uf.common.dataplugin.ldadmesonet.ecl delete mode 100644 edexOsgi/com.raytheon.uf.common.dataplugin.ldadmesonet/res/spring/ldadmesonet-common-dataaccess.xml delete mode 100644 edexOsgi/com.raytheon.uf.common.dataplugin.ldadmesonet/src/com/raytheon/uf/common/dataplugin/ldadmesonet/MesonetLdadRecord.java delete mode 100644 edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/.classpath delete mode 100644 edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/.project delete mode 100644 edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/META-INF/MANIFEST.MF delete mode 100644 edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/build.properties delete mode 100644 edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/com.raytheon.uf.edex.plugin.ldadmesonet.ecl delete mode 100644 edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/res/pointdata/ldadmesonet.xml delete mode 100644 edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/res/pointdata/ldadmesonetdb.xml delete mode 100644 edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/res/spring/ldadmesonet-common.xml delete mode 100644 edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/res/spring/ldadmesonet-ingest.xml delete mode 100644 edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/src/com/raytheon/uf/edex/plugin/ldadmesonet/LdadmesonetPointDataTransform.java delete mode 100644 edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/src/com/raytheon/uf/edex/plugin/ldadmesonet/MesonetDecoder.java delete mode 100644 edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/src/com/raytheon/uf/edex/plugin/ldadmesonet/dao/LdadMesonetDao.java delete mode 100644 edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/utility/common_static/base/purge/ldadmesonetPurgeRules.xml delete mode 100644 edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/utility/edex_static/base/distribution/ldadmesonet.xml diff --git a/cave/com.raytheon.uf.viz.dataplugins.feature/feature.xml b/cave/com.raytheon.uf.viz.dataplugins.feature/feature.xml index c70983b93a..aed9b16de8 100644 --- a/cave/com.raytheon.uf.viz.dataplugins.feature/feature.xml +++ b/cave/com.raytheon.uf.viz.dataplugins.feature/feature.xml @@ -111,13 +111,6 @@ version="0.0.0" unpack="false"/> - - - - - - \ No newline at end of file diff --git a/cave/com.raytheon.viz.pointdata/localization/bundles/LDADHydroPlot.xml b/cave/com.raytheon.viz.pointdata/localization/bundles/LDADHydroPlot.xml deleted file mode 100644 index ac86c82d3c..0000000000 --- a/cave/com.raytheon.viz.pointdata/localization/bundles/LDADHydroPlot.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - PLAN_VIEW - - - - - - basemaps/ldad15.spi - LDAD Stations - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/cave/com.raytheon.viz.pointdata/localization/bundles/LDADMesoPlot.xml b/cave/com.raytheon.viz.pointdata/localization/bundles/LDADMesoPlot.xml deleted file mode 100644 index cfd4d30759..0000000000 --- a/cave/com.raytheon.viz.pointdata/localization/bundles/LDADMesoPlot.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - PLAN_VIEW - - - - - - basemaps/ldad15.spi - LDAD Stations - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/cave/com.raytheon.viz.pointdata/localization/bundles/LDADMesoQCPlot.xml b/cave/com.raytheon.viz.pointdata/localization/bundles/LDADMesoQCPlot.xml deleted file mode 100644 index 4b1a467fac..0000000000 --- a/cave/com.raytheon.viz.pointdata/localization/bundles/LDADMesoQCPlot.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - - - - - - - PLAN_VIEW - - - - - - basemaps/ldad15.spi - LDAD Stations - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/cave/com.raytheon.viz.pointdata/localization/menus/obs/baseLocalData.xml b/cave/com.raytheon.viz.pointdata/localization/menus/obs/baseLocalData.xml deleted file mode 100644 index 81ae1eac72..0000000000 --- a/cave/com.raytheon.viz.pointdata/localization/menus/obs/baseLocalData.xml +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/cave/com.raytheon.viz.pointdata/localization/menus/obs/index.xml b/cave/com.raytheon.viz.pointdata/localization/menus/obs/index.xml index 2c57c6c082..f0d58d73d9 100644 --- a/cave/com.raytheon.viz.pointdata/localization/menus/obs/index.xml +++ b/cave/com.raytheon.viz.pointdata/localization/menus/obs/index.xml @@ -25,8 +25,6 @@ fileName="menus/obs/baseMetar.xml"/> - - \ No newline at end of file + diff --git a/cave/com.raytheon.viz.pointdata/src/com/raytheon/viz/pointdata/rsc/PlotResourceData.java b/cave/com.raytheon.viz.pointdata/src/com/raytheon/viz/pointdata/rsc/PlotResourceData.java index da7f124027..41fbf2cc56 100644 --- a/cave/com.raytheon.viz.pointdata/src/com/raytheon/viz/pointdata/rsc/PlotResourceData.java +++ b/cave/com.raytheon.viz.pointdata/src/com/raytheon/viz/pointdata/rsc/PlotResourceData.java @@ -147,7 +147,6 @@ public class PlotResourceData extends AbstractRequestableResourceData { pluginProps.put("radar", new PluginPlotProperties(false)); pluginProps.put("tcg", new PluginPlotProperties(false)); pluginProps.put("svrwx", new PluginPlotProperties(false)); - pluginProps.put("ldadhydro", new PluginPlotProperties(false)); pluginProps.put("textPoints", new PluginPlotProperties(false)); /* @@ -170,7 +169,6 @@ public class PlotResourceData extends AbstractRequestableResourceData { pluginProps.put("bufrmosLAMP", new PluginPlotProperties()); pluginProps.put("bufrmosMRF", new PluginPlotProperties()); pluginProps.put("bufrmosNGM", new PluginPlotProperties()); - pluginProps.put("ldadmesonet", new PluginPlotProperties()); pluginProps.put("qc", new PluginPlotProperties()); pluginProps.put("bufrascat", new PluginPlotProperties()); pluginProps.put("bufrhdw", new PluginPlotProperties()); diff --git a/cave/com.raytheon.viz.pointdata/src/com/raytheon/viz/pointdata/util/PointDataCubeAdapter.java b/cave/com.raytheon.viz.pointdata/src/com/raytheon/viz/pointdata/util/PointDataCubeAdapter.java index bb5a9d2ade..4192c2cbd7 100644 --- a/cave/com.raytheon.viz.pointdata/src/com/raytheon/viz/pointdata/util/PointDataCubeAdapter.java +++ b/cave/com.raytheon.viz.pointdata/src/com/raytheon/viz/pointdata/util/PointDataCubeAdapter.java @@ -76,7 +76,7 @@ public class PointDataCubeAdapter extends DefaultDataCubeAdapter { private static String[] supportedPlugins = { "obs", "madis", "modelsounding", "bufrssmi", "bufrquikscat", "lsr", "sfcobs", "goessounding", "bufrascat", "poessounding", "profiler", "bufrua", - "ldadmesonet", "ldadhydro", "qc", "fssobs", "bufrmosAVN", + "qc", "fssobs", "bufrmosAVN", "bufrmosETA", "bufrmosGFS", "bufrmosHPC", "bufrmosLAMP", "bufrmosMRF", "bufrmosNGM", "airep", "pirep", "nctaf" }; diff --git a/edexOsgi/com.raytheon.edex.plugin.ldad/.classpath b/edexOsgi/com.raytheon.edex.plugin.ldad/.classpath deleted file mode 100644 index 1fa3e6803d..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldad/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/edexOsgi/com.raytheon.edex.plugin.ldad/.project b/edexOsgi/com.raytheon.edex.plugin.ldad/.project deleted file mode 100644 index 85ace3766b..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldad/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - com.raytheon.edex.plugin.ldad - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - diff --git a/edexOsgi/com.raytheon.edex.plugin.ldad/META-INF/MANIFEST.MF b/edexOsgi/com.raytheon.edex.plugin.ldad/META-INF/MANIFEST.MF deleted file mode 100644 index 0f6ef38982..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldad/META-INF/MANIFEST.MF +++ /dev/null @@ -1,8 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: Ldad Plug-in -Bundle-SymbolicName: com.raytheon.edex.plugin.ldad -Bundle-Version: 1.12.1174.qualifier -Bundle-Vendor: RAYTHEON -Bundle-RequiredExecutionEnvironment: JavaSE-1.6 -Export-Package: com.raytheon.edex.plugin.ldad.common diff --git a/edexOsgi/com.raytheon.edex.plugin.ldad/build.properties b/edexOsgi/com.raytheon.edex.plugin.ldad/build.properties deleted file mode 100644 index 5791d48d5f..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldad/build.properties +++ /dev/null @@ -1,5 +0,0 @@ -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - .,\ - res/ diff --git a/edexOsgi/com.raytheon.edex.plugin.ldad/com.raytheon.edex.plugin.ldad.ecl b/edexOsgi/com.raytheon.edex.plugin.ldad/com.raytheon.edex.plugin.ldad.ecl deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/edexOsgi/com.raytheon.edex.plugin.ldad/res/spring/ldad-common.xml b/edexOsgi/com.raytheon.edex.plugin.ldad/res/spring/ldad-common.xml deleted file mode 100644 index e1929fcf72..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldad/res/spring/ldad-common.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - diff --git a/edexOsgi/com.raytheon.edex.plugin.ldad/res/spring/ldad-ingest.xml b/edexOsgi/com.raytheon.edex.plugin.ldad/res/spring/ldad-ingest.xml deleted file mode 100644 index 84ae50fe1e..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldad/res/spring/ldad-ingest.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - diff --git a/edexOsgi/com.raytheon.edex.plugin.ldad/src/com/raytheon/edex/plugin/ldad/common/DecodedData.java b/edexOsgi/com.raytheon.edex.plugin.ldad/src/com/raytheon/edex/plugin/ldad/common/DecodedData.java deleted file mode 100644 index 54bb36fc4b..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldad/src/com/raytheon/edex/plugin/ldad/common/DecodedData.java +++ /dev/null @@ -1,67 +0,0 @@ -/** - * This software was developed and / or modified by Raytheon Company, - * pursuant to Contract DG133W-05-CQ-1067 with the US Government. - * - * U.S. EXPORT CONTROLLED TECHNICAL DATA - * This software product contains export-restricted data whose - * export/transfer/disclosure is restricted by U.S. law. Dissemination - * to non-U.S. persons whether in the United States or abroad requires - * an export license or other authorization. - * - * Contractor Name: Raytheon Company - * Contractor Address: 6825 Pine Street, Suite 340 - * Mail Stop B8 - * Omaha, NE 68106 - * 402.291.0100 - * - * See the AWIPS II Master Rights File ("Master Rights File.pdf") for - * further licensing information. - **/ -package com.raytheon.edex.plugin.ldad.common; - -import java.util.ArrayList; -import java.util.List; - -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; - -/** - * Decoded LDAD XML data structure. - * - *
- * SOFTWARE HISTORY
- * Date         Ticket#    Engineer    Description
- * ------------ ---------- ----------- --------------------------
- * 08/17/09					dfriedman	Initial creation
- * 
- * 
- * - * @author dfriedman - * @version 1.0 - */ - -@XmlRootElement -public class DecodedData { - @XmlAttribute - public String fileName; // original file name - @XmlAttribute - public String storageType; // "mesonet", "hydro", etc. - @XmlAttribute - public String type; // data type name or "msas_qc." - @XmlAttribute - public String root; // original data type name - @XmlAttribute - public String source; // same as type? - @XmlAttribute - public String provider; // data type name? or "MSAS_QC" - @XmlAttribute - public String missingValue; - @XmlAttribute - public long reportTime; // Report time in seconds since 1/1/1970 - - @XmlElement(name="field") - public List fields = new ArrayList(); - - -} diff --git a/edexOsgi/com.raytheon.edex.plugin.ldad/src/com/raytheon/edex/plugin/ldad/common/LdadDataType.java b/edexOsgi/com.raytheon.edex.plugin.ldad/src/com/raytheon/edex/plugin/ldad/common/LdadDataType.java deleted file mode 100644 index 71403f44f5..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldad/src/com/raytheon/edex/plugin/ldad/common/LdadDataType.java +++ /dev/null @@ -1,59 +0,0 @@ -/** - * This software was developed and / or modified by Raytheon Company, - * pursuant to Contract DG133W-05-CQ-1067 with the US Government. - * - * U.S. EXPORT CONTROLLED TECHNICAL DATA - * This software product contains export-restricted data whose - * export/transfer/disclosure is restricted by U.S. law. Dissemination - * to non-U.S. persons whether in the United States or abroad requires - * an export license or other authorization. - * - * Contractor Name: Raytheon Company - * Contractor Address: 6825 Pine Street, Suite 340 - * Mail Stop B8 - * Omaha, NE 68106 - * 402.291.0100 - * - * See the AWIPS II Master Rights File ("Master Rights File.pdf") for - * further licensing information. - **/ -package com.raytheon.edex.plugin.ldad.common; - -/** - * Decoded LDAD data types. - * - *
- * SOFTWARE HISTORY
- * Date         Ticket#    Engineer    Description
- * ------------ ---------- ----------- --------------------------
- * 08/17/09					dfriedman	Initial creation
- * 
- * 
- * - * @author dfriedman - * @version 1.0 - */ - -public enum LdadDataType { - STRING(0), - DATE_TIME(1), - SHORT(2), INT(3), LONG(4), - FLOAT(5), DOUBLE(6); - - private int id; - private LdadDataType(int id) { - this.id = id; - } - public boolean isNumeric() { - return this != STRING && this != DATE_TIME; - } - public static LdadDataType fromId(int id) { - for (LdadDataType t : LdadDataType.values()) - if (t.getId() == id) - return t; - return null; - } - private int getId() { - return id; - } -} diff --git a/edexOsgi/com.raytheon.edex.plugin.ldad/src/com/raytheon/edex/plugin/ldad/common/LdadField.java b/edexOsgi/com.raytheon.edex.plugin.ldad/src/com/raytheon/edex/plugin/ldad/common/LdadField.java deleted file mode 100644 index a761735583..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldad/src/com/raytheon/edex/plugin/ldad/common/LdadField.java +++ /dev/null @@ -1,56 +0,0 @@ -/** - * This software was developed and / or modified by Raytheon Company, - * pursuant to Contract DG133W-05-CQ-1067 with the US Government. - * - * U.S. EXPORT CONTROLLED TECHNICAL DATA - * This software product contains export-restricted data whose - * export/transfer/disclosure is restricted by U.S. law. Dissemination - * to non-U.S. persons whether in the United States or abroad requires - * an export license or other authorization. - * - * Contractor Name: Raytheon Company - * Contractor Address: 6825 Pine Street, Suite 340 - * Mail Stop B8 - * Omaha, NE 68106 - * 402.291.0100 - * - * See the AWIPS II Master Rights File ("Master Rights File.pdf") for - * further licensing information. - **/ -package com.raytheon.edex.plugin.ldad.common; - -import java.util.ArrayList; -import java.util.List; - -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - -/** - * Decoded LDAD XML data structure. - * - *
- * SOFTWARE HISTORY
- * Date         Ticket#    Engineer    Description
- * ------------ ---------- ----------- --------------------------
- * 08/17/09					dfriedman	Initial creation
- * 
- * 
- * - * @author dfriedman - * @version 1.0 - */ - -@XmlType(name="field") -public class LdadField { - @XmlAttribute - public String variableName; - @XmlAttribute - public String units; - @XmlAttribute - public LdadDataType type; - @XmlElement(name="v") - //@XmlList - public List values = new ArrayList(); - -} diff --git a/edexOsgi/com.raytheon.edex.plugin.ldad/utility/edex_static/base/ldad/ldadUnitsMap.txt b/edexOsgi/com.raytheon.edex.plugin.ldad/utility/edex_static/base/ldad/ldadUnitsMap.txt deleted file mode 100644 index e57b41df68..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldad/utility/edex_static/base/ldad/ldadUnitsMap.txt +++ /dev/null @@ -1,356 +0,0 @@ -#$Id: ldatUnitsMap.txt 2009-09-28 slav Exp $ -#==================================================================================== -# LDAD FIELD UNITS -#-------------------------------------------------- -# dataProvider # Typical data providers: CDoT, KDoT, UDFCD, etc. -# homeWFO -# observationTime #observationTime -# SurfaceObsLocation location #latitude, longitude, elevation, stationId "RALC2" -# providerId #* "110" "FA6026DA" Data Provider station Id -# stationName #* "Ralston_Res" "BEN CREEK AIRSTRIP" ????????????????? -# handbook5Id #* "" ???????????????? -# stationType #* "STO" "RAWS" ???????????? -# reportTime #* 1.247436157E9 time data was processed by the provider -# receivedTime #* time data was received - seconds since 1-1-1970 -# numericWMOid # numeric WMO identification -# dataPlatformType #short -32767 moving (e.g. floating buoy or ship) -# tempChangeTime # time of temperature last change - seconds since 1970-1-1 00:00:00.0 -# rhChangeTime # time of last relative humidity change -# stationPressChangeTime #time of last station press change -# pressChangeChar #long_name = "character of pressure change" -# windDirChangeTime #seconds since 1970-1-1 00:00:00.0 -# windSpeedChangeTime -# windGustChangeTime -# skyCover #char ref FMH-1 -# visibilityStatus -# totalCloudCover # tenths -# presWeather #present weather ref FMH-1 -# lowLevelCloudType # lowLevelCloudType:long_name = "low level cloud type" -# midLevelCloudType # midLevelCloudType:long_name = "middle level cloud type" -# highLevelCloudType # highLevelCloudType:long_name = "high level cloud type" -# maxTempRecordPeriod # maxTempRecordPeriod:long_name = "maximum temperature recording period" -# minTempRecordPeriod # minTempRecordPeriod:long_name = "minimum temperature recording period" -# precipType # precipType:long_name = "precipitation type" -# timeSinceLastPcp #seconds -# solarRadChangeTime #seconds since 1970-1-1 00:00:00.0 -# rawMessage -# cloudBaseHeight # cloudBaseHeight:long_name = "height of the lowest cloud layer" -# precipIntensity # precipIntensity:long_name = "precipitation intensity" -#---------------------------------------------------- -# ldad_mesonet VarName stored units -#-------------------------------------------------- -platformTrueDirection degree_angle -platformTrueSpeed m*s^-1 -wetBulbTemperature K -stationPressure Pa -pressChange3Hour Pa -windDirMin degree_angle -windDirMax degree_angle -skyLayerBase m -visibility m -maximumTemperature K -minimumTemperature K -precipAccum mm -solarRadiation W*m^-2 -seaSurfaceTemp K -wavePeriod s -waveHeight m -temperature K -dewpoint K -relHumidity % -windDir degree_angle -windSpeed m*s^-1 -windGust m*s^-1 -pressure Pa -seaLevelPressure Pa -altimeter Pa -precipRate m*s^-1 -fuelTemperature K -fuelMoisture % -soilTemperature K -soilMoisture % -#-------------------------------------------------- -#ldad_hydro VarName stored units -#-------------------------------------------------- -#voltageBattery volt -#waterConductance umhos/cm -#waterOxygen mg/l -#waterPH ph -#riverReportChangeTime -belowSurface m -riverStage m -poolElevation m -tailwaterStage m -riverVelocity kph -riverInflow m^3/s -riverFlow m^3/s -computedOutflow m^3/s -waterTemperature K -windSpeedPeak m*s^-1 -precip5min mm -precip1hr mm -precip3hr mm -precip6hr mm -precip12hr mm -precip18hr mm -precip24hr mm -#-------------------------------------------------- -#ldad_manual VarName stored units -#-------------------------------------------------- -code10 mm -#code11 mm -#code12 mm -#code13 mm -#code14 mm -#code15 mm -#code16 mm -#code17 mm -#code18 mm -#code19 h -#code21 K -#code22 K -#code23 K -#code24 K -#code25 K -#code26 K -#code27 K -#code28 K -#code29 K -#code30 h -#code31 h -#code32 K -#code33 m -#code34 m -#code35 m -#code36 m -#code37 m -#code38 m -#code40 m -#code43 m^3/s -#code44 m^3/s -#code45 m^3/s -#code46 m^3/s -#code47 m^3/s -#code48 m^3/s -#code49 m^3/s -#code50 m^3/s -#code52 m -#code53 m -#code54 m -#code55 m -#code56 m -#code57 m -#code58 m^3/s -#code59 m^3/s -#code60 m^3/s -#code61 m^3/s -#code62 m^3/s -#code63 m^3/s -#code64 m^3/s -#code65 m^3 -#code66 m -#code67 % -#code68 m -#code69 m -#code70 m/m -#code71 m -#code73 % -#code74 m -#code75 m -#code76 m -#code78 m -#code79 m -#code83 m -#code86 % -#code87 m -#code88 m*s^-1 -#code89 degree_angle -#code90 h -#code91 W*m^-2 -#code93 h -#code94 K -#code95 K -#code96 m - - -# ==================================================== -# UNITS OF THERMODYNAMIC TEMPERATURE -# -#KELVIN KELVIN -#CELSIUS KELVIN @ 273.15 -#RANKINE KELVIN/1.8 -#FAHRENHEIT RANKINE @ 459.67 - -#C CELSIUS # `C' means `coulomb' -Celsius Celsius -celsius Celsius -degree_centigrade Celsius -degC Celsius -degreeC Celsius -degree_C Celsius -degree_c Celsius -deg_C Celsius -deg_c Celsius -degK K -degreeK K -degree_K K -degree_k K -deg_K K -deg_k K -K K -degF degree_fahrenheit -degreeF degree_fahrenheit -degree_F degree_fahrenheit -degree_f degree_fahrenheit -deg_F degree_fahrenheit -deg_f degree_fahrenheit -F degree_fahrenheit -Fahrenheit degree_fahrenheit -fahrenheit degree_fahrenheit -#R RANKINE # `R' means `roentgen' -degR degree_rankine -degreeR degree_rankine -degree_R degree_rankine -degree_r degree_rankine -deg_R degree_rankine -deg_r degree_rankine -Rankine degree_rankine -rankine degree_rankine -# ----------------------------------------- -#Relative humidity -% % -# ----------------------------------------- -# UNITS OF LENGTH -# -m m -metre m -# God help us! There's an international foot and a US survey foot and -# they're not the same! - -# International foot stuff: -international_inch in -international_foot ft -international_feet ft -international_yard yd -international_mile mi - -# Alias unspecified units to the international units: -inch in -foot ft -yard yd -mile mi - -# The following should hold regardless: -inches in -in in -feet ft -ft ft -yd yd - -nmile nmi -nmi nmi - -mm mm - -# ----------------------------------------- -# UNITS OF TIME -# -day d -hour h -minute min -s s -sec s -common_year year -d d -min min -hr h -h h -week week -year year -yr year -a year -month month - -# ----------------------------------------- -# UNITS OF PLANE ANGLE -# -#rad P radian # `rad' means `grey' -#circle P 2 pi radian -degree_angle degree_angle -angular_degree degree_angle - -#turn P circle -degree degree_angle -degree_north degree_angle -degree_east degree_angle -degree_true degree_angle -arcdeg degree_angle -angular_minute degree_angle/60 -angular_second degree_angle/3600 - - -degrees_north degree_angle -degreeN degree_angle -degree_N degree_angle -degreesN degree_angle -degrees_N degree_angle - -degrees_east degree_angle -degreeE degree_angle -degree_E degree_angle -degreesE degree_angle -degrees_E degree_angle - -degrees_west degree_angle -degreeW degree_angle -degree_W degree_angle -degreesW degree_angle -degrees_W degree_angle - -degrees_true degree_angle -degreeT degree_angle -degree_T degree_angle -degreesT degree_angle -degrees_T degree_angle - -# ----------------------------------------- -# PRESSURE OR STRESS -# -bar bar -mB bar/1000 -standard_atmosphere atm -technical_atmosphere kg*cm^-2 -Pa Pa -inch_Hg inHg -inch_hg inHg -inHg inHg -in_Hg inHg -in_hg inHg -millimeter_Hg mmHg -mmHg mmHg -mm_Hg mmHg -mm_hg mmHg -torr mmHg -#at S technical_atmosphere -atmosphere atm -atm atm - -# ----------------------------------------- -# VELOCITY (INCLUDES SPEED) -# -#c S 2.997925e+8 meter/sec -knot kn - -knot_international kn -international_knot kn -kt kn -m/s m*s^-1 -mph mph -kph m*1000*h^-1 -mps m*s^-1 -iph in*s^-1 -mmph m*1000*s^-1 - -# ----------------------------------------- -# SOLAR RADIATION -W/meter2 W*m^-2 diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadhydro/.classpath b/edexOsgi/com.raytheon.edex.plugin.ldadhydro/.classpath deleted file mode 100644 index 1fa3e6803d..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadhydro/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadhydro/.project b/edexOsgi/com.raytheon.edex.plugin.ldadhydro/.project deleted file mode 100644 index 0517c5f161..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadhydro/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - com.raytheon.edex.plugin.ldadhydro - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadhydro/META-INF/MANIFEST.MF b/edexOsgi/com.raytheon.edex.plugin.ldadhydro/META-INF/MANIFEST.MF deleted file mode 100644 index d5c4b12283..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadhydro/META-INF/MANIFEST.MF +++ /dev/null @@ -1,19 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: Ldadhydro Plug-in -Bundle-SymbolicName: com.raytheon.edex.plugin.ldadhydro -Bundle-Version: 1.12.1174.qualifier -Bundle-Vendor: RAYTHEON -Require-Bundle: com.raytheon.edex.common;bundle-version="1.11.13", - com.raytheon.uf.edex.pointdata, - javax.persistence;bundle-version="1.0.0", - javax.measure;bundle-version="1.0.0", - org.geotools;bundle-version="2.5.2", - com.raytheon.uf.common.localization;bundle-version="1.11.13", - com.raytheon.edex.plugin.ldad;bundle-version="1.0.0" -Bundle-RequiredExecutionEnvironment: JavaSE-1.6 -Export-Package: com.raytheon.edex.plugin.ldadhydro.dao -Import-Package: com.raytheon.uf.common.dataplugin.ldadhydro, - com.raytheon.uf.common.status, - com.raytheon.uf.edex.pointdata, - org.apache.commons.logging diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadhydro/build.properties b/edexOsgi/com.raytheon.edex.plugin.ldadhydro/build.properties deleted file mode 100644 index 5791d48d5f..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadhydro/build.properties +++ /dev/null @@ -1,5 +0,0 @@ -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - .,\ - res/ diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadhydro/com.raytheon.edex.plugin.ldadhydro.ecl b/edexOsgi/com.raytheon.edex.plugin.ldadhydro/com.raytheon.edex.plugin.ldadhydro.ecl deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadhydro/res/pointdata/ldadhydro.xml b/edexOsgi/com.raytheon.edex.plugin.ldadhydro/res/pointdata/ldadhydro.xml deleted file mode 100644 index 27fd4b5eb4..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadhydro/res/pointdata/ldadhydro.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadhydro/res/pointdata/ldadhydrodb.xml b/edexOsgi/com.raytheon.edex.plugin.ldadhydro/res/pointdata/ldadhydrodb.xml deleted file mode 100644 index f2f46ca795..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadhydro/res/pointdata/ldadhydrodb.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadhydro/res/spring/ldadhydro-common.xml b/edexOsgi/com.raytheon.edex.plugin.ldadhydro/res/spring/ldadhydro-common.xml deleted file mode 100644 index df81cd861b..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadhydro/res/spring/ldadhydro-common.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadhydro/res/spring/ldadhydro-ingest.xml b/edexOsgi/com.raytheon.edex.plugin.ldadhydro/res/spring/ldadhydro-ingest.xml deleted file mode 100644 index 9bc6e25997..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadhydro/res/spring/ldadhydro-ingest.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - java.lang.Throwable - - - - - - diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadhydro/src/com/raytheon/edex/plugin/ldadhydro/dao/HydroDecoder.java b/edexOsgi/com.raytheon.edex.plugin.ldadhydro/src/com/raytheon/edex/plugin/ldadhydro/dao/HydroDecoder.java deleted file mode 100644 index 6dd7550718..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadhydro/src/com/raytheon/edex/plugin/ldadhydro/dao/HydroDecoder.java +++ /dev/null @@ -1,337 +0,0 @@ -/** - * This software was developed and / or modified by Raytheon Company, - * pursuant to Contract DG133W-05-CQ-1067 with the US Government. - * - * U.S. EXPORT CONTROLLED TECHNICAL DATA - * This software product contains export-restricted data whose - * export/transfer/disclosure is restricted by U.S. law. Dissemination - * to non-U.S. persons whether in the United States or abroad requires - * an export license or other authorization. - * - * Contractor Name: Raytheon Company - * Contractor Address: 6825 Pine Street, Suite 340 - * Mail Stop B8 - * Omaha, NE 68106 - * 402.291.0100 - * - * See the AWIPS II Master Rights File ("Master Rights File.pdf") for - * further licensing information. - **/ - -package com.raytheon.edex.plugin.ldadhydro.dao; - -import java.io.File; -import java.io.FileInputStream; -import java.io.FileNotFoundException; -import java.io.StringReader; -import java.lang.reflect.Field; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.lang.reflect.Modifier; -import java.text.ParseException; -import java.text.SimpleDateFormat; -import java.util.ArrayList; -import java.util.Calendar; -import java.util.Date; -import java.util.List; -import java.util.Properties; -import java.util.TimeZone; - -import javax.measure.unit.Unit; -import javax.measure.unit.UnitFormat; -import javax.xml.bind.JAXBContext; -import javax.xml.bind.JAXBException; -import javax.xml.bind.Unmarshaller; - -import com.raytheon.edex.exception.DecoderException; -import com.raytheon.edex.plugin.AbstractDecoder; -import com.raytheon.edex.plugin.IBinaryDecoder; -import com.raytheon.edex.plugin.ldad.common.DecodedData; -import com.raytheon.edex.plugin.ldad.common.LdadField; -import com.raytheon.uf.common.dataplugin.PluginDataObject; -import com.raytheon.uf.common.dataplugin.ldadhydro.HydroLdadRecord; -import com.raytheon.uf.common.localization.IPathManager; -import com.raytheon.uf.common.localization.LocalizationContext; -import com.raytheon.uf.common.localization.PathManagerFactory; -import com.raytheon.uf.common.pointdata.spatial.SurfaceObsLocation; -import com.raytheon.uf.common.time.DataTime; - -/** - * Decoder implementation for ldadhydro plugin. - * - *
- * 
- * SOFTWARE HISTORY
- *                     
- * Date         Ticket#     Engineer    Description
- * ------------ ----------  ----------- --------------------------
- * Sep 30, 2009             vkorolev    Initial creation
- * Aug 30, 2013 2298        rjpeter     Make getPluginName abstract
- * 10/16/13     DR 16685    M.Porricelli Add error checking for date
- *                                       format
- * Jul 23, 2014 3410       bclement    location changed to floats
- * 
- * - * @author vkorolev - * @version 1 - */ - -public class HydroDecoder extends AbstractDecoder implements IBinaryDecoder { - - private static final String BAD_PROPERTY_FMT = "NumberFormatException setting property %s.%s(%s %s)"; - - private String traceId = null; - - public SimpleDateFormat sdf = new SimpleDateFormat("yy/MM/dd HH:mm:ss"); - - public File confile; - - public Properties configFile = new Properties(); - - public void setTraceId(String id) { - traceId = id; - } - - /* - * (non-Javadoc) - * - * @see com.raytheon.edex.plugin.IBinaryDecoder#decode(byte[]) - */ - @Override - public PluginDataObject[] decode(byte[] data) throws DecoderException { - List retVal = new ArrayList(); - if (data != null) { - IPathManager pathMgr = PathManagerFactory.getPathManager(); - LocalizationContext commonStaticBase = pathMgr.getContext( - LocalizationContext.LocalizationType.EDEX_STATIC, - LocalizationContext.LocalizationLevel.BASE); - try { - confile = pathMgr.getFile(commonStaticBase, - "ldad/ldadUnitsMap.txt"); - FileInputStream fis = new FileInputStream(confile); - try { - configFile.load(fis); - } finally { - fis.close(); - } - } catch (FileNotFoundException e) { - logger.error(traceId - + "Configuration Units Map file (ldadUnitsMap.txt) not found."); - } catch (Exception e) { - logger.error(traceId + e); - } - try { - JAXBContext context = JAXBContext - .newInstance(DecodedData.class); - Unmarshaller u = context.createUnmarshaller(); - StringReader reader = new StringReader(new String(data)); - DecodedData dd = (DecodedData) u.unmarshal(reader); - // Storage type separator - if (dd.storageType.compareTo("hydro") == 0) { - // Header - logger.info("\n***********" + "fileName= " + dd.fileName - + "**********\n" + "storageType= " + dd.storageType - + "\n" + "type= " + dd.type + "\n" + "root= " - + dd.root + "\n" + "source= " + dd.source + "\n" - + "provider= " + dd.provider + "\n" - + "missingValue= " + dd.missingValue + "\n" - + "reportTime= " + dd.reportTime + "\n" - + "--------------------------------------------" - + "\n"); - String missval = dd.missingValue; - // Number of records - int recnum = dd.fields.get(0).values.size(); - if (recnum == 0) { - logger.info(traceId + " - No data in the file."); - retVal.clear(); - return retVal.toArray(new PluginDataObject[0]); - } - // Loop through records - badRecordStartAgain: for (int i = 0; i < recnum; i++) { - HydroLdadRecord record = new HydroLdadRecord(); - SurfaceObsLocation location = new SurfaceObsLocation(); - record.setDataProvider(dd.provider); - record.setStationType(dd.type); - record.setReportTime(dd.reportTime); - // Loop through fields - for (LdadField v : dd.fields) { - String nn = v.variableName; - String unit = v.units; - String vv = v.values.get(i); - // value filtering - if (vv.equals(missval)) { - if (nn.equals("observationTime")) { - logger.error(traceId - + " - No Observation time was found."); - continue badRecordStartAgain; - } else { - continue; - } - } - if (nn.equals("_lat")) { - float val = Float.parseFloat(vv); - location.setLatitude(val); - continue; - } - if (nn.equals("_lon")) { - float val = Float.parseFloat(vv); - location.setLongitude(val); - continue; - } - if (nn.equals("_elev")) { - // elevation in meter - integer in location - double dv = Double.parseDouble(vv); - int val = (int) dv; - location.setElevation(val); - continue; - } - if (nn.equals("providerId")) { - location.setStationId(vv); - continue; - } - if (nn.equals("_tz")) { - sdf.setTimeZone(TimeZone.getTimeZone(vv)); - continue; - } - - // Construct MesonetLdadRecord - this.setProperty(nn, record, vv, unit); - } - // DataTime = Observation time - Calendar ot = record.getObservationTime(); - if (ot != null){ - DataTime dt = new DataTime(ot); - record.setDataTime(dt); - record.setLocation(location); - retVal.add(record); - } - // logger.info("-------------------------------------------------------"); - } - - } else { - retVal.clear(); - } - - } catch (JAXBException e) { - logger.error(traceId + " - Unable to unmarshall xml:", e); - } catch (SecurityException e) { - logger.error(traceId + " - SecurityException:" + e); - } catch (IllegalArgumentException e) { - logger.error(traceId + " - IllegalArgumentException:" + e); - } - } - return retVal.toArray(new PluginDataObject[retVal.size()]); - } - - // Set values using Java Reflect API - /** - * @param name - * @param obj - * @param value - * @return - * @throws SecurityException - * @throws NoSuchMethodException - * @throws IllegalArgumentException - * @throws IllegalAccessException - * @throws InvocationTargetException - * @throws ParseException - * @throws ClassNotFoundException - * @throws Throwable - */ - - public void setProperty(String name, Object obj, String value, String vunit) { - - String prop = Character.toUpperCase(name.charAt(0)) + name.substring(1); - String mname = "set" + prop; - Object val = null; - try { - Class cls = obj.getClass(); - Field fld = cls.getDeclaredField(name); - Class clazz = fld.getType(); - // Type filter - if (clazz == String.class) { - val = value.trim(); - } else if (clazz == Calendar.class) { - Date ot = null; - try { - ot = sdf.parse(value); - Calendar cal = Calendar.getInstance(); - cal.setTimeZone(TimeZone.getTimeZone("GMT")); - cal.setTime(ot); - val = cal; - } catch(Exception e) { - logger.error("Could not parse date field [" + name + ":" + value + "]"); - return; - } - // only numbers - } else { - Double tval = null; - try { - tval = Double.parseDouble(value); - } catch (NumberFormatException nfe) { - String msg = String.format(BAD_PROPERTY_FMT, - cls.getSimpleName(), fld.getName(), - clazz.getSimpleName(), value); - logger.error(msg); - return; - } - if (configFile.containsKey(vunit)) { - Unit inUnit = (Unit) UnitFormat.getUCUMInstance() - .parseObject(configFile.getProperty(vunit)); - Unit outUnit = (Unit) UnitFormat.getUCUMInstance() - .parseObject(configFile.getProperty(name)); - tval = inUnit.getConverterTo(outUnit).convert( - (tval).doubleValue()); - } - if (clazz == Integer.class) { - val = tval.intValue(); - } else if (clazz == Short.class) { - val = tval.shortValue(); - } else if (clazz == Float.class) { - val = tval.floatValue(); - } else { - val = tval; - } - } - Class types = clazz; - Method method = obj.getClass().getMethod(mname, types); - method.invoke(obj, val); - - } catch (RuntimeException e) { - logger.error(traceId + " - RuntimeException:", e); - } catch (NoSuchMethodException e) { - logger.error(traceId + " - NoSuchMethodException:", e); - } catch (NoSuchFieldException e) { - // logger.error(traceId + " - NoSuchFieldException = "+ - // e.getMessage()); - } catch (IllegalAccessException e) { - logger.error(traceId + " - IllegalAccessException:", e); - } catch (InvocationTargetException e) { - logger.error(traceId + " - InvocationTargetException:", e); - } catch (ParseException e) { - logger.error(traceId + " - ParseException:", e); - } - return; - } - - // List of Fields in record - public static void main(String args[]) { - HydroLdadRecord record = new HydroLdadRecord(); - try { - Class cls = record.getClass(); - - Field fieldlist[] = cls.getDeclaredFields(); - for (Field fld : fieldlist) { - System.out.println("name = " + fld.getName()); - // System.out.println("decl class = " + - // fld.getDeclaringClass()); - System.out.println("type = " + fld.getType()); - int mod = fld.getModifiers(); - System.out.println("modifiers = " + Modifier.toString(mod)); - System.out.println("-----"); - } - } catch (Throwable e) { - System.err.println(e); - } - } -} diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadhydro/src/com/raytheon/edex/plugin/ldadhydro/dao/LdadHydroDao.java b/edexOsgi/com.raytheon.edex.plugin.ldadhydro/src/com/raytheon/edex/plugin/ldadhydro/dao/LdadHydroDao.java deleted file mode 100644 index 93bba23988..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadhydro/src/com/raytheon/edex/plugin/ldadhydro/dao/LdadHydroDao.java +++ /dev/null @@ -1,174 +0,0 @@ -/** - * This software was developed and / or modified by Raytheon Company, - * pursuant to Contract DG133W-05-CQ-1067 with the US Government. - * - * U.S. EXPORT CONTROLLED TECHNICAL DATA - * This software product contains export-restricted data whose - * export/transfer/disclosure is restricted by U.S. law. Dissemination - * to non-U.S. persons whether in the United States or abroad requires - * an export license or other authorization. - * - * Contractor Name: Raytheon Company - * Contractor Address: 6825 Pine Street, Suite 340 - * Mail Stop B8 - * Omaha, NE 68106 - * 402.291.0100 - * - * See the AWIPS II Master Rights File ("Master Rights File.pdf") for - * further licensing information. - **/ -package com.raytheon.edex.plugin.ldadhydro.dao; - -import java.sql.SQLException; -import java.util.ArrayList; -import java.util.List; - -import com.raytheon.uf.common.dataplugin.PluginException; -import com.raytheon.uf.common.dataplugin.ldadhydro.HydroLdadRecord; -import com.raytheon.uf.common.dataplugin.persist.IPersistable; -import com.raytheon.uf.common.dataquery.db.QueryParam; -import com.raytheon.uf.common.datastorage.IDataStore; -import com.raytheon.uf.common.pointdata.PointDataDescription; -import com.raytheon.uf.common.pointdata.spatial.ObStation; -import com.raytheon.uf.edex.database.DataAccessLayerException; -import com.raytheon.uf.edex.database.query.DatabaseQuery; -import com.raytheon.uf.edex.pointdata.PointDataPluginDao; -import com.raytheon.uf.edex.pointdata.spatial.ObStationDao; - -/** - * Data access object for accessing LDAD HYDRO records in the database. - * - *
- * 
- * SOFTWARE HISTORY
- * 
- * Date         Ticket#     Engineer    Description
- * ------------ ----------  ----------- --------------------------
- * 9/30/09                   vkorolev    Initial creation
- * Feb 27, 2013 1638        mschenke    Moved ObStationDao to edex pointdata plugin
- * 
- * 
- * - * @author vkorolev - * @version 1 - */ - -public class LdadHydroDao extends PointDataPluginDao { - - private PointDataDescription pdd; - - public LdadHydroDao(String pluginName) throws PluginException { - super(pluginName); - } - - public LdadHydroDao() throws PluginException, SQLException { - this("ldadhydro"); - } - - protected IDataStore populateDataStore(IDataStore dataStore, - IPersistable obj) throws Exception { - // TODO Auto-generated method stub - return null; - } - - /** The station dao */ - private ObStationDao obDao = new ObStationDao(); - - public List queryBySpatialBox(double upperLeftLat, double upperLeftLon, - double lowerRightLat, double lowerRightLon) - throws DataAccessLayerException { - - List stationList = obDao.queryBySpatialBox(upperLeftLat, - upperLeftLon, lowerRightLat, lowerRightLon); - - List stationNames = new ArrayList(); - for (ObStation station : stationList) { - stationNames.add((String) station.getIdentifier()); - } - stationList.clear(); - - DatabaseQuery query = new DatabaseQuery(HydroLdadRecord.class); - query.addQueryParam("location.stationId", stationNames, - QueryParam.QueryOperand.IN); - return queryByCriteria(query); - } - - public List queryByState(String state, Integer count) - throws DataAccessLayerException { - - List results = obDao.queryByState(state); - - ArrayList icaos = new ArrayList(); - for (ObStation station : results) { - icaos.add((String) station.getIdentifier()); - } - - DatabaseQuery query = new DatabaseQuery(HydroLdadRecord.class, count); - query.addQueryParam("location.stationId", icaos, - QueryParam.QueryOperand.IN); - return queryByCriteria(query); - } - - /** - * Retrieves an ldadMesonet report using the datauri . - * - * @param dataURI - * The dataURI to match against. - * @return The report record if it exists. - */ - public HydroLdadRecord queryByDataURI(String dataURI) { - HydroLdadRecord report = null; - List obs = null; - try { - obs = queryBySingleCriteria("dataURI", dataURI); - } catch (DataAccessLayerException e) { - e.printStackTrace(); - } - if ((obs != null) && (obs.size() > 0)) { - report = (HydroLdadRecord) obs.get(0); - } - return report; - } - - /** - * Queries for to determine if a given data uri exists on the redbook table. - * - * @param dataUri - * The DataURI to find. - * @return An array of objects. If not null, there should only be a single - * element. - */ - public Object[] queryDataUriColumn(final String dataUri) { - - String sql = "select datauri from awips.ldadmesonet where datauri='" - + dataUri + "';"; - - Object[] results = executeSQLQuery(sql); - - return results; - } - - public ObStationDao getObDao() { - return obDao; - } - - public void setObDao(ObStationDao obDao) { - this.obDao = obDao; - } - - @Override - public String[] getKeysRequiredForFileName() { - return new String[] { "dataTime.refTime" }; - } - - @Override - public String getPointDataFileName(HydroLdadRecord p) { - return "ldadhydro.h5"; - } - - @Override - public HydroLdadRecord newObject() { - return new HydroLdadRecord(); - } - -} diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadhydro/src/com/raytheon/edex/plugin/ldadhydro/dao/LdadhydroPointDataTransform.java b/edexOsgi/com.raytheon.edex.plugin.ldadhydro/src/com/raytheon/edex/plugin/ldadhydro/dao/LdadhydroPointDataTransform.java deleted file mode 100644 index 269c48d425..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadhydro/src/com/raytheon/edex/plugin/ldadhydro/dao/LdadhydroPointDataTransform.java +++ /dev/null @@ -1,205 +0,0 @@ -/** - * This software was developed and / or modified by Raytheon Company, - * pursuant to Contract DG133W-05-CQ-1067 with the US Government. - * - * U.S. EXPORT CONTROLLED TECHNICAL DATA - * This software product contains export-restricted data whose - * export/transfer/disclosure is restricted by U.S. law. Dissemination - * to non-U.S. persons whether in the United States or abroad requires - * an export license or other authorization. - * - * Contractor Name: Raytheon Company - * Contractor Address: 6825 Pine Street, Suite 340 - * Mail Stop B8 - * Omaha, NE 68106 - * 402.291.0100 - * - * See the AWIPS II Master Rights File ("Master Rights File.pdf") for - * further licensing information. - **/ -package com.raytheon.edex.plugin.ldadhydro.dao; - -import java.io.File; -import java.util.HashMap; -import java.util.Map; - -import javax.xml.bind.JAXBException; - -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; - -import com.raytheon.uf.common.dataplugin.PluginDataObject; -import com.raytheon.uf.common.dataplugin.PluginException; -import com.raytheon.uf.common.dataplugin.ldadhydro.HydroLdadRecord; -import com.raytheon.uf.common.pointdata.PointDataContainer; -import com.raytheon.uf.common.pointdata.PointDataDescription; -import com.raytheon.uf.common.pointdata.PointDataView; - -/** - * - * Transform LDAD HYDRO records into Point Data Model. - * - *
- * 
- * SOFTWARE HISTORY
- * 
- * Date         Ticket#    Engineer    Description
- * ------------ ---------- ----------- --------------------------
- * Nov 19, 2010            bsteffen     Initial creation
- * 
- * 
- * - * @author bsteffen - * @version 1.0 - */ -public class LdadhydroPointDataTransform { - - private Log logger = LogFactory.getLog(getClass()); - - private LdadHydroDao dao; - - private PointDataDescription description; - - public LdadhydroPointDataTransform() throws JAXBException, PluginException { - this.dao = new LdadHydroDao("ldadhydro"); - this.description = dao.getPointDataDescription(null); - } - - public PluginDataObject[] toPointData(PluginDataObject[] pdo) { - - if (pdo.length > 0) { - Map pointMap = new HashMap(); - - for (PluginDataObject p : pdo) { - if (!(p instanceof HydroLdadRecord)) - continue; - - File f = this.dao.getFullFilePath(p); - - PointDataContainer pdc = pointMap.get(f); - if (pdc == null) { - pdc = PointDataContainer.build(this.description); - pointMap.put(f, pdc); - } - - HydroLdadRecord mesor = (HydroLdadRecord) p; - PointDataView pdv = buildView(pdc, mesor); - mesor.setPointDataView(pdv); - } - } - return pdo; - } - - private PointDataView buildView(PointDataContainer container, - HydroLdadRecord record) { - PointDataView pdv = container.append(); - if (record.getObservationTime() != null) { - pdv.setLong("timeObs", record.getObservationTime() - .getTimeInMillis()); - } - if (record.getLocation() != null) { - pdv.setFloat("latitude", (float) record.getLatitude()); - pdv.setFloat("longitude", (float) record.getLongitude()); - pdv.setFloat("elevation", record.getElevation()); - } - if (record.getReportTime() != null) { - pdv.setFloat("reportTime", record.getReportTime().floatValue()); - } - if (record.getReceivedTime() != null) { - pdv.setFloat("receivedTime", record.getReceivedTime().floatValue()); - } - if (record.getStationId() != null) { - pdv.setString("stationId", record.getStationId()); - } - pdv.setLong("numericWMOid", record.getNumericWMOid()); - if (record.getBelowSurface() != null) { - pdv.setFloat("belowSurfac", record.getBelowSurface()); - } - if (record.getRiverStage() != null) { - pdv.setFloat("riverStage", record.getRiverStage()); - } - if (record.getPoolElevation() != null) { - pdv.setFloat("poolElevation", record.getPoolElevation()); - } - if (record.getTailwaterStage() != null) { - pdv.setFloat("tailwaterStage", record.getTailwaterStage()); - } - if (record.getRiverVelocity() != null) { - pdv.setFloat("riverVelocity", record.getRiverVelocity()); - } - if (record.getRiverInflow() != null) { - pdv.setFloat("riverInflow", record.getRiverInflow()); - } - if (record.getRiverFlow() != null) { - pdv.setFloat("riverFlow", record.getRiverFlow()); - } - if (record.getComputedOutflow() != null) { - pdv.setFloat("computedOutflow", record.getComputedOutflow()); - } - if (record.getWaterTemperature() != null) { - pdv.setFloat("waterTemperature", record.getWaterTemperature()); - } - if (record.getVoltageBattery() != null) { - pdv.setFloat("voltageBattery", record.getVoltageBattery()); - } - if (record.getWaterConductance() != null) { - pdv.setFloat("waterConductance", record.getWaterConductance()); - } - if (record.getWaterOxygen() != null) { - pdv.setFloat("waterOxygen", record.getWaterConductance()); - } - if (record.getWaterPH() != null) { - pdv.setFloat("waterPH", record.getWaterPH()); - } - if (record.getRelHumidity() != null) { - pdv.setFloat("relHumidity", record.getRelHumidity()); - } - if (record.getRiverReportChangeTime() != null) { - pdv.setFloat("riverReportChangeTime", record - .getRiverReportChangeTime().floatValue()); - } - if (record.getTemperature() != null) { - pdv.setFloat("temperature", record.getTemperature()); - } - if (record.getDewpoint() != null) { - pdv.setFloat("dewpoint", record.getDewpoint()); - } - if (record.getWindDir() != null) { - pdv.setFloat("windDir", record.getWindDir()); - } - if (record.getWindSpeed() != null) { - pdv.setFloat("windSpeed", record.getWindSpeed()); - } - if (record.getWindSpeedPeak() != null) { - pdv.setFloat("windSpeedPeak", record.getWindSpeedPeak()); - } - if (record.getWindGust() != null) { - pdv.setFloat("windGust", record.getWindGust().floatValue()); - } - if (record.getPrecipAccum() != null) { - pdv.setFloat("precipAccum", record.getPrecipAccum()); - } - if (record.getPrecip5min() != null) { - pdv.setFloat("precip5min", record.getPrecip5min()); - } - if (record.getPrecip1hr() != null) { - pdv.setFloat("precip1hr", record.getPrecip1hr()); - } - if (record.getPrecip3hr() != null) { - pdv.setFloat("precip3hr", record.getPrecip3hr()); - } - if (record.getPrecip6hr() != null) { - pdv.setFloat("precip6hr", record.getPrecip6hr()); - } - if (record.getPrecip12hr() != null) { - pdv.setFloat("precip12hr", record.getPrecip12hr()); - } - if (record.getPrecip18hr() != null) { - pdv.setFloat("precip18hr", record.getPrecip18hr()); - } - if (record.getPrecip24hr() != null) { - pdv.setFloat("precip24hr", record.getPrecip24hr()); - } - return pdv; - } -} diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadhydro/utility/common_static/base/purge/ldadhydroPurgeRules.xml b/edexOsgi/com.raytheon.edex.plugin.ldadhydro/utility/common_static/base/purge/ldadhydroPurgeRules.xml deleted file mode 100644 index 1182b36c71..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadhydro/utility/common_static/base/purge/ldadhydroPurgeRules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - 24 - =00-01:00:00 - 00-01:00:00 - - diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadhydro/utility/edex_static/base/distribution/ldadhydro.xml b/edexOsgi/com.raytheon.edex.plugin.ldadhydro/utility/edex_static/base/distribution/ldadhydro.xml deleted file mode 100644 index a74fc3edaf..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadhydro/utility/edex_static/base/distribution/ldadhydro.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - LDAD\.hydro\.* - diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadmanual/.classpath b/edexOsgi/com.raytheon.edex.plugin.ldadmanual/.classpath deleted file mode 100644 index 1fa3e6803d..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadmanual/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadmanual/.project b/edexOsgi/com.raytheon.edex.plugin.ldadmanual/.project deleted file mode 100644 index 9393773e10..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadmanual/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - com.raytheon.edex.plugin.ldadmanual - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadmanual/META-INF/MANIFEST.MF b/edexOsgi/com.raytheon.edex.plugin.ldadmanual/META-INF/MANIFEST.MF deleted file mode 100644 index 13dabcb488..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadmanual/META-INF/MANIFEST.MF +++ /dev/null @@ -1,16 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: Ldadmanual Plug-in -Bundle-SymbolicName: com.raytheon.edex.plugin.ldadmanual -Bundle-Version: 1.12.1174.qualifier -Bundle-Vendor: RAYTHEON -Require-Bundle: com.raytheon.edex.common;bundle-version="1.11.13", - com.raytheon.uf.common.pointdata, - javax.persistence;bundle-version="1.0.0", - javax.measure;bundle-version="1.0.0", - org.geotools;bundle-version="2.5.2", - com.raytheon.uf.common.localization;bundle-version="1.11.13", - com.raytheon.edex.plugin.ldad;bundle-version="1.0.0" -Bundle-RequiredExecutionEnvironment: JavaSE-1.6 -Export-Package: com.raytheon.edex.plugin.ldadmanual.dao -Import-Package: org.apache.commons.logging diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadmanual/META-INF/services/com.raytheon.uf.common.serialization.ISerializableObject b/edexOsgi/com.raytheon.edex.plugin.ldadmanual/META-INF/services/com.raytheon.uf.common.serialization.ISerializableObject deleted file mode 100644 index fe908bd278..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadmanual/META-INF/services/com.raytheon.uf.common.serialization.ISerializableObject +++ /dev/null @@ -1 +0,0 @@ -com.raytheon.edex.plugin.ldadmanual.dao.ManualLdadRecord diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadmanual/build.properties b/edexOsgi/com.raytheon.edex.plugin.ldadmanual/build.properties deleted file mode 100644 index 5791d48d5f..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadmanual/build.properties +++ /dev/null @@ -1,5 +0,0 @@ -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - .,\ - res/ diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadmanual/com.raytheon.edex.plugin.ldadmanual.ecl b/edexOsgi/com.raytheon.edex.plugin.ldadmanual/com.raytheon.edex.plugin.ldadmanual.ecl deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadmanual/res/spring/ldadmanual-common.xml b/edexOsgi/com.raytheon.edex.plugin.ldadmanual/res/spring/ldadmanual-common.xml deleted file mode 100644 index 5e9bde03fa..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadmanual/res/spring/ldadmanual-common.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadmanual/res/spring/ldadmanual-ingest.xml b/edexOsgi/com.raytheon.edex.plugin.ldadmanual/res/spring/ldadmanual-ingest.xml deleted file mode 100644 index 73ed78c047..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadmanual/res/spring/ldadmanual-ingest.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - java.lang.Throwable - - - - - - diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadmanual/src/com/raytheon/edex/plugin/ldadmanual/dao/LdadManualDao.java b/edexOsgi/com.raytheon.edex.plugin.ldadmanual/src/com/raytheon/edex/plugin/ldadmanual/dao/LdadManualDao.java deleted file mode 100644 index 8385101c03..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadmanual/src/com/raytheon/edex/plugin/ldadmanual/dao/LdadManualDao.java +++ /dev/null @@ -1,76 +0,0 @@ -/** - * This software was developed and / or modified by Raytheon Company, - * pursuant to Contract DG133W-05-CQ-1067 with the US Government. - * - * U.S. EXPORT CONTROLLED TECHNICAL DATA - * This software product contains export-restricted data whose - * export/transfer/disclosure is restricted by U.S. law. Dissemination - * to non-U.S. persons whether in the United States or abroad requires - * an export license or other authorization. - * - * Contractor Name: Raytheon Company - * Contractor Address: 6825 Pine Street, Suite 340 - * Mail Stop B8 - * Omaha, NE 68106 - * 402.291.0100 - * - * See the AWIPS II Master Rights File ("Master Rights File.pdf") for - * further licensing information. - **/ -package com.raytheon.edex.plugin.ldadmanual.dao; - -import java.util.List; - -import com.raytheon.edex.db.dao.DefaultPluginDao; -import com.raytheon.uf.common.dataplugin.PluginException; -import com.raytheon.uf.edex.database.DataAccessLayerException; - -/** - * Data access object for accessing LDAD MANUAL records in the database. - * - *
- * 
- * SOFTWARE HISTORY
- * 
- * Date         Ticket#     Engineer    Description
- * ------------ ----------  ----------- --------------------------
- * 9/30/09                   vkorolev    Initial creation
- * 
- * 
- * - * @author vkorolev - * @version 1 - */ - -public class LdadManualDao extends DefaultPluginDao { - - /** - * Creates a new Dao - * - * @throws PluginException - */ - public LdadManualDao(String pluginName) throws PluginException { - super(pluginName); - } - - /** - * Retrieves an ldadMesonet report using the datauri . - * - * @param dataURI - * The dataURI to match against. - * @return The report record if it exists. - */ - public ManualLdadRecord queryByDataURI(String dataURI) { - ManualLdadRecord report = null; - List obs = null; - try { - obs = queryBySingleCriteria("dataURI", dataURI); - } catch (DataAccessLayerException e) { - e.printStackTrace(); - } - if ((obs != null) && (obs.size() > 0)) { - report = (ManualLdadRecord) obs.get(0); - } - return report; - } -} diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadmanual/src/com/raytheon/edex/plugin/ldadmanual/dao/ManualDecoder.java b/edexOsgi/com.raytheon.edex.plugin.ldadmanual/src/com/raytheon/edex/plugin/ldadmanual/dao/ManualDecoder.java deleted file mode 100644 index 7edcba9873..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadmanual/src/com/raytheon/edex/plugin/ldadmanual/dao/ManualDecoder.java +++ /dev/null @@ -1,292 +0,0 @@ -/** - * This software was developed and / or modified by Raytheon Company, - * pursuant to Contract DG133W-05-CQ-1067 with the US Government. - * - * U.S. EXPORT CONTROLLED TECHNICAL DATA - * This software product contains export-restricted data whose - * export/transfer/disclosure is restricted by U.S. law. Dissemination - * to non-U.S. persons whether in the United States or abroad requires - * an export license or other authorization. - * - * Contractor Name: Raytheon Company - * Contractor Address: 6825 Pine Street, Suite 340 - * Mail Stop B8 - * Omaha, NE 68106 - * 402.291.0100 - * - * See the AWIPS II Master Rights File ("Master Rights File.pdf") for - * further licensing information. - **/ - -package com.raytheon.edex.plugin.ldadmanual.dao; - -import java.io.File; -import java.io.FileInputStream; -import java.io.FileNotFoundException; -import java.io.StringReader; -import java.lang.reflect.Field; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.text.ParseException; -import java.text.SimpleDateFormat; -import java.util.ArrayList; -import java.util.Calendar; -import java.util.Date; -import java.util.List; -import java.util.Properties; -import java.util.TimeZone; - -import javax.measure.unit.Unit; -import javax.measure.unit.UnitFormat; -import javax.xml.bind.JAXBContext; -import javax.xml.bind.JAXBException; -import javax.xml.bind.Unmarshaller; - -import com.raytheon.edex.exception.DecoderException; -import com.raytheon.edex.plugin.AbstractDecoder; -import com.raytheon.edex.plugin.IBinaryDecoder; -import com.raytheon.edex.plugin.ldad.common.DecodedData; -import com.raytheon.edex.plugin.ldad.common.LdadField; -import com.raytheon.uf.common.dataplugin.PluginDataObject; -import com.raytheon.uf.common.localization.IPathManager; -import com.raytheon.uf.common.localization.LocalizationContext; -import com.raytheon.uf.common.localization.PathManagerFactory; -import com.raytheon.uf.common.pointdata.spatial.SurfaceObsLocation; -import com.raytheon.uf.common.time.DataTime; - -/** - * Decoder implementation for ldadmanual plugin. - * - *
- * 
- * SOFTWARE HISTORY
- *                     
- * Date         Ticket#     Engineer    Description
- * ------------ ----------  ----------- --------------------------
- * Sep 30, 2009             vkorolev    Initial creation
- * Aug 30, 2013 2298        rjpeter     Make getPluginName abstract
- * Jul 23, 2014 3410       bclement    location changed to floats
- * 
- * - * @author vkorolev - * @version 1 - */ - -public class ManualDecoder extends AbstractDecoder implements IBinaryDecoder { - private String traceId = null; - - public SimpleDateFormat sdf = new SimpleDateFormat("yy/MM/dd HH:mm:ss"); - - public File confile; - - public Properties configFile = new Properties(); - - public void setTraceId(String id) { - traceId = id; - } - - /* - * (non-Javadoc) - * - * @see com.raytheon.edex.plugin.IBinaryDecoder#decode(byte[]) - */ - @Override - public PluginDataObject[] decode(byte[] data) throws DecoderException { - List retVal = new ArrayList(); - if (data != null) { - IPathManager pathMgr = PathManagerFactory.getPathManager(); - LocalizationContext ctx = pathMgr.getContext( - LocalizationContext.LocalizationType.EDEX_STATIC, - LocalizationContext.LocalizationLevel.BASE); - try { - confile = pathMgr.getFile(ctx, "ldad/ldadUnitsMap.txt"); - FileInputStream fis = new FileInputStream(confile); - try { - configFile.load(fis); - } finally { - fis.close(); - } - } catch (FileNotFoundException e) { - logger.error(traceId - + "Configuration Units Map file (ldadUnitsMap.txt) not found."); - } catch (Exception e) { - logger.error(traceId + e); - } - try { - JAXBContext context = JAXBContext - .newInstance(DecodedData.class); - Unmarshaller u = context.createUnmarshaller(); - StringReader reader = new StringReader(new String(data)); - DecodedData dd = (DecodedData) u.unmarshal(reader); - - // Storage type separator - if (dd.storageType.compareTo("manual") == 0) { - // Header - logger.info("\n***********" + "fileName= " + dd.fileName - + "**********\n" + "storageType= " + dd.storageType - + "\n" + "type= " + dd.type + "\n" + "root= " - + dd.root + "\n" + "source= " + dd.source + "\n" - + "provider= " + dd.provider + "\n" - + "missingValue= " + dd.missingValue + "\n" - + "reportTime= " + dd.reportTime + "\n" - + "--------------------------------------------" - + "\n"); - String missval = dd.missingValue; - // Number of records - int recnum = dd.fields.get(0).values.size(); - if (recnum == 0) { - logger.info(traceId + " - No data in the file."); - retVal.clear(); - return retVal.toArray(new PluginDataObject[0]); - } - // Loop through records - badRecordStartAgain: for (int i = 0; i < recnum; i++) { - ManualLdadRecord record = new ManualLdadRecord(); - SurfaceObsLocation location = new SurfaceObsLocation(); - record.setProviderId(dd.provider); - // record.setReportType???(dd.type)); - // record.set???(dd.reportTime); - // Loop through fields - for (LdadField v : dd.fields) { - String nn = v.variableName; - String unit = v.units; - String vv = v.values.get(i); - - // value filtering - if (vv.equals(missval)) { - if (nn.equals("observationTime")) { - logger.error(traceId - + " - No Observation time was found."); - continue badRecordStartAgain; - } else { - continue; - } - } - if (nn.equals("_lat")) { - float val = Float.parseFloat(vv); - location.setLatitude(val); - continue; - } - if (nn.equals("_lon")) { - float val = Float.parseFloat(vv); - location.setLongitude(val); - continue; - } - if (nn.equals("_elev")) { - // elevation in meter - integer in location - double dv = Double.parseDouble(vv); - int val = (int) dv; - location.setElevation(val); - continue; - } - if (nn.equals("providerId")) { - location.setStationId(vv); - continue; - } - if (nn.equals("_tz")) { - sdf.setTimeZone(TimeZone.getTimeZone(vv)); - continue; - } - - // Construct MesonetLdadRecord - this.setProperty(nn, record, vv, unit); - } - // DataTime = Observation time - Calendar ot = record.getObservationTime(); - DataTime dt = new DataTime(ot); - record.setDataTime(dt); - record.setLocation(location); - retVal.add(record); - // logger.info("-------------------------------------------------------"); - } - - } else { - retVal.clear(); - } - - } catch (JAXBException e) { - logger.error(traceId + " - Unable to unmarshall xml:", e); - } catch (SecurityException e) { - logger.error(traceId + " - SecurityException:" + e); - } catch (IllegalArgumentException e) { - logger.error(traceId + " - IllegalArgumentException:" + e); - } - } - return retVal.toArray(new PluginDataObject[retVal.size()]); - } - - // Set values using Java Reflect API - /** - * @param name - * @param obj - * @param value - * @return - * @throws SecurityException - * @throws NoSuchMethodException - * @throws IllegalArgumentException - * @throws IllegalAccessException - * @throws InvocationTargetException - * @throws ParseException - * @throws ClassNotFoundException - * @throws Throwable - */ - public void setProperty(String name, Object obj, String value, String vunit) { - - String prop = Character.toUpperCase(name.charAt(0)) + name.substring(1); - String mname = "set" + prop; - Object val = null; - try { - @SuppressWarnings("rawtypes") - Class cls = obj.getClass(); - Field fld = cls.getDeclaredField(name); - Class clazz = fld.getType(); - // Type filter - if (clazz == String.class) { - val = value.trim(); - } else if (clazz == Calendar.class) { - Date ot = sdf.parse(value); - Calendar cal = Calendar.getInstance(); - cal.setTime(ot); - val = cal; - // only numbers - } else { - Double tval = Double.parseDouble(value); - if (configFile.containsKey(vunit)) { - Unit inUnit = (Unit) UnitFormat.getUCUMInstance() - .parseObject(configFile.getProperty(vunit)); - Unit outUnit = (Unit) UnitFormat.getUCUMInstance() - .parseObject(configFile.getProperty(name)); - tval = inUnit.getConverterTo(outUnit).convert( - (tval).doubleValue()); - } - if (clazz == Integer.class) { - val = tval.intValue(); - } else if (clazz == Short.class) { - val = tval.shortValue(); - } else if (clazz == Float.class) { - val = tval.floatValue(); - } else { - val = tval; - } - } - Class types = clazz; - Method method = obj.getClass().getMethod(mname, types); - method.invoke(obj, val); - - } catch (RuntimeException e) { - logger.error(traceId + " - RuntimeException:", e); - } catch (NoSuchMethodException e) { - logger.error(traceId + " - NoSuchMethodException:", e); - } catch (NoSuchFieldException e) { - // logger.error(traceId + " - NoSuchFieldException = "+ - // e.getMessage()); - } catch (IllegalAccessException e) { - logger.error(traceId + " - IllegalAccessException:", e); - } catch (InvocationTargetException e) { - logger.error(traceId + " - InvocationTargetException:", e); - } catch (ParseException e) { - logger.error(traceId + " - ParseException:", e); - } - return; - } -} diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadmanual/src/com/raytheon/edex/plugin/ldadmanual/dao/ManualLdadRecord.java b/edexOsgi/com.raytheon.edex.plugin.ldadmanual/src/com/raytheon/edex/plugin/ldadmanual/dao/ManualLdadRecord.java deleted file mode 100644 index cede204355..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadmanual/src/com/raytheon/edex/plugin/ldadmanual/dao/ManualLdadRecord.java +++ /dev/null @@ -1,2314 +0,0 @@ -/** - * This software was developed and / or modified by Raytheon Company, - * pursuant to Contract DG133W-05-CQ-1067 with the US Government. - * - * U.S. EXPORT CONTROLLED TECHNICAL DATA - * This software product contains export-restricted data whose - * export/transfer/disclosure is restricted by U.S. law. Dissemination - * to non-U.S. persons whether in the United States or abroad requires - * an export license or other authorization. - * - * Contractor Name: Raytheon Company - * Contractor Address: 6825 Pine Street, Suite 340 - * Mail Stop B8 - * Omaha, NE 68106 - * 402.291.0100 - * - * See the AWIPS II Master Rights File ("Master Rights File.pdf") for - * further licensing information. - **/ -package com.raytheon.edex.plugin.ldadmanual.dao; - -import java.util.Calendar; - -import javax.persistence.Access; -import javax.persistence.AccessType; -import javax.persistence.Column; -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; -import javax.persistence.UniqueConstraint; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; - -import org.hibernate.annotations.Index; - -import com.raytheon.uf.common.dataplugin.PluginDataObject; -import com.raytheon.uf.common.dataplugin.annotations.DataURI; -import com.raytheon.uf.common.geospatial.ISpatialEnabled; -import com.raytheon.uf.common.pointdata.spatial.SurfaceObsLocation; -import com.raytheon.uf.common.serialization.annotations.DynamicSerialize; -import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement; -import com.vividsolutions.jts.geom.Geometry; - -/** - * Record implementation for ldadmanual plugin. - * - *
- * 
- * SOFTWARE HISTORY
- *                     
- * Date          Ticket#  Engineer    Description
- * ------------- -------- ----------- --------------------------
- * Sep 30, 2009           vkorolev    Initial creation
- * Apr 04, 2013  1846     bkowal      Added an index on refTime and
- *                                    forecastTime
- * Apr 12, 2013  1857     bgonzale    Added SequenceGenerator annotation.
- * May 07, 2013  1869     bsteffen    Remove dataURI column from
- *                                    PluginDataObject.
- * Aug 30, 2013  2298     rjpeter     Make getPluginName abstract
- * Jun 11, 2014  2061     bsteffen    Remove IDecoderGettable
- * Jul 23, 2014  3410     bclement    location changed to floats
- * 
- * 
- * - * @author vkorolev - * @version 1 - */ - -@Entity -@SequenceGenerator(initialValue = 1, name = PluginDataObject.ID_GEN, sequenceName = "ldad_manualseq") -@Table(name = "ldad_manual", uniqueConstraints = { @UniqueConstraint(columnNames = { "dataURI" }) }) -/* - * Both refTime and forecastTime are included in the refTimeIndex since - * forecastTime is unlikely to be used. - */ -@org.hibernate.annotations.Table(appliesTo = "ldad_manual", indexes = { @Index(name = "ldad_manual_refTimeIndex", columnNames = { - "refTime", "forecastTime" }) }) -@XmlRootElement -@XmlAccessorType(XmlAccessType.NONE) -@DynamicSerialize -public class ManualLdadRecord extends PluginDataObject implements - ISpatialEnabled { - - private static final long serialVersionUID = 1L; - - // Time of the observation. - @DataURI(position = 2) - @Column - @XmlAttribute - @DynamicSerializeElement - private Calendar observationTime; - - // Location - @Embedded - @DataURI(position = 3, embedded = true) - @XmlElement - @DynamicSerializeElement - private SurfaceObsLocation location; // latitude, longitude, elevation, - // stationId - - // Provider of data - @DataURI(position = 1) - @Column - @DynamicSerializeElement - @XmlElement - private String providerId; // * "050183" Data Provider - - // Name of station - @Column - @DynamicSerializeElement - @XmlElement - private String stationName; // * "ALLENSPARK CO-OP" - - // Home WFO Id for the LDAD data - @Column - @DynamicSerializeElement - @XmlElement - private String homeWFO; // * "SJU" - - // Type of report - @Column - @DynamicSerializeElement - @XmlElement - private Short reportType; // short - // 1 - Regular - // 2 - Corrected - - // Units Code - @Column - @DynamicSerializeElement - @XmlElement - private Short unitsCode; // short - // 8 - English - // 9 - Standard International - - // Current 24 hr precipitation total - @Column - @DynamicSerializeElement - @XmlElement - private Float code10; // inches - - // Incremental precip since previous 7 a.m. - @Column - @DynamicSerializeElement - @XmlElement - private Float code11; // inches - - // Precip Criteria report from flash flood observer - @Column - @DynamicSerializeElement - @XmlElement - private Float code12; // inches - - // 4 hr precip total at previous 7 a.m. criteria report - @Column - @DynamicSerializeElement - @XmlElement - private Float code13; // inches - - // 24 hr precipitation total at 7 a.m. 2 days ago - @Column - @DynamicSerializeElement - @XmlElement - private Float code14; // inches - - // Storm total precipitation - @Column - @DynamicSerializeElement - @XmlElement - private Float code15; // inches - - // Weekly total precipitation - @Column - @DynamicSerializeElement - @XmlElement - private Float code16; // inches - - // Monthly total precipitation - @Column - @DynamicSerializeElement - @XmlElement - private Float code17; // inches - - // Off-Time precipitation report - @Column - @DynamicSerializeElement - @XmlElement - private Float code18; // inches - - // Short intense precipitation durations - @Column - @DynamicSerializeElement - @XmlElement - private Float code19; // hours - - // Precipitation type - @Column - @DynamicSerializeElement - @XmlElement - private Short code20; // short - // 0 "Ice Prism" - // 1 "Rain" - // 2 "Freezing Rain" - // 3 "Drizzle" - // 4 "Freezing Drizzle" - // 5 "Snow" - // 6 "Snow Pellets" - // 7 "Snow Grains" - // 8 "Ice Pellets" - // 9 "Hail" - - // Current air temperature - @Column - @DynamicSerializeElement - @XmlElement - private Float code21; // degrees F - - // Daily maximum air temperature - @Column - @DynamicSerializeElement - @XmlElement - private Float code22; // degrees F - - // Daily minimum air temperature - @Column - @DynamicSerializeElement - @XmlElement - private Float code23; // degrees F - - // Average weekly maximum air temperature - @Column - @DynamicSerializeElement - @XmlElement - private Float code24; // degrees F - - // Average weekly minimum air temperature - @Column - @DynamicSerializeElement - @XmlElement - private Float code25; // degrees F - - // Current water temperature - @Column - @DynamicSerializeElement - @XmlElement - private Float code26; // degrees F - - // Daily maximum soil temperature - @Column - @DynamicSerializeElement - @XmlElement - private Float code27; // degrees F - - // Daily minimum soil temperature - @Column - @DynamicSerializeElement - @XmlElement - private Float code28; // degrees F - - // Wet Bulb temperature - @Column - @DynamicSerializeElement - @XmlElement - private Float code29; // degrees F - - // Number of hours temperature is below 25 degrees F - @Column - @DynamicSerializeElement - @XmlElement - private Float code30; // Hours - - // Number of hours temperature is below 32 degrees F - @Column - @DynamicSerializeElement - @XmlElement - private Float code31; // Hours - - // Dew point temperature - @Column - @DynamicSerializeElement - @XmlElement - private Float code32; // degrees F - - // River Stage at specified ob time - @Column - @DynamicSerializeElement - @XmlElement - private Float code33; // feet - - // River Stage at previous 1 a.m. - @Column - @DynamicSerializeElement - @XmlElement - private Float code34; // feet - - // River Stage at previous 7 p.m. - @Column - @DynamicSerializeElement - @XmlElement - private Float code35; // feet - - // River Stage at previous 1 p.m. - @Column - @DynamicSerializeElement - @XmlElement - private Float code36; // feet - - // River Stage at previous 7 a.m. - @Column - @DynamicSerializeElement - @XmlElement - private Float code37; // feet - - // River Stage at 7 a.m. 2 days ago - @Column - @DynamicSerializeElement - @XmlElement - private Float code38; // feet - - // River Stage at observed crest time - @Column - @DynamicSerializeElement - @XmlElement - private String code39; // char - // Chars0_1 "month" - // Chars2_3 "day" - // Chars4_5 "hour" - // Chars6_7 "minute" - - // River Stage at observed crest - @Column - @DynamicSerializeElement - @XmlElement - private Float code40; // feet - - // River Stage Trend - @Column - @DynamicSerializeElement - @XmlElement - private Short code41; // short - // 0" "River below flood stage - Stationary" - // 1" "River below flood stage - Rising" - // 3" "River below flood stage - Falling" - // 4" "River above flood stage - Stationary" - // 5" "River above flood stage - Rising" - // 6" "River above flood stage - Falling" - - // private Double code42;--?????????????????????????????????????? - - // River Discharge instantaneous measured Kilo Cubic Feet Per Second - @Column - @DynamicSerializeElement - @XmlElement - private Float code43; // kcfs - - // River Discharge mean daily measured - @Column - @DynamicSerializeElement - @XmlElement - private Float code44; // kcfs - - // River Discharge instantaneous computed - @Column - @DynamicSerializeElement - @XmlElement - private Float code45; // kcfs - - // River Discharge mean daily computed - @Column - @DynamicSerializeElement - @XmlElement - private Float code46; // kcfs - - // River Discharge instantaneous from rating - @Column - @DynamicSerializeElement - @XmlElement - private Float code47; // kcfs - - // River Discharge mean daily from rating - @Column - @DynamicSerializeElement - @XmlElement - private Float code48; // kcfs - - // River Discharge peak - @Column - @DynamicSerializeElement - @XmlElement - private Float code49; // kcfs - - // River Discharge canal diversion - @Column - @DynamicSerializeElement - @XmlElement - private Float code50; // kcfs - - // private Float code51; //?????????????????????????????????? - - // Reservoir pool elevation at specified ob time - @Column - @DynamicSerializeElement - @XmlElement - private Float code52; // feet - - // Reservoir pool elevation at previous 6Z - @Column - @DynamicSerializeElement - @XmlElement - private Float code53; // feet - - // Reservoir pool forecast, Day 1 - @Column - @DynamicSerializeElement - @XmlElement - private Float code54; // feet - - // Reservoir pool forecast, Day 2 - @Column - @DynamicSerializeElement - @XmlElement - private Float code55; // feet - - // Reservoir pool forecast, Day 3 - @Column - @DynamicSerializeElement - @XmlElement - private Float code56; // feet - - // Reservoir tailwater elevation - @Column - @DynamicSerializeElement - @XmlElement - private Float code57; // feet - - // Reservoir inflow, instantanious - @Column - @DynamicSerializeElement - @XmlElement - private Float code58; // kcfs - - // Reservoir inflow, mean daily - @Column - @DynamicSerializeElement - @XmlElement - private Float code59; // kcfs - - // Reservoir outflow, instantanious - @Column - @DynamicSerializeElement - @XmlElement - private Float code60; // kcfs - - // Reservoir outflow, mean daily - @Column - @DynamicSerializeElement - @XmlElement - private Float code61; // kcfs - - // Reservoir outflow forecast, mean daily, Day 1 - @Column - @DynamicSerializeElement - @XmlElement - private Float code62; // kcfs - - // Reservoir outflow forecast, mean daily, Day 2 - @Column - @DynamicSerializeElement - @XmlElement - private Float code63; // kcfs - - // Reservoir outflow forecast, mean daily, Day 3 - @Column - @DynamicSerializeElement - @XmlElement - private Float code64; // kcfs - - // Reservoir storage at specified ob time KAF=thousand acre feet - @Column - @DynamicSerializeElement - @XmlElement - private Float code65; // kaf - - // Reservoir evaporation, 24 hour total, computed - @Column - @DynamicSerializeElement - @XmlElement - private Float code66; // inches - - // Snow cover, areal extent - @Column - @DynamicSerializeElement - @XmlElement - private Float code67; // percent - - // Snow depth, total on ground - @Column - @DynamicSerializeElement - @XmlElement - private Float code68; // inches - - // Snow depth, new snow - @Column - @DynamicSerializeElement - @XmlElement - private Float code69; // inches - - // Snow density - @Column - @DynamicSerializeElement - @XmlElement - private Float code70; // inches/inches - - // Snow, Water equivalent, total of snow and ice on ground - @Column - @DynamicSerializeElement - @XmlElement - private Float code71; // inches - - // Snow report ref LDAD Table? - @Column - @DynamicSerializeElement - @XmlElement - private String code72; - - // FirstDigit0 "Snow structure - no report" - // FirstDigit1 "Snow structure - losely packed" - // FirstDigit2 "Snow structure - densely packed" - // SecondDigit0 "Base of snowcover - no report" - // SecondDigit1 "Base of snowcover - wet snow" - // SecondDigit2 "Base of snowcover - dry snow" - // SecondDigit3 "Base of snowcover - ice layer" - // ThirdDigit0 "Surface of snowcover - no report" - // ThirdDigit1 "Surface of snowcover - snow crust" - // ThirdDigit2 "Surface of snowcover - loose" - // ThirdDigit3 "Surface of snowcover - ice" - // FourthDigit0 "Area description - no report" - // FourthDigit1 "Area description - uniform" - // FourthDigit2 "Area description - some drifts" - // FourthDigit3 "Area description - drifts" - - // Ice cover, areal extent - @Column - @DynamicSerializeElement - @XmlElement - private Float code73; // percent - - // Ice extent from reporting area, up to downstream - @Column - @DynamicSerializeElement - @XmlElement - private Float code74; // miles - - // Ice open water, extent from reporting area, up or downstream - @Column - @DynamicSerializeElement - @XmlElement - private Float code75; // miles - - // Ice thickness - @Column - @DynamicSerializeElement - @XmlElement - private Float code76; // inches - - // Ice report ref LDAD Table - @Column - @DynamicSerializeElement - @XmlElement - private String code77; - - // FirstDigit0 "Ice structure - no report" - // FirstDigit1 "Ice structure - breaking ice" - // FirstDigit2 "Ice structure - floating (running)" - // FirstDigit3 "Ice structure - hanging" - // FirstDigit4 "Ice structure - honeycomb" - // FirstDigit5 "Ice structure - layered" - // FirstDigit6 "Ice structure - rotten" - // FirstDigit7 "Ice structure - stationary" - // FirstDigit8 "Ice structure - stopped" - // FirstDigit9 "Ice structure - slush" - // SecondDigit0 "Ice type - no report" - // SecondDigit1 "Ice type - anchor (also bottom ice)" - // SecondDigit2 "Ice type - cake" - // SecondDigit3 "Ice type - clear" - // SecondDigit4 "Ice type - frazzle" - // SecondDigit5 "Ice type - ice gorge (also jammed ice)" - // SecondDigit6 "Ice type - locally formed" - // SecondDigit7 "Ice type - sheet ice" - // SecondDigit8 "Ice type - sheet ice (also on bridges)" - // SecondDigit9 "Ice type - shore ice" - // ThirdDigit0 "Ice cover - no ice" - // ThirdDigit1 "Ice cover - 1/10 cover" - // ThirdDigit2 "Ice cover - 2/10 cover" - // ThirdDigit3 "Ice cover - 3/10 cover" - // ThirdDigit4 "Ice cover - 4/10 cover" - // ThirdDigit5 "Ice cover - 5/10 cover" - // ThirdDigit6 "Ice cover - 6/10 cover" - // ThirdDigit7 "Ice cover - 7/10 cover" - // ThirdDigit8 "Ice cover - 8/10 - 9/10 cover" - // ThirdDigit9 "Ice cover - fully covered" - - // Depth of frost - @Column - @DynamicSerializeElement - @XmlElement - private Float code78; // inches - - // Depth of frost thawed - @Column - @DynamicSerializeElement - @XmlElement - private Float code79; // inches - - // Frost structure report - @Column - @DynamicSerializeElement - @XmlElement - private Short code80; // short - // 0 "Frost intensity - no frost" - // 1 "Frost intensity - light frost" - // 2 "Frost intensity - moderate frost" - // 3 "Frost intensity - heavy frost" - - // Surface frost intensity - @Column - @DynamicSerializeElement - @XmlElement - private Short code81; // short - // 0 "Frost intensity - no frost" - // 1 "Frost intensity - light frost" - // 2 "Frost intensity - moderate frost" - // 3 "Frost intensity - heavy frost" - - // State of ground - @Column - @DynamicSerializeElement - @XmlElement - private Short code82; // short - // 0 Surface of ground dry" - // 1 Surface of ground moist" - // 2 Surface of ground wet" - // 3 Flooded" - // 5 Glaze on ground" - // 6 Loose dry dust or sand not covering ground - // completely" - // 7 Thin cover of loose dry dust or sand covering - // ground completely" - // 8 Moderate or thick cover of loose dry dust or sand - // covering ground completely" - // 9 Ground extra dry with cracks" - // 10 Ground predominately covered with ice" - // 11 Compact or wet snow (with or without ice) - // covering less than one half of the ground" - // 12 Compact or wet snow (with or without ice) - // covering less than one half of the ground but not - // completely covered" - // 13 Even layer of comapct or wet snow covering - // ground completely" - // 14 Uneven layer of comapct or wet snow covering - // ground completely" - // 15 Loose dry snow covering less than one half of - // the ground" - // 16 Loose dry snow covering at least one half of the - // ground (but not completely)" - // 17 Even layers of loose dry snow covering ground - // completely" - // 18 Uneven layers of loose dry snow covering ground - // completely" - // 19 Snow covering ground completely; Deep drifts" - // 20 Sleet or hail covering ground completely" - - // Soil moisture - @Column - @DynamicSerializeElement - @XmlElement - private Float code83; // inches - - // Present weather - @Column - @DynamicSerializeElement - @XmlElement - private Short code84; // short - // 5 "Haze" - // 7 "Dust or sand raised by wind" - // 8 "Well developed dust whirls or sand whirls" - // 13 "Lightning (no thunder heard)" - // 17 "Thunderstorm, but no precip at ob time" - // 19 - // "Funnel cloud at or within sight of station during previous hour or at ob time" - // 41 "Fog or ice fog in patches" - // 42 "Fog or ice fog (sky visible)" - // 43 "Fog or ice fog (sky not visible)" - // 51 "Drizzle, not freezing, slight at ob time" - // 53 "Drizzle, not freezing, moderate at ob time" - // 55 "Drizzle, not freezing, heavy at ob time" - // 56 "Drizzle, freezing, light" - // 57 "Drizzle, freezing, moderate or heavy" - // 61 - // "Rain, not freezing, continuous, slight at ob time" - // 63 - // "Rain, not freezing, continuous, moderate at ob time" - // 65 - // "Rain, not freezing, continuous, heavy at ob time" - // 66 "Rain, freezing, light" - // 67 "Rain, freezing, moderate or heavy" - // 68 "Rain or drizzle and snow, light" - // 69 "Rain or drizzle and snow, moderate or heavy" - // 71 "Snow, continuous, light" - // 73 "Snow, continuous, moderate" - // 75 "Snow, continuous, heavy" - // 79 "Ice Pellets or sleet" - // 80 "Rainshower, light" - // 81 "Rainshower, moderate or heavy" - // 82 "Rainshower, violent" - // 83 "Rain and snowshowers, light" - // 84 "Rain and snowshowers, moderate or heavy" - // 85 "Snowshowers, light" - // 86 "Snowshowers, moderate or heavy" - // 89 - // "Showers of hail, with or without rain or rain and snow mixed at ob time" - // 95 - // "Thunderstorm, slight or moderate, without hail, but with rain and/or snow" - // 96 "Thunderstorm, slight or moderate, with hail" - // 97 - // "Thunderstorm, heavy, without hail, but with rain and/or snow" - // 98 "Thunderstorm, with dust or sand storm" - // 99 "Thunderstorm, heavy with hail" - - // Past 6 hour weather - @Column - @DynamicSerializeElement - @XmlElement - private Short code85; // short - // 0 - // "Cloud covering one half or less of the sky throughout the appropriate period" - // 1 - // "Cloud covering more than one half the sky throughout the appropriate period and covering one half or less during part of the period" - // 2 - // "Cloud covering more than one half the sky throughout the appropriate period" - // 3 "Sandstorm, duststrom, or blowing snow" - // 4 "Fog or ice fog or thick haze" - // 5 "Drizzle" - // 6 "Rain" - // 7 "Snow, or rain and snow mixed" - // 8 "Showers" - // 9 "Thunderstorm(s) with or without precip" - - // Relative humidity - @Column - @DynamicSerializeElement - @XmlElement - private Float code86; // percent - - // Evaporation, measured, Class A pan or other - @Column - @DynamicSerializeElement - @XmlElement - private Float code87; // inches - - // Wind speed - @Column - @DynamicSerializeElement - @XmlElement - private Float code88; // miles per hour - - // Wind direction - @Column - @DynamicSerializeElement - @XmlElement - private Float code89; // tens of degrees - - // Sunshine, hours per day - @Column - @DynamicSerializeElement - @XmlElement - private Float code90; // hours - - // Solar energy, accumulated incoming - @Column - @DynamicSerializeElement - @XmlElement - private Float code91; // ly - - // short Dew intensity - @Column - @DynamicSerializeElement - @XmlElement - private Short code92; - - // 0 "No dew" - // 1 "Light dew" - // 2 "Moderate dew" - // 3 "Heavy dew" - - // Leaf wetness - @Column - @DynamicSerializeElement - @XmlElement - private Float code93; // hours ???????????????????? - - // Water pan temperature maximum - @Column - @DynamicSerializeElement - @XmlElement - private Float code94; // degrees F - - // Water pan temperature minimum - @Column - @DynamicSerializeElement - @XmlElement - private Float code95; // degrees F - - // 24 hour wind flow - @Column - @DynamicSerializeElement - @XmlElement - private Float code96; // miles - - // Raw observation text - ROSA raw message - @Column - @DynamicSerializeElement - @XmlElement - private String rawMessage; // rawMessage - - /** - * - */ - public ManualLdadRecord() { - } - - /** - * Constructor for DataURI construction through base class. This is used by - * the notification service. - * - * @param uri - * A data uri applicable to this class. - */ - public ManualLdadRecord(String uri) { - super(uri); - } - - /** - * @return the code12 - */ - public Float getCode12() { - return code12; - } - - /** - * @param code12 - * the code12 to set - */ - public void setCode12(Float code12) { - this.code12 = code12; - } - - /** - * @return the code13 - */ - public Float getCode13() { - return code13; - } - - /** - * @param code13 - * the code13 to set - */ - public void setCode13(Float code13) { - this.code13 = code13; - } - - /** - * @return the code14 - */ - public Float getCode14() { - return code14; - } - - /** - * @param code14 - * the code14 to set - */ - public void setCode14(Float code14) { - this.code14 = code14; - } - - /** - * @return the code15 - */ - public Float getCode15() { - return code15; - } - - /** - * @param code15 - * the code15 to set - */ - public void setCode15(Float code15) { - this.code15 = code15; - } - - /** - * @return the code16 - */ - public Float getCode16() { - return code16; - } - - /** - * @param code16 - * the code16 to set - */ - public void setCode16(Float code16) { - this.code16 = code16; - } - - /** - * @return the code17 - */ - public Float getCode17() { - return code17; - } - - /** - * @param code17 - * the code17 to set - */ - public void setCode17(Float code17) { - this.code17 = code17; - } - - /** - * @return the code18 - */ - public Float getCode18() { - return code18; - } - - /** - * @param code18 - * the code18 to set - */ - public void setCode18(Float code18) { - this.code18 = code18; - } - - /** - * @return the code19 - */ - public Float getCode19() { - return code19; - } - - /** - * @param code19 - * the code19 to set - */ - public void setCode19(Float code19) { - this.code19 = code19; - } - - /** - * @return the code20 - */ - public Short getCode20() { - return code20; - } - - /** - * @param code20 - * the code20 to set - */ - public void setCode20(Short code20) { - this.code20 = code20; - } - - /** - * @return the code21 - */ - public Float getCode21() { - return code21; - } - - /** - * @param code21 - * the code21 to set - */ - public void setCode21(Float code21) { - this.code21 = code21; - } - - /** - * @return the code22 - */ - public Float getCode22() { - return code22; - } - - /** - * @param code22 - * the code22 to set - */ - public void setCode22(Float code22) { - this.code22 = code22; - } - - /** - * @return the code23 - */ - public Float getCode23() { - return code23; - } - - /** - * @param code23 - * the code23 to set - */ - public void setCode23(Float code23) { - this.code23 = code23; - } - - /** - * @return the code24 - */ - public Float getCode24() { - return code24; - } - - /** - * @param code24 - * the code24 to set - */ - public void setCode24(Float code24) { - this.code24 = code24; - } - - /** - * @return the code25 - */ - public Float getCode25() { - return code25; - } - - /** - * @param code25 - * the code25 to set - */ - public void setCode25(Float code25) { - this.code25 = code25; - } - - /** - * @return the code26 - */ - public Float getCode26() { - return code26; - } - - /** - * @param code26 - * the code26 to set - */ - public void setCode26(Float code26) { - this.code26 = code26; - } - - /** - * @return the code27 - */ - public Float getCode27() { - return code27; - } - - /** - * @param code27 - * the code27 to set - */ - public void setCode27(Float code27) { - this.code27 = code27; - } - - /** - * @return the code28 - */ - public Float getCode28() { - return code28; - } - - /** - * @param code28 - * the code28 to set - */ - public void setCode28(Float code28) { - this.code28 = code28; - } - - /** - * @return the code29 - */ - public Float getCode29() { - return code29; - } - - /** - * @param code29 - * the code29 to set - */ - public void setCode29(Float code29) { - this.code29 = code29; - } - - /** - * @return the code30 - */ - public Float getCode30() { - return code30; - } - - /** - * @param code30 - * the code30 to set - */ - public void setCode30(Float code30) { - this.code30 = code30; - } - - /** - * @return the code31 - */ - public Float getCode31() { - return code31; - } - - /** - * @param code31 - * the code31 to set - */ - public void setCode31(Float code31) { - this.code31 = code31; - } - - /** - * @return the code32 - */ - public Float getCode32() { - return code32; - } - - /** - * @param code32 - * the code32 to set - */ - public void setCode32(Float code32) { - this.code32 = code32; - } - - /** - * @return the code33 - */ - public Float getCode33() { - return code33; - } - - /** - * @param code33 - * the code33 to set - */ - public void setCode33(Float code33) { - this.code33 = code33; - } - - /** - * @return the code34 - */ - public Float getCode34() { - return code34; - } - - /** - * @param code34 - * the code34 to set - */ - public void setCode34(Float code34) { - this.code34 = code34; - } - - /** - * @return the code35 - */ - public Float getCode35() { - return code35; - } - - /** - * @param code35 - * the code35 to set - */ - public void setCode35(Float code35) { - this.code35 = code35; - } - - /** - * @return the code36 - */ - public Float getCode36() { - return code36; - } - - /** - * @param code36 - * the code36 to set - */ - public void setCode36(Float code36) { - this.code36 = code36; - } - - /** - * @return the code37 - */ - public Float getCode37() { - return code37; - } - - /** - * @param code37 - * the code37 to set - */ - public void setCode37(Float code37) { - this.code37 = code37; - } - - /** - * @return the code38 - */ - public Float getCode38() { - return code38; - } - - /** - * @param code38 - * the code38 to set - */ - public void setCode38(Float code38) { - this.code38 = code38; - } - - /** - * @return the code39 - */ - public String getCode39() { - return code39; - } - - /** - * @param code39 - * the code39 to set - */ - public void setCode39(String code39) { - this.code39 = code39; - } - - /** - * @return the code40 - */ - public Float getCode40() { - return code40; - } - - /** - * @param code40 - * the code40 to set - */ - public void setCode40(Float code40) { - this.code40 = code40; - } - - /** - * @return the code41 - */ - public Short getCode41() { - return code41; - } - - /** - * @param code41 - * the code41 to set - */ - public void setCode41(Short code41) { - this.code41 = code41; - } - - /** - * @return the code43 - */ - public Float getCode43() { - return code43; - } - - /** - * @param code43 - * the code43 to set - */ - public void setCode43(Float code43) { - this.code43 = code43; - } - - /** - * @return the code44 - */ - public Float getCode44() { - return code44; - } - - /** - * @param code44 - * the code44 to set - */ - public void setCode44(Float code44) { - this.code44 = code44; - } - - /** - * @return the code45 - */ - public Float getCode45() { - return code45; - } - - /** - * @param code45 - * the code45 to set - */ - public void setCode45(Float code45) { - this.code45 = code45; - } - - /** - * @return the code46 - */ - public Float getCode46() { - return code46; - } - - /** - * @param code46 - * the code46 to set - */ - public void setCode46(Float code46) { - this.code46 = code46; - } - - /** - * @return the code47 - */ - public Float getCode47() { - return code47; - } - - /** - * @param code47 - * the code47 to set - */ - public void setCode47(Float code47) { - this.code47 = code47; - } - - /** - * @return the code48 - */ - public Float getCode48() { - return code48; - } - - /** - * @param code48 - * the code48 to set - */ - public void setCode48(Float code48) { - this.code48 = code48; - } - - /** - * @return the code49 - */ - public Float getCode49() { - return code49; - } - - /** - * @param code49 - * the code49 to set - */ - public void setCode49(Float code49) { - this.code49 = code49; - } - - /** - * @return the code50 - */ - public Float getCode50() { - return code50; - } - - /** - * @param code50 - * the code50 to set - */ - public void setCode50(Float code50) { - this.code50 = code50; - } - - /** - * @return the code52 - */ - public Float getCode52() { - return code52; - } - - /** - * @param code52 - * the code52 to set - */ - public void setCode52(Float code52) { - this.code52 = code52; - } - - /** - * @return the code53 - */ - public Float getCode53() { - return code53; - } - - /** - * @param code53 - * the code53 to set - */ - public void setCode53(Float code53) { - this.code53 = code53; - } - - /** - * @return the code54 - */ - public Float getCode54() { - return code54; - } - - /** - * @param code54 - * the code54 to set - */ - public void setCode54(Float code54) { - this.code54 = code54; - } - - /** - * @return the code55 - */ - public Float getCode55() { - return code55; - } - - /** - * @param code55 - * the code55 to set - */ - public void setCode55(Float code55) { - this.code55 = code55; - } - - /** - * @return the code56 - */ - public Float getCode56() { - return code56; - } - - /** - * @param code56 - * the code56 to set - */ - public void setCode56(Float code56) { - this.code56 = code56; - } - - /** - * @return the code57 - */ - public Float getCode57() { - return code57; - } - - /** - * @param code57 - * the code57 to set - */ - public void setCode57(Float code57) { - this.code57 = code57; - } - - /** - * @return the code58 - */ - public Float getCode58() { - return code58; - } - - /** - * @param code58 - * the code58 to set - */ - public void setCode58(Float code58) { - this.code58 = code58; - } - - /** - * @return the code59 - */ - public Float getCode59() { - return code59; - } - - /** - * @param code59 - * the code59 to set - */ - public void setCode59(Float code59) { - this.code59 = code59; - } - - /** - * @return the code60 - */ - public Float getCode60() { - return code60; - } - - /** - * @param code60 - * the code60 to set - */ - public void setCode60(Float code60) { - this.code60 = code60; - } - - /** - * @return the code61 - */ - public Float getCode61() { - return code61; - } - - /** - * @param code61 - * the code61 to set - */ - public void setCode61(Float code61) { - this.code61 = code61; - } - - /** - * @return the code62 - */ - public Float getCode62() { - return code62; - } - - /** - * @param code62 - * the code62 to set - */ - public void setCode62(Float code62) { - this.code62 = code62; - } - - /** - * @return the code63 - */ - public Float getCode63() { - return code63; - } - - /** - * @param code63 - * the code63 to set - */ - public void setCode63(Float code63) { - this.code63 = code63; - } - - /** - * @return the code64 - */ - public Float getCode64() { - return code64; - } - - /** - * @param code64 - * the code64 to set - */ - public void setCode64(Float code64) { - this.code64 = code64; - } - - /** - * @return the code65 - */ - public Float getCode65() { - return code65; - } - - /** - * @param code65 - * the code65 to set - */ - public void setCode65(Float code65) { - this.code65 = code65; - } - - /** - * @return the code66 - */ - public Float getCode66() { - return code66; - } - - /** - * @param code66 - * the code66 to set - */ - public void setCode66(Float code66) { - this.code66 = code66; - } - - /** - * @return the code67 - */ - public Float getCode67() { - return code67; - } - - /** - * @param code67 - * the code67 to set - */ - public void setCode67(Float code67) { - this.code67 = code67; - } - - /** - * @return the code68 - */ - public Float getCode68() { - return code68; - } - - /** - * @param code68 - * the code68 to set - */ - public void setCode68(Float code68) { - this.code68 = code68; - } - - /** - * @return the code69 - */ - public Float getCode69() { - return code69; - } - - /** - * @param code69 - * the code69 to set - */ - public void setCode69(Float code69) { - this.code69 = code69; - } - - /** - * @return the code70 - */ - public Float getCode70() { - return code70; - } - - /** - * @param code70 - * the code70 to set - */ - public void setCode70(Float code70) { - this.code70 = code70; - } - - /** - * @return the code71 - */ - public Float getCode71() { - return code71; - } - - /** - * @param code71 - * the code71 to set - */ - public void setCode71(Float code71) { - this.code71 = code71; - } - - /** - * @return the code72 - */ - public String getCode72() { - return code72; - } - - /** - * @param code72 - * the code72 to set - */ - public void setCode72(String code72) { - this.code72 = code72; - } - - /** - * @return the code73 - */ - public Float getCode73() { - return code73; - } - - /** - * @param code73 - * the code73 to set - */ - public void setCode73(Float code73) { - this.code73 = code73; - } - - /** - * @return the code74 - */ - public Float getCode74() { - return code74; - } - - /** - * @param code74 - * the code74 to set - */ - public void setCode74(Float code74) { - this.code74 = code74; - } - - /** - * @return the code75 - */ - public Float getCode75() { - return code75; - } - - /** - * @param code75 - * the code75 to set - */ - public void setCode75(Float code75) { - this.code75 = code75; - } - - /** - * @return the code76 - */ - public Float getCode76() { - return code76; - } - - /** - * @param code76 - * the code76 to set - */ - public void setCode76(Float code76) { - this.code76 = code76; - } - - /** - * @return the code77 - */ - public String getCode77() { - return code77; - } - - /** - * @param code77 - * the code77 to set - */ - public void setCode77(String code77) { - this.code77 = code77; - } - - /** - * @return the code78 - */ - public Float getCode78() { - return code78; - } - - /** - * @param code78 - * the code78 to set - */ - public void setCode78(Float code78) { - this.code78 = code78; - } - - /** - * @return the code79 - */ - public Float getCode79() { - return code79; - } - - /** - * @param code79 - * the code79 to set - */ - public void setCode79(Float code79) { - this.code79 = code79; - } - - /** - * @return the code80 - */ - public Short getCode80() { - return code80; - } - - /** - * @param code80 - * the code80 to set - */ - public void setCode80(Short code80) { - this.code80 = code80; - } - - /** - * @return the code81 - */ - public Short getCode81() { - return code81; - } - - /** - * @param code81 - * the code81 to set - */ - public void setCode81(Short code81) { - this.code81 = code81; - } - - /** - * @return the code82 - */ - public Short getCode82() { - return code82; - } - - /** - * @param code82 - * the code82 to set - */ - public void setCode82(Short code82) { - this.code82 = code82; - } - - /** - * @return the code83 - */ - public Float getCode83() { - return code83; - } - - /** - * @param code83 - * the code83 to set - */ - public void setCode83(Float code83) { - this.code83 = code83; - } - - /** - * @return the code84 - */ - public Short getCode84() { - return code84; - } - - /** - * @param code84 - * the code84 to set - */ - public void setCode84(Short code84) { - this.code84 = code84; - } - - /** - * @return the code85 - */ - public Short getCode85() { - return code85; - } - - /** - * @param code85 - * the code85 to set - */ - public void setCode85(Short code85) { - this.code85 = code85; - } - - /** - * @return the code86 - */ - public Float getCode86() { - return code86; - } - - /** - * @param code86 - * the code86 to set - */ - public void setCode86(Float code86) { - this.code86 = code86; - } - - /** - * @return the code87 - */ - public Float getCode87() { - return code87; - } - - /** - * @param code87 - * the code87 to set - */ - public void setCode87(Float code87) { - this.code87 = code87; - } - - /** - * @return the code88 - */ - public Float getCode88() { - return code88; - } - - /** - * @param code88 - * the code88 to set - */ - public void setCode88(Float code88) { - this.code88 = code88; - } - - /** - * @return the code89 - */ - public Float getCode89() { - return code89; - } - - /** - * @param code89 - * the code89 to set - */ - public void setCode89(Float code89) { - this.code89 = code89; - } - - /** - * @return the code90 - */ - public Float getCode90() { - return code90; - } - - /** - * @param code90 - * the code90 to set - */ - public void setCode90(Float code90) { - this.code90 = code90; - } - - /** - * @return the code91 - */ - public Float getCode91() { - return code91; - } - - /** - * @param code91 - * the code91 to set - */ - public void setCode91(Float code91) { - this.code91 = code91; - } - - /** - * @return the code92 - */ - public Short getCode92() { - return code92; - } - - /** - * @param code92 - * the code92 to set - */ - public void setCode92(Short code92) { - this.code92 = code92; - } - - /** - * @return the code93 - */ - public Float getCode93() { - return code93; - } - - /** - * @param code93 - * the code93 to set - */ - public void setCode93(Float code93) { - this.code93 = code93; - } - - /** - * @return the code94 - */ - public Float getCode94() { - return code94; - } - - /** - * @param code94 - * the code94 to set - */ - public void setCode94(Float code94) { - this.code94 = code94; - } - - /** - * @return the code95 - */ - public Float getCode95() { - return code95; - } - - /** - * @param code95 - * the code95 to set - */ - public void setCode95(Float code95) { - this.code95 = code95; - } - - /** - * @return the code96 - */ - public Float getCode96() { - return code96; - } - - /** - * @param code96 - * the code96 to set - */ - public void setCode96(Float code96) { - this.code96 = code96; - } - - /** - * Get this observation's geometry. - * - * @return The geometry for this observation. - */ - public Geometry getGeometry() { - return location.getGeometry(); - } - - /** - * Get the geometry latitude. - * - * @return The geometry latitude. - */ - public Float getLatitude() { - return location.getLatitude(); - } - - /** - * Get the geometry longitude. - * - * @return The geometry longitude. - */ - public Float getLongitude() { - return location.getLongitude(); - } - - /** - * Get the elevation, in meters, of the observing platform or location. - * - * @return The observation elevation, in meters. - */ - public Integer getElevation() { - return location.getElevation(); - } - - /** - * @return the location - */ - public SurfaceObsLocation getLocation() { - return location; - } - - /** - * @param location - * the location to set - */ - public void setLocation(SurfaceObsLocation location) { - this.location = location; - } - - - /** - * @return the timeObs - */ - public Calendar getObservationTime() { - return observationTime; - } - - /** - * @param timeObs - * the timeObs to set - */ - public void setObservationTime(Calendar observationTime) { - this.observationTime = observationTime; - } - - /** - * - */ - public void setSpatialObject(SurfaceObsLocation loc) { - location = loc; - } - - /** - * - */ - @Override - public SurfaceObsLocation getSpatialObject() { - return location; - } - - /** - * @param providerId - * the providerId to set - */ - public void setProviderId(String providerId) { - this.providerId = providerId; - } - - /** - * @return the providerId - */ - public String getProviderId() { - return providerId; - } - - /** - * @param stationName - * the stationName to set - */ - public void setStationName(String stationName) { - this.stationName = stationName; - } - - /** - * @return the stationName - */ - public String getStationName() { - return stationName; - } - - /** - * @param homeWFO - * the homeWFO to set - */ - public void setHomeWFO(String homeWFO) { - this.homeWFO = homeWFO; - } - - /** - * @return the homeWFO - */ - public String getHomeWFO() { - return homeWFO; - } - - /** - * @param reportType - * the reportType to set - */ - public void setReportType(Short reportType) { - this.reportType = reportType; - } - - /** - * @return the reportType - */ - public Short getReportType() { - return reportType; - } - - /** - * @param unitsCode - * the unitsCode to set - */ - public void setUnitsCode(Short unitsCode) { - this.unitsCode = unitsCode; - } - - /** - * @return the unitsCode - */ - public Short getUnitsCode() { - return unitsCode; - } - - /** - * @param code10 - * the code10 to set - */ - public void setCode10(Float code10) { - this.code10 = code10; - } - - /** - * @return the code10 - */ - public Float getCode10() { - return code10; - } - - /** - * @param code11 - * the code11 to set - */ - public void setCode11(Float code11) { - this.code11 = code11; - } - - /** - * @return the code11 - */ - public Float getCode11() { - return code11; - } - - /** - * Get the station identifier for this observation. - * - * @return the stationId - */ - public String getStationId() { - return location.getStationId(); - } - - /** - * @param rawMessage - * the rawMessage to set - */ - public void setRawMessage(String rawMessage) { - this.rawMessage = rawMessage; - } - - /** - * @return the rawMessage - */ - public String getRawMessage() { - return rawMessage; - } - - @Override - @Column - @Access(AccessType.PROPERTY) - public String getDataURI() { - return super.getDataURI(); - } - - @Override - public String getPluginName() { - return "ldadmanual"; - } -} diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadmanual/utility/common_static/base/purge/ldadmanualPurgeRules.xml b/edexOsgi/com.raytheon.edex.plugin.ldadmanual/utility/common_static/base/purge/ldadmanualPurgeRules.xml deleted file mode 100644 index 1182b36c71..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadmanual/utility/common_static/base/purge/ldadmanualPurgeRules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - 24 - =00-01:00:00 - 00-01:00:00 - - diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadmanual/utility/edex_static/base/distribution/ldadmanual.xml b/edexOsgi/com.raytheon.edex.plugin.ldadmanual/utility/edex_static/base/distribution/ldadmanual.xml deleted file mode 100644 index 167996e928..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadmanual/utility/edex_static/base/distribution/ldadmanual.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - LDAD\.manual\.* - diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/.classpath b/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/.classpath deleted file mode 100644 index 1fa3e6803d..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/.project b/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/.project deleted file mode 100644 index e660869edb..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/.project +++ /dev/null @@ -1,34 +0,0 @@ - - - com.raytheon.edex.plugin.ldadprofiler - - - - - - org.python.pydev.PyDevBuilder - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - org.python.pydev.pythonNature - - diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/.pydevproject b/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/.pydevproject deleted file mode 100644 index faf12629d9..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/.pydevproject +++ /dev/null @@ -1,7 +0,0 @@ - - - - -python 2.5 -Default - diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/LdadprofilerDecoder.py b/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/LdadprofilerDecoder.py deleted file mode 100644 index de5910c0ab..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/LdadprofilerDecoder.py +++ /dev/null @@ -1,122 +0,0 @@ -## -# This software was developed and / or modified by Raytheon Company, -# pursuant to Contract DG133W-05-CQ-1067 with the US Government. -# -# U.S. EXPORT CONTROLLED TECHNICAL DATA -# This software product contains export-restricted data whose -# export/transfer/disclosure is restricted by U.S. law. Dissemination -# to non-U.S. persons whether in the United States or abroad requires -# an export license or other authorization. -# -# Contractor Name: Raytheon Company -# Contractor Address: 6825 Pine Street, Suite 340 -# Mail Stop B8 -# Omaha, NE 68106 -# 402.291.0100 -# -# See the AWIPS II Master Rights File ("Master Rights File.pdf") for -# further licensing information. -## -import sys, os, time, re, string, getopt -import copy -import LogStream -import pupynere -from com.raytheon.uf.common.pointdata.spatial import SurfaceObsLocation -from java.lang import Double -from java.lang import Integer -from com.raytheon.edex.plugin.ldadprofiler.common import ProfilerLdadLevel - -typeMap = { 'd' : 'DOUBLE', 'f' : 'FLOAT', - 'i' : 'INT', 'c' : 'CHAR', - 's' : 'STRING', 'h' : 'INT' } - -excludeVars = ('time', 'validTimeList', 'nStaticIds', 'inventory', 'globalInventory', 'firstInBin', 'lastInBin', 'lastRecord', 'staticIds','prevRecord', 'firstOverflow', 'isOverflow') - -class LdadprofilerDecoder(): - - def __init__(self, text=None, filePath=None): - - #self._parameters = ['height','wdir_tru','wspd_k','v','vconf','u','uconf','w','wconf'] - #self._mappings = ['levelHeight','windDir', 'windSpeed','vcWind','ucWind','wcWind'] - - - #to ensure time calls are based on Zulu - os.environ['TZ'] = "GMT0" - - self._deleteAfterProcessing = 0 - if filePath is None: - self._incomingFilename = None - else: - self._incomingFilename = filePath - - def decode(self): - LogStream.logEvent("<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>") - fillValue = None - missing = None - reportType = 3000 - ldadprofilerReports = list() - net = pupynere.netcdf_file(self._incomingFilename,"r") - records = net._recs - location = SurfaceObsLocation() - lat = Double.valueOf(str(net.variables['lat'].getValue())) - lon = Double.valueOf(str(net.variables['lon'].getValue())) - elv = Double.valueOf(str(net.variables['alt'].getValue())) - location.assignLocation(lat.doubleValue(), lon.doubleValue()); - location.setElevation(Integer(elv.intValue())); - location.setStationId(net._attributes['site_acronym']) - for x in range(records): - reportTime = net.variables['start_time_offset'][x] + net.variables['base_time'].getValue() - #obsPeriod = net.variables['end_time_offset'][x]-net.variables['start_time_offset'][x] - ldadprofilerReport = dict() - levels = list() - for y in range(net.dimensions['gate']): - level = ProfilerLdadLevel() - height = Double.valueOf(str(net.variables['height'][x][y])) - level.setLevelHeight(Integer(height.intValue())) - level.setWindSpeed(Double.valueOf(str(net.variables['wspd_k'][x][y]))) - level.setWindDir(Double.valueOf(str(net.variables['wdir_tru'][x][y]))) - level.setUcWind(Double.valueOf(str(net.variables['u'][x][y]))) - level.setVcWind(Double.valueOf(str(net.variables['v'][x][y]))) - level.setWcWind(Double.valueOf(str(net.variables['w'][x][y]))) - level.setUconf(Double.valueOf(str(net.variables['uconf'][x][y]))) - level.setVconf(Double.valueOf(str(net.variables['vconf'][x][y]))) - level.setWconf(Double.valueOf(str(net.variables['wconf'][x][y]))) - levels.append(level) - ldadprofilerReport['location'] = location - ldadprofilerReport['base_time'] = int(net.variables['base_time'].getValue()) - ldadprofilerReport['start_time_offset']= Double.valueOf(str(net.variables['start_time_offset'][x])) - ldadprofilerReport['end_time_offset']= Double.valueOf(str(net.variables['end_time_offset'][x])) - ldadprofilerReport['timeObs'] = long(reportTime) - ldadprofilerReport['dataTime'] = ldadprofilerReport['timeObs'] - ldadprofilerReport['nhts']= int(net.variables['nhts'][x]) - ldadprofilerReport['reportType']=reportType - ldadprofilerReport['stationName']=net._attributes['sensor_site'] - ldadprofilerReport['levels'] = levels - ldadprofilerReports.append(ldadprofilerReport) - net.close() - return ldadprofilerReports - - - def _usage(self): - #Prints out usage information if started without sufficient command - #line arguments. - s = "This tool is not meant to be run from the command line." - print s - LogStream.logProblem(s) - - - -def main(): - try: - LogStream.logEvent("LdadProfilerDecoder Starting") - decoder = LdadprofilerDecoder() - decoder.decode() - decoder = None - LogStream.logEvent("LdadProfilerDecoder Finished") - except: - LogStream.logProblem("Caught Exception: ", LogStream.exc()) - sys.exit(1) - -if __name__ == "__main__": - main() - sys.exit(0) \ No newline at end of file diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/META-INF/MANIFEST.MF b/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/META-INF/MANIFEST.MF deleted file mode 100644 index e312c208ae..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/META-INF/MANIFEST.MF +++ /dev/null @@ -1,19 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: Ldadprofiler Plug-in -Bundle-SymbolicName: com.raytheon.edex.plugin.ldadprofiler -Bundle-Version: 1.12.1174.qualifier -Bundle-Vendor: RAYTHEON -Require-Bundle: com.raytheon.edex.common;bundle-version="1.11.13", - javax.persistence;bundle-version="1.0.0", - javax.measure;bundle-version="1.0.0", - org.geotools;bundle-version="2.5.2", - com.raytheon.uf.common.localization;bundle-version="1.11.13", - com.raytheon.edex.plugin.ldad;bundle-version="1.0.0", - com.raytheon.uf.common.pointdata;bundle-version="1.11.17", - com.raytheon.uf.edex.pointdata -Bundle-RequiredExecutionEnvironment: JavaSE-1.6 -Export-Package: com.raytheon.edex.plugin.ldadprofiler.common, - com.raytheon.edex.plugin.ldadprofiler.dao -Import-Package: com.raytheon.uf.common.status, - org.apache.commons.logging diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/META-INF/services/com.raytheon.uf.common.serialization.ISerializableObject b/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/META-INF/services/com.raytheon.uf.common.serialization.ISerializableObject deleted file mode 100644 index 1702d9299c..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/META-INF/services/com.raytheon.uf.common.serialization.ISerializableObject +++ /dev/null @@ -1,2 +0,0 @@ -com.raytheon.edex.plugin.ldadprofiler.common.ProfilerLdadObs -com.raytheon.edex.plugin.ldadprofiler.common.ProfilerLdadLevel \ No newline at end of file diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/build.properties b/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/build.properties deleted file mode 100644 index adb9b7cd90..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/build.properties +++ /dev/null @@ -1,7 +0,0 @@ -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - .,\ - res/,\ - LdadprofilerDecoder.py - diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/com.raytheon.edex.plugin.ldadprofiler.ecl b/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/com.raytheon.edex.plugin.ldadprofiler.ecl deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/res/pointdata/ldadprofiler.xml b/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/res/pointdata/ldadprofiler.xml deleted file mode 100644 index 0f50d82b5f..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/res/pointdata/ldadprofiler.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/res/spring/ldadprofiler-common.xml b/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/res/spring/ldadprofiler-common.xml deleted file mode 100644 index 2576ec466b..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/res/spring/ldadprofiler-common.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/res/spring/ldadprofiler-ingest.xml b/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/res/spring/ldadprofiler-ingest.xml deleted file mode 100644 index 1907207071..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/res/spring/ldadprofiler-ingest.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - java.lang.Throwable - - - - - - \ No newline at end of file diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/src/com/raytheon/edex/plugin/ldadprofiler/common/LdadprofilerPointDataTransform.java b/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/src/com/raytheon/edex/plugin/ldadprofiler/common/LdadprofilerPointDataTransform.java deleted file mode 100644 index e7eb44c1a3..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/src/com/raytheon/edex/plugin/ldadprofiler/common/LdadprofilerPointDataTransform.java +++ /dev/null @@ -1,192 +0,0 @@ -/** - * This software was developed and / or modified by Raytheon Company, - * pursuant to Contract DG133W-05-CQ-1067 with the US Government. - * - * U.S. EXPORT CONTROLLED TECHNICAL DATA - * This software product contains export-restricted data whose - * export/transfer/disclosure is restricted by U.S. law. Dissemination - * to non-U.S. persons whether in the United States or abroad requires - * an export license or other authorization. - * - * Contractor Name: Raytheon Company - * Contractor Address: 6825 Pine Street, Suite 340 - * Mail Stop B8 - * Omaha, NE 68106 - * 402.291.0100 - * - * See the AWIPS II Master Rights File ("Master Rights File.pdf") for - * further licensing information. - **/ -package com.raytheon.edex.plugin.ldadprofiler.common; - -import java.io.File; -import java.io.InputStream; -import java.util.HashMap; -import java.util.Iterator; -import java.util.Map; - -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; - -import com.raytheon.edex.plugin.ldadprofiler.dao.LdadProfilerDao; -import com.raytheon.uf.common.dataplugin.PluginDataObject; -import com.raytheon.uf.common.pointdata.PointDataContainer; -import com.raytheon.uf.common.pointdata.PointDataDescription; -import com.raytheon.uf.common.pointdata.PointDataView; -import com.raytheon.uf.common.serialization.SerializationException; - -/** - * Provides a transform from Ldadprofiler Records to PointDataContainer and vice - * versa. - * - *
- * 
- * SOFTWARE HISTORY
- * Date         Ticket#    Engineer    Description
- * ------------ ---------- ----------- --------------------------
- * Oct 29, 2009            vkorolev    Initial creation
- * 
- * 
- * - * @author vkorolev - * @version 1.0 - */ - -public class LdadprofilerPointDataTransform { - - // private static final String BASE_TIME = "base_time"; - // - // private static final String START_TIME_OFFSET = "start_time_offset"; - // - // private static final String END_TIME_OFFSET = "end_time_offset"; - - private static final String HEIGHTS_NUM = "nhts"; - - private static final String LEVEL_HEIGHT = "levelHeight"; - - private static final String WIND_SPEED = "windSpeed"; - - private static final String WIND_DIR = "windDir"; - - private static final String UC_WIND = "ucWind"; - - private static final String VC_WIND = "vcWind"; - - private static final String WC_WIND = "wcWind"; - - private static final String U_CONF = "uconf"; - - private static final String V_CONF = "vconf"; - - private static final String W_CONF = "wconf"; - - // private static final String REPORT_TYPE = "reportType"; - // - // private static final String TIME_OBS = "timeObs"; - // - // private static final String LONGITUDE = "longitude"; - // - // private static final String LATITUDE = "latitude"; - // - // private static final String STATION_NAME = "stationName"; - // - // private static final String DATAURI = "dataURI"; - // - // private static final String ELEVATION = "elevation"; - - private LdadProfilerDao dao; - - private PointDataDescription pdd; - - private Log logger = LogFactory.getLog(getClass()); - - public LdadprofilerPointDataTransform() { - - try { - this.pdd = getDescription("ldadprofiler"); - this.dao = new LdadProfilerDao("ldadprofiler"); - logger.info("=============PointDataDescription loaded=============="); - } catch (Exception e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - } - - public PluginDataObject[] toPointData(PluginDataObject[] pdo) { - if (pdo.length > 0) { - Map pointMap = new HashMap(); - - for (PluginDataObject p : pdo) { - if (!(p instanceof ProfilerLdadObs)) - continue; - File f = this.dao.getFullFilePath(p); - PointDataContainer pdc = pointMap.get(f); - if (pdc == null) { - pdc = PointDataContainer.build(this.pdd); - pointMap.put(f, pdc); - } - - ProfilerLdadObs ldadr = (ProfilerLdadObs) p; - PointDataView pdv = buildView(pdc, ldadr); - ldadr.setPointDataView(pdv); - } - } - return pdo; - } - - @SuppressWarnings("unchecked") - private PointDataView buildView(PointDataContainer container, - ProfilerLdadObs record) { - PointDataView pdv = container.append(); - - pdv.setInt(HEIGHTS_NUM, record.getNhts()); - if (record.getLevels() != null) { - Iterator lvlIterator = record.getLevels().iterator(); - int i = 0; - while (lvlIterator.hasNext()) { - ProfilerLdadLevel lvl = (ProfilerLdadLevel) lvlIterator.next(); - if (lvl.getLevelHeight() != null) { - pdv.setInt(LEVEL_HEIGHT, lvl.getLevelHeight(), i); - } - if (lvl.getWindSpeed() != null) { - pdv.setFloat(WIND_SPEED, lvl.getWindSpeed().floatValue(), i); - } - if (lvl.getWindDir() != null) { - pdv.setFloat(WIND_DIR, lvl.getWindDir().floatValue(), i); - } - if (lvl.getUcWind() != null) { - pdv.setFloat(UC_WIND, lvl.getUcWind().floatValue(), i); - } - if (lvl.getVcWind() != null) { - pdv.setFloat(VC_WIND, lvl.getVcWind().floatValue(), i); - } - if (lvl.getWcWind() != null) { - pdv.setFloat(WC_WIND, lvl.getWcWind().floatValue(), i); - } - if (lvl.getUconf() != null) { - pdv.setFloat(U_CONF, lvl.getUconf().floatValue(), i); - } - if (lvl.getVconf() != null) { - pdv.setFloat(V_CONF, lvl.getVconf().floatValue(), i); - } - if (lvl.getWconf() != null) { - pdv.setFloat(W_CONF, lvl.getWconf().floatValue(), i); - } - i++; - } - } - - return pdv; - } - - private PointDataDescription getDescription(String type) - throws SerializationException { - InputStream is = this.getClass().getResourceAsStream( - "/res/pointdata/" + type + ".xml"); - if (is == null) { - throw new RuntimeException("Cannot find descriptor for: " + type); - } - return PointDataDescription.fromStream(is); - } - -} diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/src/com/raytheon/edex/plugin/ldadprofiler/common/ProfilerLdadLevel.java b/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/src/com/raytheon/edex/plugin/ldadprofiler/common/ProfilerLdadLevel.java deleted file mode 100644 index 33a86f4623..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/src/com/raytheon/edex/plugin/ldadprofiler/common/ProfilerLdadLevel.java +++ /dev/null @@ -1,283 +0,0 @@ -/** - * This software was developed and / or modified by Raytheon Company, - * pursuant to Contract DG133W-05-CQ-1067 with the US Government. - * - * U.S. EXPORT CONTROLLED TECHNICAL DATA - * This software product contains export-restricted data whose - * export/transfer/disclosure is restricted by U.S. law. Dissemination - * to non-U.S. persons whether in the United States or abroad requires - * an export license or other authorization. - * - * Contractor Name: Raytheon Company - * Contractor Address: 6825 Pine Street, Suite 340 - * Mail Stop B8 - * Omaha, NE 68106 - * 402.291.0100 - * - * See the AWIPS II Master Rights File ("Master Rights File.pdf") for - * further licensing information. - **/ -package com.raytheon.edex.plugin.ldadprofiler.common; - -import java.io.Serializable; - -import javax.persistence.Column; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; - -import com.raytheon.uf.common.serialization.ISerializableObject; -import com.raytheon.uf.common.serialization.annotations.DynamicSerialize; -import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement; - -/** - * ProfilerLdadLevel contains the data for a single vertical level observation. - * - *
- * 
- * SOFTWARE HISTORY
- *                     
- * ate          Ticket#     Engineer    Description
- * -----------  ----------  ----------- --------------------------
- * 10/14/09                 vkorolev    Initial creation
- * 
- * - * @author vkorolev - * @version 1 - */ -@DynamicSerialize -@XmlAccessorType(XmlAccessType.NONE) -public class ProfilerLdadLevel implements Serializable, ISerializableObject{ - - private static final long serialVersionUID = 1L; - - /** The primary key for the database table * */ - @Id - @GeneratedValue - private Integer key; - - // Vertical Gate Height meters - @Column - @DynamicSerializeElement - @XmlElement - Integer levelHeight; - - - // U (toward east) component of wind "m/s" - @Column - @DynamicSerializeElement - @XmlElement - Double ucWind; - - // U confidence 0.0-1.0 - @Column - @DynamicSerializeElement - @XmlElement - Double uconf; - - // V (toward north) component of wind "m/s" - @Column - @DynamicSerializeElement - @XmlElement - Double vcWind; - - // V confidence 0.0-1.0 - @Column - @DynamicSerializeElement - @XmlElement - Double vconf; - - // W (upward) component of wind "m/s" - @Column - @DynamicSerializeElement - @XmlElement - Double wcWind; - - // W confidence 0.0-1.0 - @Column - @DynamicSerializeElement - @XmlElement - Double wconf; - - // wind speed "knots" - @Column - @DynamicSerializeElement - @XmlElement - Double windSpeed; - - // wind direction (true) "degrees" - @Column - @DynamicSerializeElement - @XmlElement - Double windDir; - - @ManyToOne - @JoinColumn(name = "parentLdadprofiler", nullable = false) - private ProfilerLdadObs parentLdadprofiler; - - /** - * @return the ucWind - */ - public Double getUcWind() { - return ucWind; - } - - /** - * @param ucWind the ucWind to set - */ - public void setUcWind(Double ucWind) { - this.ucWind = ucWind; - } - - /** - * @return the uconf - */ - public Double getUconf() { - return uconf; - } - - /** - * @param uconf the uconf to set - */ - public void setUconf(Double uconf) { - this.uconf = uconf; - } - - /** - * @return the vcWind - */ - public Double getVcWind() { - return vcWind; - } - - /** - * @param vcWind the vcWind to set - */ - public void setVcWind(Double vcWind) { - this.vcWind = vcWind; - } - - /** - * @return the vconf - */ - public Double getVconf() { - return vconf; - } - - /** - * @param vconf the vconf to set - */ - public void setVconf(Double vconf) { - this.vconf = vconf; - } - - /** - * @return the wcWind - */ - public Double getWcWind() { - return wcWind; - } - - /** - * @param wcWind the wcWind to set - */ - public void setWcWind(Double wcWind) { - this.wcWind = wcWind; - } - - /** - * @return the wconf - */ - public Double getWconf() { - return wconf; - } - - /** - * @param wconf the wconf to set - */ - public void setWconf(Double wconf) { - this.wconf = wconf; - } - - /** - * @return the windSpeed - */ - public Double getWindSpeed() { - return windSpeed; - } - - /** - * @param windSpeed the windSpeed to set - */ - public void setWindSpeed(Double windSpeed) { - this.windSpeed = windSpeed; - } - - /** - * @return the windDir - */ - public Double getWindDir() { - return windDir; - } - - /** - * @param windDir the windDir to set - */ - public void setWindDir(Double windDir) { - this.windDir = windDir; - } - - /** - * @return the levelHeight - */ - public Integer getLevelHeight() { - return levelHeight; - } - - /** - * @param levelHeight the levelHeight to set - */ - public void setLevelHeight(Integer levelHeight) { - this.levelHeight = levelHeight; - } - - /** - * @param key the key to set - */ - public void setKey(Integer key) { - this.key = key; - } - - /** - * @return the key - */ - public Integer getKey() { - return key; - } - - /** - * @param parentLdadprofiler the parentLdadprofiler to set - */ - public void setParentLdadprofiler(ProfilerLdadObs parentLdadprofiler) { - this.parentLdadprofiler = parentLdadprofiler; - } - - /** - * @return the parentLdadprofiler - */ - public ProfilerLdadObs getParentLdadprofiler() { - return parentLdadprofiler; - } - - //--------------------------------------------------------- - /** - * Construct an empty instance. - */ - public ProfilerLdadLevel() { - } - -} diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/src/com/raytheon/edex/plugin/ldadprofiler/common/ProfilerLdadObs.java b/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/src/com/raytheon/edex/plugin/ldadprofiler/common/ProfilerLdadObs.java deleted file mode 100644 index 4437a262df..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/src/com/raytheon/edex/plugin/ldadprofiler/common/ProfilerLdadObs.java +++ /dev/null @@ -1,344 +0,0 @@ -/** - * This software was developed and / or modified by Raytheon Company, - * pursuant to Contract DG133W-05-CQ-1067 with the US Government. - * - * U.S. EXPORT CONTROLLED TECHNICAL DATA - * This software product contains export-restricted data whose - * export/transfer/disclosure is restricted by U.S. law. Dissemination - * to non-U.S. persons whether in the United States or abroad requires - * an export license or other authorization. - * - * Contractor Name: Raytheon Company - * Contractor Address: 6825 Pine Street, Suite 340 - * Mail Stop B8 - * Omaha, NE 68106 - * 402.291.0100 - * - * See the AWIPS II Master Rights File ("Master Rights File.pdf") for - * further licensing information. - **/ -package com.raytheon.edex.plugin.ldadprofiler.common; - -import java.util.Calendar; -import java.util.List; - -import javax.persistence.Access; -import javax.persistence.AccessType; -import javax.persistence.Column; -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; -import javax.persistence.Transient; -import javax.persistence.UniqueConstraint; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; - -import org.hibernate.annotations.Index; - -import com.raytheon.uf.common.dataplugin.PluginDataObject; -import com.raytheon.uf.common.dataplugin.annotations.DataURI; -import com.raytheon.uf.common.dataplugin.persist.IPersistable; -import com.raytheon.uf.common.dataplugin.persist.PersistablePluginDataObject; -import com.raytheon.uf.common.pointdata.IPointData; -import com.raytheon.uf.common.pointdata.PointDataView; -import com.raytheon.uf.common.pointdata.spatial.SurfaceObsLocation; -import com.raytheon.uf.common.serialization.annotations.DynamicSerialize; -import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement; - -/** - * Record implementation for ldadprofiler plugin. - * - *
- * 
- * SOFTWARE HISTORY
- *                     
- * Date          Ticket#  Engineer    Description
- * ------------- -------- ----------- --------------------------
- * Oct 07, 2009           vkorolev    Initial creation
- * Apr 04, 2013  1846     bkowal      Added an index on refTime and
- *                                    forecastTime
- * Apr 12, 2013  1857     bgonzale    Added SequenceGenerator annotation.
- * May 07, 2013  1869     bsteffen    Remove dataURI column from
- *                                    PluginDataObject.
- * Aug 30, 2013  2298     rjpeter     Make getPluginName abstract
- * Jun 11, 2014  2061     bsteffen    Remove IDecoderGettable
- * 
- * 
- * - * @author vkorolev - * @version 1 - */ - -@Entity -@SequenceGenerator(initialValue = 1, name = PluginDataObject.ID_GEN, sequenceName = "ldadprofilerseq") -@Table(name = "ldadprofiler", uniqueConstraints = { @UniqueConstraint(columnNames = { "dataURI" }) }) -/* - * Both refTime and forecastTime are included in the refTimeIndex since - * forecastTime is unlikely to be used. - */ -@org.hibernate.annotations.Table(appliesTo = "ldadprofiler", indexes = { @Index(name = "ldadprofiler_refTimeIndex", columnNames = { - "refTime", "forecastTime" }) }) -@XmlRootElement -@XmlAccessorType(XmlAccessType.NONE) -@DynamicSerialize -public class ProfilerLdadObs extends PersistablePluginDataObject implements - IPointData, IPersistable { - - public static final String PLUGIN_NAME = "ldadprofiler"; - - private static final long serialVersionUID = 1L; - - - private static final String PRESS = "PRESS"; - - private static final String AGL = "AGL"; - - public static final String PRESS_PARAM_PTRN = ".*:" + PRESS + "=\\d{2,4}"; - - public static final String AGL_PARAM_PTRN = ".*:" + AGL + "=\\d{2,4}"; - - @Transient - private String parameterName = null; - - @DataURI(position = 1) - @XmlAttribute - @DynamicSerializeElement - private Integer reportType; - - // Location - @Embedded - @DataURI(position = 2, embedded = true) - @XmlElement - @DynamicSerializeElement - private SurfaceObsLocation location; // latitude, longitude, elevation, - - // stationId - - // Base time in Epoch "seconds since 1970-01-01 00:00:00 UTC" - @Column - @DynamicSerializeElement - @XmlElement - int base_time; - - // Consensus start time offset from base_time - // "seconds since 2009/10/07 00:00:00 UTC" - @Column - @DynamicSerializeElement - @XmlElement - double start_time_offset; - - // Consensus end time offset from base_time - // "seconds since 2009/10/07 00:00:00 UTC" - @Column - @DynamicSerializeElement - @XmlElement - double end_time_offset; - - // nhts Number of heights? - @Column - @DynamicSerializeElement - @XmlElement - int nhts; - - // the level data - @XmlElement - @DynamicSerializeElement - @Transient - private List levels; - - // The profiler observation time. - @Column - @XmlAttribute - @DynamicSerializeElement - private Calendar timeObs; - - @Column - @XmlAttribute - @DynamicSerializeElement - private String stationName; - - @Embedded - @DynamicSerializeElement - private PointDataView pointDataView; - - /** - * @return the base_time - */ - public int getBase_time() { - return base_time; - } - - /** - * @param base_time - * the base_time to set - */ - public void setBase_time(int base_time) { - this.base_time = base_time; - } - - public Calendar getTimeObs() { - return timeObs; - } - - public void setTimeObs(Calendar timeObs) { - this.timeObs = timeObs; - } - - /** - * @return the start_time_offset - */ - public double getStart_time_offset() { - return start_time_offset; - } - - /** - * @param start_time_offset - * the start_time_offset to set - */ - public void setStart_time_offset(double start_time_offset) { - this.start_time_offset = start_time_offset; - } - - /** - * @return the end_time_offset - */ - public double getEnd_time_offset() { - return end_time_offset; - } - - /** - * @param end_time_offset - * the end_time_offset to set - */ - public void setEnd_time_offset(double end_time_offset) { - this.end_time_offset = end_time_offset; - } - - /** - * @return the nhts - */ - public int getNhts() { - return nhts; - } - - /** - * @param nhts - * the nhts to set - */ - public void setNhts(int nhts) { - this.nhts = nhts; - } - - /** - * @return the levels - */ - public List getLevels() { - return levels; - } - - /** - * @param levels - * the levels to set - */ - public void setLevels(List levels) { - this.levels = levels; - } - - /** - * @return the pointDataView - */ - @Override - public PointDataView getPointDataView() { - return pointDataView; - } - - public ProfilerLdadObs() { - } - - /** - * @param pointDataView - * the pointDataView to set - */ - @Override - public void setPointDataView(PointDataView pointDataView) { - this.pointDataView = pointDataView; - } - - // ---------------------------------------------------- - - /** - * @param location - * the location to set - */ - public void setLocation(SurfaceObsLocation location) { - this.location = location; - } - - /** - * @return the location - */ - public SurfaceObsLocation getLocation() { - return location; - } - - /** - * @param stationName - * the stationName to set - */ - public void setStationName(String stationName) { - this.stationName = stationName; - } - - /** - * @return the stationName - */ - public String getStationName() { - return stationName; - } - - /** - * @param parameterName - * the parameterName to set - */ - public void setParameterName(String parameterName) { - this.parameterName = parameterName; - } - - /** - * @return the parameterName - */ - public String getParameterName() { - return parameterName; - } - - /** - * @param reportType - * the reportType to set - */ - public void setReportType(Integer reportType) { - this.reportType = reportType; - } - - /** - * @return the reportType - */ - public Integer getReportType() { - return reportType; - } - - @Override - @Column - @Access(AccessType.PROPERTY) - public String getDataURI() { - return super.getDataURI(); - } - - @Override - public String getPluginName() { - return PLUGIN_NAME; - } -} diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/src/com/raytheon/edex/plugin/ldadprofiler/dao/LdadProfilerDao.java b/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/src/com/raytheon/edex/plugin/ldadprofiler/dao/LdadProfilerDao.java deleted file mode 100644 index d223c71a11..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/src/com/raytheon/edex/plugin/ldadprofiler/dao/LdadProfilerDao.java +++ /dev/null @@ -1,90 +0,0 @@ -/** - * This software was developed and / or modified by Raytheon Company, - * pursuant to Contract DG133W-05-CQ-1067 with the US Government. - * - * U.S. EXPORT CONTROLLED TECHNICAL DATA - * This software product contains export-restricted data whose - * export/transfer/disclosure is restricted by U.S. law. Dissemination - * to non-U.S. persons whether in the United States or abroad requires - * an export license or other authorization. - * - * Contractor Name: Raytheon Company - * Contractor Address: 6825 Pine Street, Suite 340 - * Mail Stop B8 - * Omaha, NE 68106 - * 402.291.0100 - * - * See the AWIPS II Master Rights File ("Master Rights File.pdf") for - * further licensing information. - **/ -package com.raytheon.edex.plugin.ldadprofiler.dao; - -import java.sql.SQLException; -import java.util.List; - -import com.raytheon.edex.plugin.ldadprofiler.common.ProfilerLdadObs; -import com.raytheon.uf.common.dataplugin.PluginException; -import com.raytheon.uf.edex.database.DataAccessLayerException; -import com.raytheon.uf.edex.pointdata.PointDataPluginDao; - -/** - * Data access object for accessing LDAD Profiler records in the database. - * - *
- * 
- * SOFTWARE HISTORY
- * 
- * Date         Ticket#     Engineer    Description
- * ------------ ----------  ----------- --------------------------
- * 10/07/09                   vkorolev    Initial creation
- * 
- * 
- * - * @author vkorolev - * @version 1 - */ - -public class LdadProfilerDao extends PointDataPluginDao { - - public LdadProfilerDao(String pluginName) throws PluginException { - super(pluginName); - } - - public LdadProfilerDao() throws PluginException, SQLException { - this("ldadprofiler"); - } - /** - * @param dataURI - * @return - */ - public ProfilerLdadObs queryByDataURI(String dataURI) { - ProfilerLdadObs report = null; - List obs = null; - try { - obs = queryBySingleCriteria("dataURI", dataURI); - } catch (DataAccessLayerException e) { - e.printStackTrace(); - } - if ((obs != null) && (obs.size() > 0)) { - report = (ProfilerLdadObs) obs.get(0); - } - return report; - } - - @Override - public String[] getKeysRequiredForFileName() { - return new String[] { "dataTime.refTime" }; - } - - @Override - public String getPointDataFileName(ProfilerLdadObs p) { - return "ldadprofiler.h5"; - } - - @Override - public ProfilerLdadObs newObject() { - return new ProfilerLdadObs(); - } -} - - diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/utility/common_static/base/purge/ldadprofilerPurgeRules.xml b/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/utility/common_static/base/purge/ldadprofilerPurgeRules.xml deleted file mode 100644 index 1182b36c71..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/utility/common_static/base/purge/ldadprofilerPurgeRules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - 24 - =00-01:00:00 - 00-01:00:00 - - diff --git a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/utility/edex_static/base/distribution/ldadprofiler.xml b/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/utility/edex_static/base/distribution/ldadprofiler.xml deleted file mode 100644 index bec737c524..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.ldadprofiler/utility/edex_static/base/distribution/ldadprofiler.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - LDAD\.profiler\.* - diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/.classpath b/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/.classpath deleted file mode 100644 index ad32c83a78..0000000000 --- a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/.project b/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/.project deleted file mode 100644 index 2b71da2839..0000000000 --- a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - com.raytheon.uf.common.dataplugin.ldadhydro - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/META-INF/MANIFEST.MF b/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/META-INF/MANIFEST.MF deleted file mode 100644 index 37bcf00663..0000000000 --- a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/META-INF/MANIFEST.MF +++ /dev/null @@ -1,21 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: Ldadhydro -Bundle-SymbolicName: com.raytheon.uf.common.dataplugin.ldadhydro -Bundle-Version: 1.14.0.qualifier -Bundle-Vendor: RAYTHEON -Bundle-RequiredExecutionEnvironment: JavaSE-1.7 -Import-Package: com.raytheon.uf.common.dataplugin, - com.raytheon.uf.common.dataplugin.annotations, - com.raytheon.uf.common.dataplugin.persist, - com.raytheon.uf.common.geospatial, - com.raytheon.uf.common.pointdata, - com.raytheon.uf.common.pointdata.spatial, - com.raytheon.uf.common.serialization.annotations, - com.raytheon.uf.common.time, - com.vividsolutions.jts.geom, - javax.measure.quantity, - javax.measure.unit, - javax.persistence -Export-Package: com.raytheon.uf.common.dataplugin.ldadhydro -Require-Bundle: org.hibernate;bundle-version="1.0.0" diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/build.properties b/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/build.properties deleted file mode 100644 index 544aa7de88..0000000000 --- a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/build.properties +++ /dev/null @@ -1,5 +0,0 @@ -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - .,\ - utility/ diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/com.raytheon.uf.common.dataplugin.ldadhydro.ecl b/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/com.raytheon.uf.common.dataplugin.ldadhydro.ecl deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/src/com/raytheon/uf/common/dataplugin/ldadhydro/HydroLdadRecord.java b/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/src/com/raytheon/uf/common/dataplugin/ldadhydro/HydroLdadRecord.java deleted file mode 100644 index 392ec96238..0000000000 --- a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/src/com/raytheon/uf/common/dataplugin/ldadhydro/HydroLdadRecord.java +++ /dev/null @@ -1,1036 +0,0 @@ -package com.raytheon.uf.common.dataplugin.ldadhydro; - -/** - * This software was developed and / or modified by Raytheon Company, - * pursuant to Contract DG133W-05-CQ-1067 with the US Government. - * - * U.S. EXPORT CONTROLLED TECHNICAL DATA - * This software product contains export-restricted data whose - * export/transfer/disclosure is restricted by U.S. law. Dissemination - * to non-U.S. persons whether in the United States or abroad requires - * an export license or other authorization. - * - * Contractor Name: Raytheon Company - * Contractor Address: 6825 Pine Street, Suite 340 - * Mail Stop B8 - * Omaha, NE 68106 - * 402.291.0100 - * - * See the AWIPS II Master Rights File ("Master Rights File.pdf") for - * further licensing information. - **/ - -import java.util.Calendar; - -import javax.measure.quantity.Angle; -import javax.measure.quantity.Length; -import javax.measure.quantity.Pressure; -import javax.measure.quantity.Temperature; -import javax.measure.quantity.Velocity; -import javax.measure.unit.NonSI; -import javax.measure.unit.SI; -import javax.measure.unit.Unit; -import javax.persistence.Access; -import javax.persistence.AccessType; -import javax.persistence.Column; -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; -import javax.persistence.UniqueConstraint; - -import org.hibernate.annotations.Index; - -import com.raytheon.uf.common.dataplugin.PluginDataObject; -import com.raytheon.uf.common.dataplugin.annotations.DataURI; -import com.raytheon.uf.common.dataplugin.persist.IPersistable; -import com.raytheon.uf.common.dataplugin.persist.PersistablePluginDataObject; -import com.raytheon.uf.common.geospatial.ISpatialEnabled; -import com.raytheon.uf.common.pointdata.IPointData; -import com.raytheon.uf.common.pointdata.PointDataView; -import com.raytheon.uf.common.pointdata.spatial.SurfaceObsLocation; -import com.raytheon.uf.common.serialization.annotations.DynamicSerialize; -import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement; -import com.vividsolutions.jts.geom.Geometry; - -/** - * Record implementation for ldadhydro plugin. - * - *
- * 
- * SOFTWARE HISTORY
- *                     
- * Date          Ticket#     Engineer    Description
- * -----------  ----------  ----------- --------------------------
- * Sep 30, 2009             vkorolev    Initial creation
- * Apr 04, 2013 1846        bkowal      Added an index on refTime and
- *                                      forecastTime
- * Apr 12, 2013 1857        bgonzale    Added SequenceGenerator annotation.
- * May 07, 2013 1869        bsteffen    Remove dataURI column from
- *                                      PluginDataObject.
- * Aug 30, 2013 2298        rjpeter     Make getPluginName abstract
- * Oct 15, 2013 2361        njensen     Remove XML annotations and IDecoderGettable
- * 
- * 
- * - * @author vkorolev - * @version 1 - */ - -@Entity -@SequenceGenerator(initialValue = 1, name = PluginDataObject.ID_GEN, sequenceName = "ldadhydroseq") -@Table(name = "ldadhydro", uniqueConstraints = { @UniqueConstraint(columnNames = { "dataURI" }) }) -/* - * Both refTime and forecastTime are included in the refTimeIndex since - * forecastTime is unlikely to be used. - */ -@org.hibernate.annotations.Table(appliesTo = "ldadhydro", indexes = { @Index(name = "ldadhydro_refTimeIndex", columnNames = { - "refTime", "forecastTime" }) }) -@DynamicSerialize -public class HydroLdadRecord extends PersistablePluginDataObject implements - ISpatialEnabled, IPointData, IPersistable { - - private static final long serialVersionUID = 1L; - - public static final String OBS_TEXT = "text"; - - public static final Unit LENGTH_UNIT = SI.METER; - - public static final Unit TEMPERATURE_UNIT = SI.KELVIN; - - public static final Unit WIND_SPEED_UNIT = SI.METERS_PER_SECOND; - - public static final Unit WIND_DIR_UNIT = NonSI.DEGREE_ANGLE; - - public static final Unit PRESSURE_UNIT = SI.PASCAL; - - public static final Unit LOCATION_UNIT = NonSI.DEGREE_ANGLE; - - // Time of the observation. - @DataURI(position = 2) - @Column - @DynamicSerializeElement - private Calendar observationTime; - - // numeric WMO identification number - @Column - @DynamicSerializeElement - private long numericWMOid; - - // latitude, longitude, elevation, stationId="RALC2" - @Embedded - @DataURI(position = 3, embedded = true) - @DynamicSerializeElement - private SurfaceObsLocation location; - - // Data Provider station Id - @Column - @DynamicSerializeElement - private String providerId; // * "110" "FA6026DA" - - @Column - @DynamicSerializeElement - private String stationName; // * "Ralston_Res" - - // Handbook Id (AFOS id or SHEF id) - @Column - @DynamicSerializeElement - private String handbook5Id; - - // Home WFO Id for the LDAD data - @Column - @DynamicSerializeElement - private String homeWFO; - - // LDAD hydro station type. - @Column - @DynamicSerializeElement - private String stationType; - - // LDAD hydro data provider - @DataURI(position = 1) - @Column - @DynamicSerializeElement - private String dataProvider; - - // time data was processed by the provider - @Column - @DynamicSerializeElement - private double reportTime; // * 1.247436157E9 - - // * time data was received - @Column - @DynamicSerializeElement - private Double receivedTime; // seconds since 1-1-1970 - - // Below surface - @Column - @DynamicSerializeElement - private Float belowSurface; // meter - - // River stage - @Column - @DynamicSerializeElement - private Float riverStage; // meter - - // Pool elevation - @Column - @DynamicSerializeElement - private Float poolElevation; // meter - - // Tail water stage - @Column - @DynamicSerializeElement - private Float tailwaterStage; // meter - - // River velocity - @Column - @DynamicSerializeElement - private Float riverVelocity; // kph - - // River inflow - @Column - @DynamicSerializeElement - private Float riverInflow; // meter^3 / sec - - // River flow - @Column - @DynamicSerializeElement - private Float riverFlow; // meter^3 / sec - - // Computed outflow - @Column - @DynamicSerializeElement - private Float computedOutflow; // meter^3 / sec - - // Water temperature - @Column - @DynamicSerializeElement - private Float waterTemperature; // kelvin - - // Battery voltage - @Column - @DynamicSerializeElement - private Float voltageBattery; // volt - - // Water conductance - @Column - @DynamicSerializeElement - private Float waterConductance; // umhos/cm - - // Water oxygen - @Column - @DynamicSerializeElement - private Float waterOxygen; // mg/l - - // Water PH - @Column - @DynamicSerializeElement - private Float waterPH; // pH - - // Relative humidity - @Column - @DynamicSerializeElement - private Float relHumidity; - - // River stage & flow - time of last change (ALERT) - @Column - @DynamicSerializeElement - private Double riverReportChangeTime; // seconds since 1970-1-1 00:00:00.0 - - // Observation air temperature in degrees Kelvin. - @Column - @DynamicSerializeElement - private Float temperature; - - // Observation dewpoint temperature in degrees Kelvin. - @Column - @DynamicSerializeElement - private Float dewpoint; - - // Observation wind direction in angular degrees. - @Column - @DynamicSerializeElement - private Float windDir; - - // Observation wind speed in meters per second. - @Column - @DynamicSerializeElement - private Float windSpeed; - - // Wind speed peak - @Column - @DynamicSerializeElement - private Float windSpeedPeak; - - // Observation wind gust in meters per second. - @Column - @DynamicSerializeElement - private Double windGust; - - // precip accumulation with an unknown time period in mm. - @Column - @DynamicSerializeElement - private Float precipAccum; // mm - - // 5 minute precip accumulation - @Column - @DynamicSerializeElement - private Float precip5min; // mm - - // 1 hour precip accumulation - @Column - @DynamicSerializeElement - private Float precip1hr; // mm - - // 3 hour precip accumulation - @Column - @DynamicSerializeElement - private Float precip3hr; // float precip3hr mm - - // 6 hour precip accumulation - @Column - @DynamicSerializeElement - private Float precip6hr; // float precip6hr mm - - // 12 hour precip accumulation mm - @Column - @DynamicSerializeElement - private Float precip12hr; - - // 18 hour precip accumulation mm - @Column - @DynamicSerializeElement - private Float precip18hr; - - // 24 hour precip accumulation - @Column - @DynamicSerializeElement - private Float precip24hr; // mm - - // Raw text LDAD hydro report - @Column - @DynamicSerializeElement - private String rawMessage; - - private PointDataView pointDataView; - - /** - * - */ - public HydroLdadRecord() { - } - - /** - * Constructor for DataURI construction through base class. This is used by - * the notification service. - * - * @param uri - * A data uri applicable to this class. - */ - public HydroLdadRecord(String uri) { - super(uri); - } - - /** - * Get this observation's geometry. - * - * @return The geometry for this observation. - */ - public Geometry getGeometry() { - return location.getGeometry(); - } - - /** - * Get the geometry latitude. - * - * @return The geometry latitude. - */ - public double getLatitude() { - return location.getLatitude(); - } - - /** - * Get the geometry longitude. - * - * @return The geometry longitude. - */ - public double getLongitude() { - return location.getLongitude(); - } - - /** - * Get the station identifier for this observation. - * - * @return the stationId - */ - public String getStationId() { - return location.getStationId(); - } - - /** - * Get the elevation, in meters, of the observing platform or location. - * - * @return The observation elevation, in meters. - */ - public Integer getElevation() { - return location.getElevation(); - } - - /** - * @return the location - */ - public SurfaceObsLocation getLocation() { - return location; - } - - /** - * @param location - * the location to set - */ - public void setLocation(SurfaceObsLocation location) { - this.location = location; - } - - /** - * @return the timeObs - */ - public Calendar getObservationTime() { - return observationTime; - } - - /** - * @param observationTime - * the observationTime to set - */ - public void setObservationTime(Calendar timeObs) { - this.observationTime = timeObs; - } - - /** - * @return the windSpeed - */ - public Float getWindSpeed() { - return windSpeed; - } - - /** - * @param windSpeed - * the windSpeed to set - */ - public void setWindSpeed(Float windSpeed) { - this.windSpeed = windSpeed; - } - - /** - * @return the windGust - */ - public Double getWindGust() { - return windGust; - } - - /** - * @param windGust - * the windGust to set - */ - public void setWindGust(Double windGust) { - this.windGust = windGust; - } - - /** - * - */ - public void setSpatialObject(SurfaceObsLocation loc) { - location = loc; - } - - /** - * - */ - @Override - public SurfaceObsLocation getSpatialObject() { - return location; - } - - /** - /** - * @param providerId - * the providerId to set - */ - public void setProviderId(String providerId) { - this.providerId = providerId; - } - - /** - * @return the providerId - */ - public String getProviderId() { - return providerId; - } - - /** - * @param stationName - * the stationName to set - */ - public void setStationName(String stationName) { - this.stationName = stationName; - } - - /** - * @return the stationName - */ - public String getStationName() { - return stationName; - } - - /** - * @param handbook5Id - * the handbook5Id to set - */ - public void setHandbook5Id(String handbook5Id) { - this.handbook5Id = handbook5Id; - } - - /** - * @return the handbook5Id - */ - public String getHandbook5Id() { - return handbook5Id; - } - - /** - * @param homeWFO - * the homeWFO to set - */ - public void setHomeWFO(String homeWFO) { - this.homeWFO = homeWFO; - } - - /** - * @return the homeWFO - */ - public String getHomeWFO() { - return homeWFO; - } - - /** - * @param stationType - * the stationType to set - */ - public void setStationType(String stationType) { - this.stationType = stationType; - } - - /** - * @return the stationType - */ - public String getStationType() { - return stationType; - } - - /** - * @param dataProvider - * the dataProvider to set - */ - public void setDataProvider(String dataProvider) { - this.dataProvider = dataProvider; - } - - /** - * @return the dataProvider - */ - public String getDataProvider() { - return dataProvider; - } - - /** - * @param receivedTime - * the receivedTime to set - */ - public void setReceivedTime(Double receivedTime) { - this.receivedTime = receivedTime; - } - - /** - * @return the receivedTime - */ - public Double getReceivedTime() { - return receivedTime; - } - - /** - * @param belowSurface - * the belowSurface to set - */ - public void setBelowSurface(Float belowSurface) { - this.belowSurface = belowSurface; - } - - /** - * @return the belowSurface - */ - public Float getBelowSurface() { - return belowSurface; - } - - /** - * @param riverStage - * the riverStage to set - */ - public void setRiverStage(Float riverStage) { - this.riverStage = riverStage; - } - - /** - * @return the riverStage - */ - public Float getRiverStage() { - return riverStage; - } - - /** - * @param poolElevation - * the poolElevation to set - */ - public void setPoolElevation(Float poolElevation) { - this.poolElevation = poolElevation; - } - - /** - * @return the poolElevation - */ - public Float getPoolElevation() { - return poolElevation; - } - - /** - * @param tailwaterStage - * the tailwaterStage to set - */ - public void setTailwaterStage(Float tailwaterStage) { - this.tailwaterStage = tailwaterStage; - } - - /** - * @return the tailwaterStage - */ - public Float getTailwaterStage() { - return tailwaterStage; - } - - /** - * @param riverVelocity - * the riverVelocity to set - */ - public void setRiverVelocity(Float riverVelocity) { - this.riverVelocity = riverVelocity; - } - - /** - * @return the riverVelocity - */ - public Float getRiverVelocity() { - return riverVelocity; - } - - /** - * @param riverInflow - * the riverInflow to set - */ - public void setRiverInflow(Float riverInflow) { - this.riverInflow = riverInflow; - } - - /** - * @return the riverInflow - */ - public Float getRiverInflow() { - return riverInflow; - } - - /** - * @param riverFlow - * the riverFlow to set - */ - public void setRiverFlow(Float riverFlow) { - this.riverFlow = riverFlow; - } - - /** - * @return the riverFlow - */ - public Float getRiverFlow() { - return riverFlow; - } - - /** - * @param computedOutflow - * the computedOutflow to set - */ - public void setComputedOutflow(Float computedOutflow) { - this.computedOutflow = computedOutflow; - } - - /** - * @return the computedOutflow - */ - public Float getComputedOutflow() { - return computedOutflow; - } - - /** - * @param waterTemperature - * the waterTemperature to set - */ - public void setWaterTemperature(Float waterTemperature) { - this.waterTemperature = waterTemperature; - } - - /** - * @return the waterTemperature - */ - public Float getWaterTemperature() { - return waterTemperature; - } - - /** - * @param voltageBattery - * the voltageBattery to set - */ - public void setVoltageBattery(Float voltageBattery) { - this.voltageBattery = voltageBattery; - } - - /** - * @return the voltageBattery - */ - public Float getVoltageBattery() { - return voltageBattery; - } - - /** - * @param waterConductance - * the waterConductance to set - */ - public void setWaterConductance(Float waterConductance) { - this.waterConductance = waterConductance; - } - - /** - * @return the waterConductance - */ - public Float getWaterConductance() { - return waterConductance; - } - - /** - * @param waterOxygen - * the waterOxygen to set - */ - public void setWaterOxygen(Float waterOxygen) { - this.waterOxygen = waterOxygen; - } - - /** - * @return the waterOxygen - */ - public Float getWaterOxygen() { - return waterOxygen; - } - - /** - * @param waterPH - * the waterPH to set - */ - public void setWaterPH(Float waterPH) { - this.waterPH = waterPH; - } - - /** - * @return the waterPH - */ - public Float getWaterPH() { - return waterPH; - } - - /** - * @param riverReportChangeTime - * the riverReportChangeTime to set - */ - public void setRiverReportChangeTime(Double riverReportChangeTime) { - this.riverReportChangeTime = riverReportChangeTime; - } - - /** - * @return the riverReportChangeTime - */ - public Double getRiverReportChangeTime() { - return riverReportChangeTime; - } - - /** - * @param precip12hr - * the precip12hr to set - */ - public void setPrecip12hr(Float precip12hr) { - this.precip12hr = precip12hr; - } - - /** - * @return the precip12hr - */ - public Float getPrecip12hr() { - return precip12hr; - } - - /** - * @param precip18hr - * the precip18hr to set - */ - public void setPrecip18hr(Float precip18hr) { - this.precip18hr = precip18hr; - } - - /** - * @return the precip18hr - */ - public Float getPrecip18hr() { - return precip18hr; - } - - /** - * @param temperature - * the temperature to set - */ - public void setTemperature(Float temperature) { - this.temperature = temperature; - } - - /** - * @return the temperature - */ - public Float getTemperature() { - return temperature; - } - - /** - * @param dewpoint - * the dewpoint to set - */ - public void setDewpoint(Float dewpoint) { - this.dewpoint = dewpoint; - } - - /** - * @return the dewpoint - */ - public Float getDewpoint() { - return dewpoint; - } - - /** - * @param windDir - * the windDir to set - */ - public void setWindDir(Float windDir) { - this.windDir = windDir; - } - - /** - * @return the windDir - */ - public Float getWindDir() { - return windDir; - } - - /** - * @param windSpeedPeak - * the windSpeedPeak to set - */ - public void setWindSpeedPeak(Float windSpeedPeak) { - this.windSpeedPeak = windSpeedPeak; - } - - /** - * @return the windSpeedPeak - */ - public Float getWindSpeedPeak() { - return windSpeedPeak; - } - - /** - * @param precipAccum - * the precipAccum to set - */ - public void setPrecipAccum(Float precipAccum) { - this.precipAccum = precipAccum; - } - - /** - * @return the precipAccum - */ - public Float getPrecipAccum() { - return precipAccum; - } - - /** - * @param precip5min - * the precip5min to set - */ - public void setPrecip5min(Float precip5min) { - this.precip5min = precip5min; - } - - /** - * @return the precip5min - */ - public Float getPrecip5min() { - return precip5min; - } - - /** - * @param precip1hr - * the precip1hr to set - */ - public void setPrecip1hr(Float precip1hr) { - this.precip1hr = precip1hr; - } - - /** - * @return the precip1hr - */ - public Float getPrecip1hr() { - return precip1hr; - } - - /** - * @param precip3hr - * the precip3hr to set - */ - public void setPrecip3hr(Float precip3hr) { - this.precip3hr = precip3hr; - } - - /** - * @return the precip3hr - */ - public Float getPrecip3hr() { - return precip3hr; - } - - /** - * @param precip6hr - * the precip6hr to set - */ - public void setPrecip6hr(Float precip6hr) { - this.precip6hr = precip6hr; - } - - /** - * @return the precip6hr - */ - public Float getPrecip6hr() { - return precip6hr; - } - - /** - * @param precip24hr - * the precip24hr to set - */ - public void setPrecip24hr(Float precip24hr) { - this.precip24hr = precip24hr; - } - - /** - * @return the precip24hr - */ - public Float getPrecip24hr() { - return precip24hr; - } - - /** - * @param rawMessage - * the rawMessage to set - */ - public void setRawMessage(String rawMessage) { - this.rawMessage = rawMessage; - } - - /** - * @return the rawMessage - */ - public String getRawMessage() { - return rawMessage; - } - - /** - * @param relHumidity - * the relHumidity to set - */ - public void setRelHumidity(Float relHumidity) { - this.relHumidity = relHumidity; - } - - /** - * @return the relHumidity - */ - public Float getRelHumidity() { - return relHumidity; - } - - /** - * @param numericWMOid - * the numericWMOid to set - */ - public void setNumericWMOid(long numericWMOid) { - this.numericWMOid = numericWMOid; - } - - /** - * @return the numericWMOid - */ - public long getNumericWMOid() { - return numericWMOid; - } - - /** - * @param l - * the reportTime to set - */ - public void setReportTime(long l) { - this.reportTime = l; - } - - /** - * @return the reportTime - */ - public Double getReportTime() { - return reportTime; - } - - @Override - public void setPointDataView(PointDataView pointDataView) { - this.pointDataView = pointDataView; - - } - - /** - * @return the pointDataView - */ - @Override - public PointDataView getPointDataView() { - return this.pointDataView; - } - - @Override - @Column - @Access(AccessType.PROPERTY) - public String getDataURI() { - return super.getDataURI(); - } - - @Override - public String getPluginName() { - return "ldadhydro"; - } -} diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precip15min.xml b/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precip15min.xml deleted file mode 100644 index e066fba834..0000000000 --- a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precip15min.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precip30min.xml b/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precip30min.xml deleted file mode 100644 index 58992b7272..0000000000 --- a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precip30min.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precipAccum15min.xml b/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precipAccum15min.xml deleted file mode 100644 index bbc6483a99..0000000000 --- a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precipAccum15min.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precipAccum1hr.xml b/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precipAccum1hr.xml deleted file mode 100644 index 44ad688f31..0000000000 --- a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precipAccum1hr.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precipAccum30min.xml b/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precipAccum30min.xml deleted file mode 100644 index 22cc25b6f0..0000000000 --- a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precipAccum30min.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precipAccum3hr.xml b/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precipAccum3hr.xml deleted file mode 100644 index 2f56dde535..0000000000 --- a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precipAccum3hr.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precipAccum5min.xml b/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precipAccum5min.xml deleted file mode 100644 index 7873e025b4..0000000000 --- a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/accum_precipAccum5min.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/lh_precip15min.xml b/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/lh_precip15min.xml deleted file mode 100644 index 112926f495..0000000000 --- a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/lh_precip15min.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/lh_precip1hr.xml b/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/lh_precip1hr.xml deleted file mode 100644 index d1f6b5e2bb..0000000000 --- a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/lh_precip1hr.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/lh_precip30min.xml b/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/lh_precip30min.xml deleted file mode 100644 index 3e6317e885..0000000000 --- a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/lh_precip30min.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/lh_precip3hr.xml b/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/lh_precip3hr.xml deleted file mode 100644 index 3eaec5e173..0000000000 --- a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/lh_precip3hr.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/lh_precip5min.xml b/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/lh_precip5min.xml deleted file mode 100644 index 5f3e2a355a..0000000000 --- a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadhydro/utility/common_static/base/derivedParameters/definitions/lh_precip5min.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadmesonet/.classpath b/edexOsgi/com.raytheon.uf.common.dataplugin.ldadmesonet/.classpath deleted file mode 100644 index 1fa3e6803d..0000000000 --- a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadmesonet/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadmesonet/.project b/edexOsgi/com.raytheon.uf.common.dataplugin.ldadmesonet/.project deleted file mode 100644 index 825bff20ee..0000000000 --- a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadmesonet/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - com.raytheon.uf.common.dataplugin.ldadmesonet - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadmesonet/META-INF/MANIFEST.MF b/edexOsgi/com.raytheon.uf.common.dataplugin.ldadmesonet/META-INF/MANIFEST.MF deleted file mode 100644 index f26e622d82..0000000000 --- a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadmesonet/META-INF/MANIFEST.MF +++ /dev/null @@ -1,15 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: Ldadmesonet Plug-in -Bundle-SymbolicName: com.raytheon.uf.common.dataplugin.ldadmesonet -Bundle-Version: 1.15.0.qualifier -Bundle-Vendor: RAYTHEON -Bundle-RequiredExecutionEnvironment: JavaSE-1.7 -Import-Package: com.raytheon.uf.common.geospatial, - com.raytheon.uf.common.serialization.annotations, - com.vividsolutions.jts.geom -Export-Package: com.raytheon.uf.common.dataplugin.ldadmesonet -Require-Bundle: javax.persistence, - com.raytheon.uf.common.dataplugin, - com.raytheon.uf.common.pointdata, - com.raytheon.uf.common.dataaccess diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadmesonet/build.properties b/edexOsgi/com.raytheon.uf.common.dataplugin.ldadmesonet/build.properties deleted file mode 100644 index 5791d48d5f..0000000000 --- a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadmesonet/build.properties +++ /dev/null @@ -1,5 +0,0 @@ -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - .,\ - res/ diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadmesonet/com.raytheon.uf.common.dataplugin.ldadmesonet.ecl b/edexOsgi/com.raytheon.uf.common.dataplugin.ldadmesonet/com.raytheon.uf.common.dataplugin.ldadmesonet.ecl deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadmesonet/res/spring/ldadmesonet-common-dataaccess.xml b/edexOsgi/com.raytheon.uf.common.dataplugin.ldadmesonet/res/spring/ldadmesonet-common-dataaccess.xml deleted file mode 100644 index 8d28ae6c63..0000000000 --- a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadmesonet/res/spring/ldadmesonet-common-dataaccess.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadmesonet/src/com/raytheon/uf/common/dataplugin/ldadmesonet/MesonetLdadRecord.java b/edexOsgi/com.raytheon.uf.common.dataplugin.ldadmesonet/src/com/raytheon/uf/common/dataplugin/ldadmesonet/MesonetLdadRecord.java deleted file mode 100644 index 0889f89703..0000000000 --- a/edexOsgi/com.raytheon.uf.common.dataplugin.ldadmesonet/src/com/raytheon/uf/common/dataplugin/ldadmesonet/MesonetLdadRecord.java +++ /dev/null @@ -1,1666 +0,0 @@ -/** - * This software was developed and / or modified by Raytheon Company, - * pursuant to Contract DG133W-05-CQ-1067 with the US Government. - * - * U.S. EXPORT CONTROLLED TECHNICAL DATA - * This software product contains export-restricted data whose - * export/transfer/disclosure is restricted by U.S. law. Dissemination - * to non-U.S. persons whether in the United States or abroad requires - * an export license or other authorization. - * - * Contractor Name: Raytheon Company - * Contractor Address: 6825 Pine Street, Suite 340 - * Mail Stop B8 - * Omaha, NE 68106 - * 402.291.0100 - * - * See the AWIPS II Master Rights File ("Master Rights File.pdf") for - * further licensing information. - **/ -package com.raytheon.uf.common.dataplugin.ldadmesonet; - -import java.util.Calendar; -import java.util.TimeZone; - -import javax.persistence.Column; -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; -import javax.persistence.Transient; -import javax.persistence.UniqueConstraint; - -import org.hibernate.annotations.Index; - -import com.raytheon.uf.common.dataplugin.PluginDataObject; -import com.raytheon.uf.common.dataplugin.annotations.DataURI; -import com.raytheon.uf.common.dataplugin.persist.IPersistable; -import com.raytheon.uf.common.dataplugin.persist.PersistablePluginDataObject; -import com.raytheon.uf.common.geospatial.ISpatialEnabled; -import com.raytheon.uf.common.pointdata.IPointData; -import com.raytheon.uf.common.pointdata.PointDataView; -import com.raytheon.uf.common.pointdata.spatial.SurfaceObsLocation; -import com.raytheon.uf.common.serialization.annotations.DynamicSerialize; -import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement; -import com.vividsolutions.jts.geom.Geometry; - -/** - * Record implementation for ldadmesonet plugin. - * - *
- * 
- * SOFTWARE HISTORY
- *                     
- * Date          Ticket#     Engineer    Description
- * -----------  ----------  ----------- --------------------------
- * Sep 04, 2009             vkorolev    Initial creation
- * Apr 04, 2013 1846        bkowal      Added an index on refTime and
- *                                      forecastTime
- * Apr 12, 2013 1857        bgonzale    Added SequenceGenerator annotation.
- * May 07, 2013 1869        bsteffen    Remove dataURI column from
- *                                      PluginDataObject.
- * May 15, 2013 1869        bsteffen    Remove DataURI column from ldadmesonet.
- * Aug 30, 2013 2298        rjpeter     Make getPluginName abstract
- * 
- * 
- * - * @author vkorolev - * @version 1 - */ - -@Entity -@SequenceGenerator(initialValue = 1, name = PluginDataObject.ID_GEN, sequenceName = "ldadmesonetseq") -@Table(name = "ldadmesonet", uniqueConstraints = { @UniqueConstraint(columnNames = { - "stationid", "reftime", "reportType", "dataProvider", "latitude", - "longitude" }) }) -/* - * Both refTime and forecastTime are included in the refTimeIndex since - * forecastTime is unlikely to be used. - */ -@org.hibernate.annotations.Table(appliesTo = "ldadmesonet", indexes = { @Index(name = "ldadmesonet_refTimeIndex", columnNames = { - "refTime", "forecastTime" }) }) -@DynamicSerialize -public class MesonetLdadRecord extends PersistablePluginDataObject implements - ISpatialEnabled, IPointData, IPersistable { - - private static final long serialVersionUID = 1L; - - private static final String OBS_TIME_FMT = "%1$tY/%3,4,5 - - Local - 168 - - (ldadhydro|ldadmesonet|ldadprofiler|ldad_manual|qc)/.*(\d{4})-(\d{2})-(\d{2})-(\d{2}).* - {1} - 2,3,4,5 - - Model 168 diff --git a/edexOsgi/com.raytheon.uf.edex.dataplugins.feature/feature.xml b/edexOsgi/com.raytheon.uf.edex.dataplugins.feature/feature.xml index 245123f1a0..30de4306c3 100644 --- a/edexOsgi/com.raytheon.uf.edex.dataplugins.feature/feature.xml +++ b/edexOsgi/com.raytheon.uf.edex.dataplugins.feature/feature.xml @@ -38,20 +38,6 @@ version="0.0.0" unpack="false"/> - - - - - - - - - - - - - - - - - - - - diff --git a/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/.project b/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/.project deleted file mode 100644 index 8b8354367c..0000000000 --- a/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/.project +++ /dev/null @@ -1,28 +0,0 @@ - - - com.raytheon.uf.edex.plugin.ldadmesonet - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - - org.eclipse.pde.PluginNature - org.eclipse.jdt.core.javanature - - diff --git a/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/META-INF/MANIFEST.MF b/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/META-INF/MANIFEST.MF deleted file mode 100644 index 6cfcbdd117..0000000000 --- a/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/META-INF/MANIFEST.MF +++ /dev/null @@ -1,14 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: Ldadmesonet Plug-in -Bundle-SymbolicName: com.raytheon.uf.edex.plugin.ldadmesonet -Bundle-Version: 1.14.0.qualifier -Bundle-Vendor: RAYTHEON -Bundle-RequiredExecutionEnvironment: JavaSE-1.7 -Require-Bundle: com.raytheon.uf.common.dataplugin.ldadmesonet;bundle-version="1.0.0", - com.raytheon.edex.common, - javax.measure, - com.raytheon.edex.plugin.ldad;bundle-version="1.0.0", - com.raytheon.uf.common.localization, - com.raytheon.uf.edex.pointdata -Import-Package: com.raytheon.uf.common.status diff --git a/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/build.properties b/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/build.properties deleted file mode 100644 index 5791d48d5f..0000000000 --- a/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/build.properties +++ /dev/null @@ -1,5 +0,0 @@ -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - .,\ - res/ diff --git a/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/com.raytheon.uf.edex.plugin.ldadmesonet.ecl b/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/com.raytheon.uf.edex.plugin.ldadmesonet.ecl deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/res/pointdata/ldadmesonet.xml b/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/res/pointdata/ldadmesonet.xml deleted file mode 100644 index 0b7cba9011..0000000000 --- a/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/res/pointdata/ldadmesonet.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/res/pointdata/ldadmesonetdb.xml b/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/res/pointdata/ldadmesonetdb.xml deleted file mode 100644 index 3c9a8bcf06..0000000000 --- a/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/res/pointdata/ldadmesonetdb.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/res/spring/ldadmesonet-common.xml b/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/res/spring/ldadmesonet-common.xml deleted file mode 100644 index 5db1560647..0000000000 --- a/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/res/spring/ldadmesonet-common.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/res/spring/ldadmesonet-ingest.xml b/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/res/spring/ldadmesonet-ingest.xml deleted file mode 100644 index e1628c69f8..0000000000 --- a/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/res/spring/ldadmesonet-ingest.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - java.lang.Throwable - - - - - - diff --git a/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/src/com/raytheon/uf/edex/plugin/ldadmesonet/LdadmesonetPointDataTransform.java b/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/src/com/raytheon/uf/edex/plugin/ldadmesonet/LdadmesonetPointDataTransform.java deleted file mode 100644 index 1410fbd131..0000000000 --- a/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/src/com/raytheon/uf/edex/plugin/ldadmesonet/LdadmesonetPointDataTransform.java +++ /dev/null @@ -1,557 +0,0 @@ -/** - * This software was developed and / or modified by Raytheon Company, - * pursuant to Contract DG133W-05-CQ-1067 with the US Government. - * - * U.S. EXPORT CONTROLLED TECHNICAL DATA - * This software product contains export-restricted data whose - * export/transfer/disclosure is restricted by U.S. law. Dissemination - * to non-U.S. persons whether in the United States or abroad requires - * an export license or other authorization. - * - * Contractor Name: Raytheon Company - * Contractor Address: 6825 Pine Street, Suite 340 - * Mail Stop B8 - * Omaha, NE 68106 - * 402.291.0100 - * - * See the AWIPS II Master Rights File ("Master Rights File.pdf") for - * further licensing information. - **/ -package com.raytheon.uf.edex.plugin.ldadmesonet; - -import java.io.File; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.raytheon.uf.common.dataplugin.PluginDataObject; -import com.raytheon.uf.common.dataplugin.ldadmesonet.MesonetLdadRecord; -import com.raytheon.uf.common.pointdata.PointDataContainer; -import com.raytheon.uf.common.pointdata.PointDataDescription; -import com.raytheon.uf.common.pointdata.PointDataView; -import com.raytheon.uf.common.pointdata.spatial.SurfaceObsLocation; -import com.raytheon.uf.edex.plugin.ldadmesonet.dao.LdadMesonetDao; - -/** - * Transform LDAD MESONET records into Point Data Model. - * - *
- * 
- * SOFTWARE HISTORY
- * 
- * Date         Ticket#     Engineer    Description
- * ------------ ----------  ----------- --------------------------
- * Oct 09, 2009 DR2814      vkorolev    Initial creation
- * Aug 30, 2013 2298        rjpeter     Make getPluginName abstract
- * Jul 23, 2014 3410        bclement    location changed to floats
- * Aug 15, 2014 3530        bclement    moved from common to edex
- * 
- * 
- * - * @author vkorolev - * @version 1 - */ - -public class LdadmesonetPointDataTransform { - - private LdadMesonetDao dao; - - private PointDataDescription description; - - // ------------------Common params (From OBS - // plugin)---------------------------- - private static final String PRESS_CHANGE3_HOUR = "pressChange3Hour"; - - private static final String PRESS_CHANGE_CHAR = "pressChangeChar"; - - private static final String ALTIMETER = "altimeter"; - - private static final String WIND_GUST = "windGust"; - - private static final String WIND_SPEED = "windSpeed"; - - private static final String DEWPOINT = "dewpoint"; - - private static final String TEMPERATURE = "temperature"; - - private static final String PRES_WEATHER = "presWeather"; - - private static final String VISIBILITY = "visibility"; - - private static final String LONGITUDE = "longitude"; - - private static final String LATITUDE = "latitude"; - - private static final String ELEVATION = "elevation"; - - private static final String STATION_NAME = "stationName"; - - private static final String DATAURI = "dataURI"; - - // ------------------From LDAD mesonet netCDF------------------------ - private static final String STORAGE_TYPE = "storageType"; - - private static final String STATION_ID = "stationId"; - - private static final String DATA_PROVIDER = "dataProvider"; - - private static final String HOME_WFO = "homeWFO"; - - private static final String OBSERVATION_TIME = "observationTime"; - - private static final String PROVIDER_ID = "providerId"; - - private static final String HANDBOOK5_ID = "handbook5Id"; - - private static final String STATION_TYPE = "stationType"; - - private static final String REPORT_TIME = "reportTime"; - - private static final String RECEIVED_TIME = "receivedTime"; - - private static final String NUMERICAL_WMO_ID = "numericWMOid"; - - private static final String DATA_PLATFORM_TYPE = "dataPlatformType"; - - private static final String PLATFORM_TRUE_DIRECTION = "platformTrueDirection"; - - private static final String PLARFORM_TRUE_SPEED = "platformTrueSpeed"; - - private static final String TEMP_CHANGE_TIME = "tempChangeTime"; - - private static final String WET_BULB_TEMPERATURE = "wetBulbTemperature"; - - private static final String RH_CHANGE_TIME = "rhChangeTime"; - - private static final String STATION_PRESSURE = "stationPressure"; - - private static final String STATION_PRESS_CHANGE_TIME = "stationPressChangeTime"; - - private static final String WIND_DIR_CHANGE_TIME = "windDirChangeTime"; - - private static final String WIND_SPEED_CHANGE_TIME = "windSpeedChangeTime"; - - private static final String WIND_GUST_CHANGE_TIME = "windGustChangeTime"; - - private static final String WIND_DIR_MIN = "windDirMin"; - - private static final String WIND_DIR_MAX = "windDirMax"; - - private static final String VISIBILITY_STATUS = "visibilityStatus"; - - private static final String TOTAL_CLOUD_COVER = "totalCloudCover"; - - private static final String CLOUD_BASE_HEIGHT = "cloudBaseHeight"; - - private static final String LOW_LEVEL_CLOUD_TYPE = "lowLevelCloudType"; - - private static final String MID_LEVEL_CLOUD_TYPE = "midLevelCloudType"; - - private static final String HIGH_LEVEL_CLOUD_TYPE = "highLevelCloudType"; - - private static final String MAX_TEMP_RECORD_PERIOD = "maxTempRecordPeriod"; - - private static final String MAXIMUM_TEMPERATURE = "maximumTemperature"; - - private static final String MIN_TEMP_RECORD_PERIOD = "minTempRecordPeriod"; - - private static final String MINIMUM_TEMPERATURE = "minimumTemperature"; - - private static final String PRECIP_ACCUM = "precipAccum"; - - private static final String PRECIP_TYPE = "precipType"; - - private static final String PRECIP_INTENSITY = "precipIntensity"; - - private static final String TIME_SINCE_LAST_PCP = "timeSinceLastPcp"; - - private static final String SOLAR_RADIATION = "solarRadiation"; - - private static final String SOLAR_RAD_CHANGE_TIME = "solarRadChangeTime"; - - private static final String SEA_SURFACE_TEMP = "seaSurfaceTemp"; - - private static final String WAVE_PERIOD = "wavePeriod"; - - private static final String WAVE_HEIGHT = "waveHeight"; - - private static final String RAW_MESONET = "rawMessage"; - - private static final String REL_HUMIDITY = "relHumidity"; - - private static final String WIND_DIR = "windDir"; - - private static final String PRESSURE = "pressure"; - - private static final String SEA_LEVEL_PRESSURE = "seaLevelPressure"; - - private static final String PRECIP_RATE = "precipRate"; - - private static final String FUEL_TEMPERATURE = "fuelTemperature"; - - private static final String FUEL_MOISTURE = "fuelMoisture"; - - private static final String SOIL_TEMPERATURE = "soilTemperature"; - - private static final String SOIL_MOISTURE = "soilMoisture"; - - /** - * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! It is important to - * keep this up to date or risk breaking backwards compatibility - * - */ - private static final String[] ALL_PARAMS = { PRESS_CHANGE3_HOUR, - PRESS_CHANGE_CHAR, ALTIMETER, WIND_GUST, WIND_SPEED, DEWPOINT, - TEMPERATURE, PRES_WEATHER, VISIBILITY, LONGITUDE, LATITUDE, - SEA_LEVEL_PRESSURE, STATION_NAME, DATAURI, STORAGE_TYPE, ELEVATION, - STATION_ID, DATA_PROVIDER, HOME_WFO, OBSERVATION_TIME, PROVIDER_ID, - HANDBOOK5_ID, STATION_TYPE, REPORT_TIME, RECEIVED_TIME, - NUMERICAL_WMO_ID, DATA_PLATFORM_TYPE, PLATFORM_TRUE_DIRECTION, - PLARFORM_TRUE_SPEED, TEMP_CHANGE_TIME, WET_BULB_TEMPERATURE, - RH_CHANGE_TIME, STATION_PRESSURE, STATION_PRESS_CHANGE_TIME, - WIND_DIR_CHANGE_TIME, WIND_SPEED_CHANGE_TIME, - WIND_GUST_CHANGE_TIME, WIND_DIR_MIN, WIND_DIR_MAX, - VISIBILITY_STATUS, TOTAL_CLOUD_COVER, CLOUD_BASE_HEIGHT, - LOW_LEVEL_CLOUD_TYPE, MID_LEVEL_CLOUD_TYPE, HIGH_LEVEL_CLOUD_TYPE, - MAX_TEMP_RECORD_PERIOD, MAXIMUM_TEMPERATURE, - MIN_TEMP_RECORD_PERIOD, MINIMUM_TEMPERATURE, PRECIP_ACCUM, - PRECIP_TYPE, PRECIP_INTENSITY, TIME_SINCE_LAST_PCP, - SOLAR_RADIATION, SOLAR_RAD_CHANGE_TIME, SEA_SURFACE_TEMP, - WAVE_PERIOD, WAVE_HEIGHT, RAW_MESONET, REL_HUMIDITY, WIND_DIR, - PRESSURE, SEA_LEVEL_PRESSURE, PRECIP_RATE, FUEL_TEMPERATURE, - FUEL_MOISTURE, SOIL_TEMPERATURE, SOIL_MOISTURE }; - - public static final String ALL_PARAMS_LIST; - static { - StringBuffer sb = new StringBuffer(); - boolean first = true; - for (String s : ALL_PARAMS) { - if (!first) { - sb.append(", "); - } else { - first = false; - } - sb.append(s); - } - ALL_PARAMS_LIST = sb.toString(); - } - - // public LdadmesonetPointDataTransform() throws JAXBException, - // PluginException { - // this.description = getDescription("ldadmesonet"); - // logger.info("=============PointDataDescription loaded=============="); - // this.dao = new LdadMesonetDao("ldadmesonet"); - // } - - public LdadmesonetPointDataTransform() { - try { - this.dao = new LdadMesonetDao("ldadmesonet"); - this.description = dao.getPointDataDescription(null); - } catch (Exception e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - } - - public PluginDataObject[] toPointData(PluginDataObject[] pdo) { - - if (pdo.length > 0) { - Map pointMap = new HashMap(); - - for (PluginDataObject p : pdo) { - if (!(p instanceof MesonetLdadRecord)) { - continue; - } - - File f = this.dao.getFullFilePath(p); - - PointDataContainer pdc = pointMap.get(f); - if (pdc == null) { - pdc = PointDataContainer.build(this.description); - pointMap.put(f, pdc); - } - - MesonetLdadRecord mesor = (MesonetLdadRecord) p; - PointDataView pdv = buildView(pdc, mesor); - mesor.setPointDataView(pdv); - } - } - return pdo; - } - - private PointDataView buildView(PointDataContainer container, - MesonetLdadRecord record) { - PointDataView pdv = container.append(); - - if (record.getRawMessage() != null) { - pdv.setString(RAW_MESONET, record.getRawMessage()); - } - if (record.getSeaLevelPressure() != null) { - pdv.setFloat(SEA_LEVEL_PRESSURE, record.getSeaLevelPressure()); - } - - if (record.getObservationTime() != null) { - pdv.setLong(OBSERVATION_TIME, record.getDataTime().getRefTime() - .getTime()); - } - if (record.getVisibility() != null) { - pdv.setFloat(VISIBILITY, record.getVisibility()); - } - if (record.getTemperature() != null) { - pdv.setFloat(TEMPERATURE, record.getTemperature()); - } - if (record.getDewpoint() != null) { - pdv.setFloat(DEWPOINT, record.getDewpoint()); - } - if (record.getWindSpeed() != null) { - pdv.setFloat(WIND_SPEED, record.getWindSpeed()); - } - if (record.getWindGust() != null) { - pdv.setFloat(WIND_GUST, record.getWindGust()); - } - if (record.getAltimeter() != null) { - pdv.setFloat(ALTIMETER, record.getAltimeter()); - } - if (record.getPressChangeChar() != null) { - pdv.setInt(PRESS_CHANGE_CHAR, record.getPressChangeChar() - .intValue()); - } - if (record.getPressChange3Hour() != null) { - pdv.setFloat(PRESS_CHANGE3_HOUR, record.getPressChange3Hour()); - } - - // --------------------------------------LDAD mesonet - // specific------------------------ - - if (record.getReportTime() != null) { - pdv.setLong(REPORT_TIME, record.getReportTime()); - } - if (record.getReceivedTime() != null) { - pdv.setLong(RECEIVED_TIME, record.getReceivedTime().longValue()); - } - if (record.getNumericWMOid() != null) { - pdv.setLong(NUMERICAL_WMO_ID, record.getNumericWMOid()); - } - if (record.getDataPlatformType() != null) { - pdv.setInt(DATA_PLATFORM_TYPE, record.getDataPlatformType() - .intValue()); - } - if (record.getPlatformTrueDirection() != null) { - pdv.setFloat(PLATFORM_TRUE_DIRECTION, - record.getPlatformTrueDirection()); - } - if (record.getPlatformTrueSpeed() != null) { - pdv.setFloat(PLARFORM_TRUE_SPEED, record.getPlatformTrueSpeed()); - } - if (record.getTempChangeTime() != null) { - pdv.setLong(TEMP_CHANGE_TIME, record.getTempChangeTime() - .longValue()); - } - if (record.getWetBulbTemperature() != null) { - pdv.setFloat(WET_BULB_TEMPERATURE, record.getWetBulbTemperature()); - } - if (record.getRhChangeTime() != null) { - pdv.setLong(RH_CHANGE_TIME, record.getRhChangeTime().longValue()); - } - if (record.getStationPressure() != null) { - pdv.setFloat(STATION_PRESSURE, record.getStationPressure()); - } - if (record.getStationPressChangeTime() != null) { - pdv.setLong(STATION_PRESS_CHANGE_TIME, record - .getStationPressChangeTime().longValue()); - } - if (record.getWindDirChangeTime() != null) { - pdv.setLong(WIND_DIR_CHANGE_TIME, record.getWindDirChangeTime() - .longValue()); - } - if (record.getWindSpeedChangeTime() != null) { - pdv.setLong(WIND_SPEED_CHANGE_TIME, record.getWindSpeedChangeTime() - .longValue()); - } - if (record.getWindGustChangeTime() != null) { - pdv.setLong(WIND_GUST_CHANGE_TIME, record.getWindGustChangeTime() - .longValue()); - } - if (record.getWindDirMin() != null) { - pdv.setFloat(WIND_DIR_MIN, record.getWindDirMin()); - } - if (record.getWindDirMax() != null) { - pdv.setFloat(WIND_DIR_MAX, record.getWindDirMax()); - } - if (record.getVisibilityStatus() != null) { - pdv.setString(VISIBILITY_STATUS, record.getVisibilityStatus()); - } - if (record.getTotalCloudCover() != null) { - pdv.setFloat(TOTAL_CLOUD_COVER, record.getTotalCloudCover()); - } - if (record.getCloudBaseHeight() != null) { - pdv.setInt(CLOUD_BASE_HEIGHT, record.getCloudBaseHeight() - .intValue()); - } - if (record.getLowLevelCloudType() != null) { - pdv.setInt(LOW_LEVEL_CLOUD_TYPE, record.getLowLevelCloudType() - .intValue()); - } - if (record.getMidLevelCloudType() != null) { - pdv.setInt(MID_LEVEL_CLOUD_TYPE, record.getMidLevelCloudType() - .intValue()); - } - if (record.getHighLevelCloudType() != null) { - pdv.setInt(HIGH_LEVEL_CLOUD_TYPE, record.getHighLevelCloudType() - .intValue()); - } - if (record.getMinTempRecordPeriod() != null) { - pdv.setInt(MAX_TEMP_RECORD_PERIOD, record.getMinTempRecordPeriod() - .intValue()); - } - if (record.getMaximumTemperature() != null) { - pdv.setFloat(MAXIMUM_TEMPERATURE, record.getMaximumTemperature()); - } - if (record.getMinTempRecordPeriod() != null) { - pdv.setInt(MIN_TEMP_RECORD_PERIOD, record.getMinTempRecordPeriod() - .intValue()); - } - if (record.getMinimumTemperature() != null) { - pdv.setFloat(MINIMUM_TEMPERATURE, record.getMinimumTemperature()); - } - if (record.getPrecipAccum() != null) { - pdv.setFloat(PRECIP_ACCUM, record.getPrecipAccum()); - } - if (record.getPrecipType() != null) { - pdv.setInt(PRECIP_TYPE, record.getPrecipType().intValue()); - } - if (record.getPrecipIntensity() != null) { - pdv.setInt(PRECIP_INTENSITY, record.getPrecipIntensity().intValue()); - } - if (record.getTimeSinceLastPcp() != null) { - pdv.setLong(TIME_SINCE_LAST_PCP, record.getTimeSinceLastPcp() - .longValue()); - } - if (record.getSolarRadiation() != null) { - pdv.setFloat(SOLAR_RADIATION, record.getSolarRadiation()); - } - if (record.getSolarRadChangeTime() != null) { - pdv.setLong(SOLAR_RAD_CHANGE_TIME, record.getSolarRadChangeTime() - .longValue()); - } - if (record.getSeaSurfaceTemp() != null) { - pdv.setFloat(SEA_SURFACE_TEMP, record.getSeaSurfaceTemp()); - } - if (record.getWavePeriod() != null) { - pdv.setFloat(WAVE_PERIOD, record.getWavePeriod()); - } - if (record.getWaveHeight() != null) { - pdv.setFloat(WAVE_HEIGHT, record.getWaveHeight()); - } - if (record.getRelHumidity() != null) { - pdv.setFloat(REL_HUMIDITY, record.getRelHumidity()); - } - if (record.getWindDir() != null) { - pdv.setFloat(WIND_DIR, record.getWindDir()); - } - if (record.getPressure() != null) { - pdv.setFloat(PRESSURE, record.getPressure()); - } - if (record.getSeaLevelPressure() != null) { - pdv.setFloat(SEA_LEVEL_PRESSURE, record.getSeaLevelPressure()); - } - if (record.getPrecipRate() != null) { - pdv.setFloat(PRECIP_RATE, record.getPrecipRate()); - } - if (record.getFuelTemperature() != null) { - pdv.setFloat(FUEL_TEMPERATURE, record.getFuelTemperature()); - } - if (record.getFuelMoisture() != null) { - pdv.setFloat(FUEL_MOISTURE, record.getFuelMoisture()); - } - if (record.getSoilTemperature() != null) { - pdv.setFloat(SOIL_TEMPERATURE, record.getSoilTemperature()); - } - if (record.getSoilMoisture() != null) { - pdv.setFloat(SOIL_MOISTURE, record.getSoilMoisture()); - } - return pdv; - } - - public static MesonetLdadRecord toMesonetLdadRecord(PointDataView pdv) { - MesonetLdadRecord mr = new MesonetLdadRecord(); - mr.setAltimeter(pdv.getNumber(ALTIMETER).floatValue()); - mr.setDewpoint(pdv.getNumber(DEWPOINT).floatValue()); - SurfaceObsLocation loc = new SurfaceObsLocation( - pdv.getString(STATION_ID)); - float lat = pdv.getNumber(LATITUDE).floatValue(); - float lon = pdv.getNumber(LONGITUDE).floatValue(); - loc.assignLocation(lat, lon); - loc.setElevation(pdv.getNumber(ELEVATION).intValue()); - mr.setLocation(loc); - mr.setReportType(pdv.getString(STORAGE_TYPE)); - mr.setProviderId(pdv.getString(PROVIDER_ID)); - mr.setPressChange3Hour(pdv.getNumber(PRESS_CHANGE3_HOUR).floatValue()); - mr.setPressChangeChar((short) pdv.getInt(PRESS_CHANGE_CHAR)); - mr.setSeaLevelPressure(pdv.getNumber(SEA_LEVEL_PRESSURE).floatValue()); - mr.setTemperature(pdv.getNumber(TEMPERATURE).floatValue()); - mr.setVisibility(pdv.getNumber(VISIBILITY).floatValue()); - mr.setWindDir(pdv.getFloat(WIND_DIR)); - mr.setWindGust(pdv.getFloat(WIND_GUST)); - mr.setWindSpeed(pdv.getFloat(WIND_SPEED)); - mr.setDataURI(pdv.getString(DATAURI)); - mr.setReceivedTime(pdv.getNumber(RECEIVED_TIME).doubleValue()); - // ---------------------------------------------------------------------------------- - mr.setTempChangeTime(pdv.getNumber(TEMP_CHANGE_TIME).doubleValue()); - mr.setWetBulbTemperature(pdv.getFloat(WET_BULB_TEMPERATURE)); - mr.setRhChangeTime((Double) pdv.getNumber(RH_CHANGE_TIME)); - mr.setStationPressure(pdv.getFloat(STATION_PRESSURE)); - mr.setStationPressChangeTime((Double) pdv - .getNumber(STATION_PRESS_CHANGE_TIME)); - mr.setWindDirChangeTime((Double) pdv.getNumber(WIND_DIR_CHANGE_TIME)); - mr.setWindSpeedChangeTime((Double) pdv - .getNumber(WIND_SPEED_CHANGE_TIME)); - mr.setWindGustChangeTime((Double) pdv.getNumber(WIND_GUST_CHANGE_TIME)); - mr.setWindDirMin(pdv.getFloat(WIND_DIR_MIN)); - mr.setWindDirMax(pdv.getFloat(WIND_DIR_MAX)); - mr.setVisibilityStatus(pdv.getString(VISIBILITY_STATUS)); - mr.setTotalCloudCover(pdv.getFloat(TOTAL_CLOUD_COVER)); - mr.setCloudBaseHeight((Short) pdv.getNumber(CLOUD_BASE_HEIGHT)); - mr.setLowLevelCloudType((Short) pdv.getNumber(LOW_LEVEL_CLOUD_TYPE)); - mr.setMidLevelCloudType((Short) pdv.getNumber(MID_LEVEL_CLOUD_TYPE)); - mr.setHighLevelCloudType((Short) pdv.getNumber(HIGH_LEVEL_CLOUD_TYPE)); - mr.setMaxTempRecordPeriod((Short) pdv.getNumber(MAX_TEMP_RECORD_PERIOD)); - mr.setMaximumTemperature(pdv.getFloat(MAXIMUM_TEMPERATURE)); - mr.setMinTempRecordPeriod((Short) pdv.getNumber(MIN_TEMP_RECORD_PERIOD)); - mr.setMaximumTemperature(pdv.getFloat(MINIMUM_TEMPERATURE)); - mr.setPrecipAccum(pdv.getFloat(PRECIP_ACCUM)); - mr.setPrecipType((Short) pdv.getNumber(PRECIP_TYPE)); - mr.setPrecipIntensity((Short) pdv.getNumber(PRECIP_INTENSITY)); - mr.setTimeSinceLastPcp((Double) pdv.getNumber(TIME_SINCE_LAST_PCP)); - mr.setSolarRadiation(pdv.getFloat(SOLAR_RADIATION)); - mr.setSolarRadChangeTime((Double) pdv.getNumber(SOLAR_RAD_CHANGE_TIME)); - mr.setSeaSurfaceTemp(pdv.getFloat(SEA_SURFACE_TEMP)); - mr.setWavePeriod(pdv.getFloat(WAVE_PERIOD)); - mr.setWaveHeight(pdv.getFloat(WAVE_HEIGHT)); - mr.setRawMessage(pdv.getString(RAW_MESONET)); - mr.setRelHumidity(pdv.getFloat(REL_HUMIDITY)); - mr.setWindDir(pdv.getFloat(WIND_DIR)); - mr.setPressure(pdv.getFloat(PRESSURE)); - mr.setSeaLevelPressure(pdv.getFloat(SEA_LEVEL_PRESSURE)); - mr.setPrecipRate(pdv.getFloat(PRECIP_RATE)); - mr.setFuelTemperature(pdv.getFloat(FUEL_TEMPERATURE)); - mr.setFuelMoisture(pdv.getFloat(FUEL_MOISTURE)); - mr.setSoilTemperature(pdv.getFloat(SOIL_TEMPERATURE)); - mr.setSoilMoisture(pdv.getFloat(SOIL_MOISTURE)); - return mr; - } - - public static MesonetLdadRecord[] toMesonetLdadRecords( - PointDataContainer container) { - List records = new ArrayList(); - container.setCurrentSz(container.getAllocatedSz()); - for (int i = 0; i < container.getCurrentSz(); i++) { - PointDataView pdv = container.readRandom(i); - records.add(toMesonetLdadRecord(pdv)); - } - return records.toArray(new MesonetLdadRecord[records.size()]); - - } - -} diff --git a/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/src/com/raytheon/uf/edex/plugin/ldadmesonet/MesonetDecoder.java b/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/src/com/raytheon/uf/edex/plugin/ldadmesonet/MesonetDecoder.java deleted file mode 100644 index b9932a03bd..0000000000 --- a/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/src/com/raytheon/uf/edex/plugin/ldadmesonet/MesonetDecoder.java +++ /dev/null @@ -1,445 +0,0 @@ -/** - * This software was developed and / or modified by Raytheon Company, - * pursuant to Contract DG133W-05-CQ-1067 with the US Government. - * - * U.S. EXPORT CONTROLLED TECHNICAL DATA - * This software product contains export-restricted data whose - * export/transfer/disclosure is restricted by U.S. law. Dissemination - * to non-U.S. persons whether in the United States or abroad requires - * an export license or other authorization. - * - * Contractor Name: Raytheon Company - * Contractor Address: 6825 Pine Street, Suite 340 - * Mail Stop B8 - * Omaha, NE 68106 - * 402.291.0100 - * - * See the AWIPS II Master Rights File ("Master Rights File.pdf") for - * further licensing information. - **/ - -package com.raytheon.uf.edex.plugin.ldadmesonet; - -import java.io.File; -import java.io.FileInputStream; -import java.io.FileNotFoundException; -import java.io.StringReader; -import java.lang.reflect.Field; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.lang.reflect.Modifier; -import java.text.ParseException; -import java.text.SimpleDateFormat; -import java.util.ArrayList; -import java.util.Calendar; -import java.util.Date; -import java.util.List; -import java.util.Properties; -import java.util.TimeZone; - -import javax.measure.converter.ConversionException; -import javax.measure.unit.Unit; -import javax.measure.unit.UnitFormat; -import javax.xml.bind.JAXBContext; -import javax.xml.bind.JAXBException; -import javax.xml.bind.Unmarshaller; - -import com.raytheon.edex.exception.DecoderException; -import com.raytheon.edex.plugin.ldad.common.DecodedData; -import com.raytheon.edex.plugin.ldad.common.LdadField; -import com.raytheon.uf.common.dataplugin.PluginDataObject; -import com.raytheon.uf.common.dataplugin.ldadmesonet.MesonetLdadRecord; -import com.raytheon.uf.common.localization.IPathManager; -import com.raytheon.uf.common.localization.LocalizationContext; -import com.raytheon.uf.common.localization.PathManagerFactory; -import com.raytheon.uf.common.pointdata.spatial.SurfaceObsLocation; -import com.raytheon.uf.common.status.IUFStatusHandler; -import com.raytheon.uf.common.status.UFStatus; -import com.raytheon.uf.common.time.DataTime; - -/** - * Decoder implementation for ldadmesonet plugin. - * - *
- * 
- * SOFTWARE HISTORY
- *                     
- * Date         Ticket#     Engineer    Description
- * -----------  ----------  ----------- --------------------------
- * Sep 04, 2009             vkorolev    Initial creation
- * May 15, 2013 1869        bsteffen    Remove DataURI column from ldadmesonet.
- * Aug 30, 2013 2298        rjpeter     Make getPluginName abstract
- * Jul 23, 2014 3410        bclement    location changed to floats
- * Aug 15, 2014 3530        bclement    no longer extends AbstractDecoder
- * 
- * - * @author vkorolev - * @version 1 - */ - -public class MesonetDecoder { - - private static final IUFStatusHandler logger = UFStatus - .getHandler(MesonetDecoder.class); - - private static final String BAD_PROPERTY_FMT = "NumberFormatException setting property %s.%s(%s %s)"; - - private String traceId = null; - - private String currentFile = null; - - public SimpleDateFormat sdf = new SimpleDateFormat("yy/MM/dd HH:mm:ss"); - - public File confile; - - public Properties configFile = new Properties(); - - public MesonetDecoder(String pluginName) throws DecoderException { - } - - public void setTraceId(String id) { - traceId = id; - } - - // Temporary place for observationTime value - private String obsTime = null; - - private String timeZone = null; - - /** - * @param data - * @return - * @throws DecoderException - */ - public PluginDataObject[] decode(byte[] data) throws DecoderException { - List retVal = new ArrayList(); - if (data != null) { - IPathManager pathMgr = PathManagerFactory.getPathManager(); - LocalizationContext ctx = pathMgr.getContext( - LocalizationContext.LocalizationType.EDEX_STATIC, - LocalizationContext.LocalizationLevel.BASE); - try { - confile = pathMgr.getFile(ctx, "ldad/ldadUnitsMap.txt"); - FileInputStream fis = new FileInputStream(confile); - try { - configFile.load(fis); - } finally { - fis.close(); - } - } catch (FileNotFoundException e) { - logger.error(traceId - + "Configuration Units Map file (ldadUnitsMap.txt) not found."); - } catch (Exception e) { - logger.error(traceId + e); - } - try { - JAXBContext context = JAXBContext - .newInstance(DecodedData.class); - Unmarshaller u = context.createUnmarshaller(); - StringReader reader = new StringReader(new String(data)); - DecodedData dd = (DecodedData) u.unmarshal(reader); - - // Storage type separator - if (dd.storageType.compareTo("mesonet") == 0) { - // Header - String missval = dd.missingValue; - // Number of records - int recnum = dd.fields.get(0).values.size(); - currentFile = dd.fileName; - if (recnum == 0) { - logger.info(traceId + " - No data in the file."); - retVal.clear(); - return retVal.toArray(new PluginDataObject[0]); - } else { - logger.info("\n***********" + "fileName= " - + currentFile - + "**********\n" - + "storageType= " - + dd.storageType - + "\n" - + "type= " - + dd.type - + "\n" - + "root= " - + dd.root - + "\n" - + "source= " - + dd.source - + "\n" - + "provider= " - + dd.provider - + "\n" - + "missingValue= " - + dd.missingValue - + "\n" - + "reportTime= " - + dd.reportTime - + "\n" - + "number of records= " - + recnum - + "\n" - + "--------------------------------------------" - + "\n"); - } - // Loop through records - badRecordStartAgain: for (int i = 0; i < recnum; i++) { - MesonetLdadRecord record = new MesonetLdadRecord(); - SurfaceObsLocation location = new SurfaceObsLocation(); - record.setDataProvider(dd.provider); - record.setStationType(dd.type); - record.setReportTime(dd.reportTime); - record.setReportType(dd.storageType); - // Loop through fields - for (LdadField v : dd.fields) { - String nn = v.variableName; - String unit = v.units; - String vv = v.values.get(i); - - // value filtering - if (vv.equals(missval)) { - if ("observationTime".equals(nn)) { - logger.error(traceId - + " - No Observation time was found."); - continue badRecordStartAgain; - } else { - continue; - } - } - if ("_lat".equals(nn)) { - float val = Float.parseFloat(vv); - location.setLatitude(val); - continue; - } - if ("_lon".equals(nn)) { - float val = Float.parseFloat(vv); - location.setLongitude(val); - continue; - } - if ("_elev".equals(nn)) { - // elevation in meter - integer in location - double dv = Double.parseDouble(vv); - int val = (int) dv; - location.setElevation(val); - continue; - } - if ("providerId".equals(nn)) { - location.setStationId(vv); - } else if ("_tz".equals(nn)) { - setTimeZone(vv); - genObsTime(record); - } else if ("observationTime".equals(nn)) { - setObsTime(vv); - genObsTime(record); - } else { - // Construct MesonetLdadRecord - setProperty(nn, record, vv, unit); - } - } // for - // DataTime = Observation time - - Calendar ot = record.getObservationTime(); - if (ot != null) { - DataTime dt = new DataTime(ot); - record.setDataTime(dt); - record.setLocation(location); - record.setRawMessage(record.toMessage()); - retVal.add(record); - } - // logger.info("-------------------------------------------------------"); - } - - } else { - retVal.clear(); - } - - } catch (JAXBException e) { - logger.error(traceId + " - Unable to unmarshall xml:", e); - } catch (SecurityException e) { - logger.error(traceId + " - SecurityException:" + e); - } catch (IllegalArgumentException e) { - logger.error(traceId + " - IllegalArgumentException:" + e); - } - } - return retVal.toArray(new PluginDataObject[retVal.size()]); - } - - // Set values using Java Reflect API - /** - * @param name - * @param obj - * @param value - * @return - * @throws SecurityException - * @throws NoSuchMethodException - * @throws IllegalArgumentException - * @throws IllegalAccessException - * @throws InvocationTargetException - * @throws ParseException - * @throws ClassNotFoundException - * @throws Throwable - */ - - public void setProperty(String name, MesonetLdadRecord obj, String value, - String vunit) { - - String prop = Character.toUpperCase(name.charAt(0)) + name.substring(1); - String mname = "set" + prop; - Object val = null; - boolean abort = false; - try { - Class cls = obj.getClass(); - Field fld = cls.getDeclaredField(name); - Class clazz = fld.getType(); - // Type filter - if (String.class == clazz) { - val = value.trim(); - } else if (Calendar.class == clazz) { - Date ot = null; - try { - ot = sdf.parse(value); - Calendar cal = Calendar.getInstance(); - cal.setTimeZone(TimeZone.getTimeZone("GMT")); - cal.setTime(ot); - val = cal; - } catch (Exception e) { - abort = true; - logger.error("Could not parse date field [" + name + ":" - + value + "] for file " + currentFile); - } - // only numbers - } else { - - // Get rid of some troublesome data - // TODO: find out what should be done with these values - abort = "B".equals(value); - abort |= "R".equals(value); - abort |= "V".equals(value); - abort |= "NAN0".equals(value); - - if (!abort) { - Double tval = null; - try { - tval = Double.parseDouble(value); - } catch (NumberFormatException nfe) { - String msg = String.format(BAD_PROPERTY_FMT, - cls.getSimpleName(), fld.getName(), - clazz.getSimpleName(), value); - logger.error(msg); - return; - } - if (configFile.containsKey(vunit)) { - Unit inUnit = null; - - Unit outUnit = null; - - try { - inUnit = (Unit) UnitFormat.getUCUMInstance() - .parseObject(configFile.getProperty(vunit)); - outUnit = (Unit) UnitFormat.getUCUMInstance() - .parseObject(configFile.getProperty(name)); - tval = inUnit.getConverterTo(outUnit).convert( - (tval).doubleValue()); - } catch (ConversionException ce) { - logger.error("Property[" + fld.getName() - + "]Input unit " + inUnit.getStandardUnit() - + " not compatable with Output unit " - + outUnit.getStandardUnit()); - return; - } - } - if (clazz == Integer.class) { - val = tval.intValue(); - } else if (clazz == Short.class) { - val = tval.shortValue(); - } else if (clazz == Float.class) { - val = tval.floatValue(); - } else { - val = tval; - } - } - } - if (!abort) { - Class types = clazz; - Method method = obj.getClass().getMethod(mname, types); - method.invoke(obj, val); - } - } catch (RuntimeException e) { - logger.error(traceId + " - RuntimeException:", e); - } catch (NoSuchMethodException e) { - logger.error(traceId + " - NoSuchMethodException:", e); - } catch (NoSuchFieldException e) { - // logger.error(traceId + " - NoSuchFieldException = "+ - // e.getMessage()); - } catch (IllegalAccessException e) { - logger.error(traceId + " - IllegalAccessException:", e); - } catch (InvocationTargetException e) { - logger.error(traceId + " - InvocationTargetException:", e); - } catch (ParseException e) { - logger.error(traceId + " - ParseException:", e); - } - return; - } - - private void genObsTime(MesonetLdadRecord record) { - if (getObsTime() != null) { - if (getTimeZone() != null) { - sdf.setTimeZone(TimeZone.getTimeZone(getTimeZone())); - this.setProperty("observationTime", record, getObsTime(), - "DATE_TIME_STRING"); - } - } - } - - /** - * - * @return - */ - String getObsTime() { - return obsTime; - } - - /** - * - * @param time - */ - void setObsTime(String time) { - this.obsTime = time; - } - - /** - * @return the timeZone - */ - String getTimeZone() { - return timeZone; - } - - /** - * @param timeZone - * the timeZone to set - */ - void setTimeZone(String timeZone) { - this.timeZone = timeZone; - } - - // List of Fields in record - public static void main(String args[]) { - MesonetLdadRecord record = new MesonetLdadRecord(); - try { - Class cls = record.getClass(); - - Field fieldlist[] = cls.getDeclaredFields(); - for (Field fld : fieldlist) { - System.out.println("name = " + fld.getName()); - System.out.println("decl class = " - + fld.getDeclaringClass().getSimpleName()); - System.out.println("type = " + fld.getType().getSimpleName()); - int mod = fld.getModifiers(); - System.out.println("modifiers = " + Modifier.toString(mod)); - System.out.println("-----"); - } - } catch (Throwable e) { - System.err.println(e); - } - - } -} diff --git a/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/src/com/raytheon/uf/edex/plugin/ldadmesonet/dao/LdadMesonetDao.java b/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/src/com/raytheon/uf/edex/plugin/ldadmesonet/dao/LdadMesonetDao.java deleted file mode 100644 index bb09df7c5b..0000000000 --- a/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/src/com/raytheon/uf/edex/plugin/ldadmesonet/dao/LdadMesonetDao.java +++ /dev/null @@ -1,172 +0,0 @@ -/** - * This software was developed and / or modified by Raytheon Company, - * pursuant to Contract DG133W-05-CQ-1067 with the US Government. - * - * U.S. EXPORT CONTROLLED TECHNICAL DATA - * This software product contains export-restricted data whose - * export/transfer/disclosure is restricted by U.S. law. Dissemination - * to non-U.S. persons whether in the United States or abroad requires - * an export license or other authorization. - * - * Contractor Name: Raytheon Company - * Contractor Address: 6825 Pine Street, Suite 340 - * Mail Stop B8 - * Omaha, NE 68106 - * 402.291.0100 - * - * See the AWIPS II Master Rights File ("Master Rights File.pdf") for - * further licensing information. - **/ -package com.raytheon.uf.edex.plugin.ldadmesonet.dao; - -import java.sql.SQLException; -import java.util.ArrayList; -import java.util.List; - -import com.raytheon.uf.common.dataplugin.PluginException; -import com.raytheon.uf.common.dataplugin.ldadmesonet.MesonetLdadRecord; -import com.raytheon.uf.common.dataplugin.persist.IPersistable; -import com.raytheon.uf.common.dataquery.db.QueryParam; -import com.raytheon.uf.common.datastorage.IDataStore; -import com.raytheon.uf.common.pointdata.spatial.ObStation; -import com.raytheon.uf.edex.database.DataAccessLayerException; -import com.raytheon.uf.edex.database.query.DatabaseQuery; -import com.raytheon.uf.edex.pointdata.PointDataPluginDao; -import com.raytheon.uf.edex.pointdata.spatial.ObStationDao; - -/** - * Data access object for accessing LDAD MESONET records in the database. - * - *
- * 
- * SOFTWARE HISTORY
- * 
- * Date         Ticket#     Engineer    Description
- * ------------ ----------  ----------- --------------------------
- * 9/04/09                  vkorolev    Initial creation
- * 10/09/09		DR2814		vkorolev	Refactor to Point Data Model
- * Feb 27, 2013 1638        mschenke    Moved ObStationDao to edex pointdata plugin
- * Aug 15, 2014 3530        bclement    moved from common to edex
- * 
- * 
- * - * @author vkorolev - * @version 1 - */ - -public class LdadMesonetDao extends PointDataPluginDao { - - public LdadMesonetDao(String pluginName) throws PluginException { - super(pluginName); - } - - public LdadMesonetDao() throws PluginException, SQLException { - this("ldadmesonet"); - } - - protected IDataStore populateDataStore(IDataStore dataStore, - IPersistable obj) throws Exception { - // TODO Auto-generated method stub - return null; - } - - /** The station dao */ - private ObStationDao obDao = new ObStationDao(); - - public List queryBySpatialBox(double upperLeftLat, double upperLeftLon, - double lowerRightLat, double lowerRightLon) - throws DataAccessLayerException { - - List stationList = obDao.queryBySpatialBox(upperLeftLat, - upperLeftLon, lowerRightLat, lowerRightLon); - - List stationNames = new ArrayList(); - for(ObStation station:stationList){ - stationNames.add((String)station.getIdentifier()); - } - stationList.clear(); - - DatabaseQuery query = new DatabaseQuery(MesonetLdadRecord.class); - query.addQueryParam("location.stationId", stationNames, - QueryParam.QueryOperand.IN); - return queryByCriteria(query); - } - - public List queryByState(String state, Integer count) - throws DataAccessLayerException { - - List results = obDao.queryByState(state); - - ArrayList icaos = new ArrayList(); - for (ObStation station : results) { - icaos.add((String)station.getIdentifier()); - } - - DatabaseQuery query = new DatabaseQuery(MesonetLdadRecord.class, count); - query.addQueryParam("location.stationId", icaos, QueryParam.QueryOperand.IN); - return queryByCriteria(query); - } - - /** - * Retrieves an ldadMesonet report using the datauri . - * - * @param dataURI - * The dataURI to match against. - * @return The report record if it exists. - */ - public MesonetLdadRecord queryByDataURI(String dataURI) { - MesonetLdadRecord report = null; - List obs = null; - try { - obs = queryBySingleCriteria("dataURI", dataURI); - } catch (DataAccessLayerException e) { - e.printStackTrace(); - } - if ((obs != null) && (obs.size() > 0)) { - report = (MesonetLdadRecord) obs.get(0); - } - return report; - } - - - /** - * Queries for to determine if a given data uri exists on the redbook table. - * - * @param dataUri - * The DataURI to find. - * @return An array of objects. If not null, there should only be a single - * element. - */ - public Object[] queryDataUriColumn(final String dataUri) { - - String sql = "select datauri from awips.ldadmesonet where datauri='" - + dataUri + "';"; - - Object[] results = executeSQLQuery(sql); - - return results; - } - - public ObStationDao getObDao() { - return obDao; - } - - public void setObDao(ObStationDao obDao) { - this.obDao = obDao; - } - - @Override - public String[] getKeysRequiredForFileName() { - return new String[] { "dataTime.refTime" }; - } - - @Override - public String getPointDataFileName(MesonetLdadRecord p) { - return "ldadmesonet.h5"; - } - - @Override - public MesonetLdadRecord newObject() { - return new MesonetLdadRecord(); - } -} diff --git a/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/utility/common_static/base/purge/ldadmesonetPurgeRules.xml b/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/utility/common_static/base/purge/ldadmesonetPurgeRules.xml deleted file mode 100644 index 1182b36c71..0000000000 --- a/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/utility/common_static/base/purge/ldadmesonetPurgeRules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - 24 - =00-01:00:00 - 00-01:00:00 - - diff --git a/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/utility/edex_static/base/distribution/ldadmesonet.xml b/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/utility/edex_static/base/distribution/ldadmesonet.xml deleted file mode 100644 index 99bb7cc55d..0000000000 --- a/edexOsgi/com.raytheon.uf.edex.plugin.ldadmesonet/utility/edex_static/base/distribution/ldadmesonet.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - LDAD\.mesonet\.* -