diff --git a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/dao/SatelliteDao.java b/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/dao/SatelliteDao.java index 58171d8b87..2eb9ab48bd 100644 --- a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/dao/SatelliteDao.java +++ b/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/dao/SatelliteDao.java @@ -159,21 +159,29 @@ public class SatelliteDao extends PluginDao { // set the number of levels in the 'parent' satellite data. // Subtract one for the base level data. satRecord.setInterpolationLevels(levels - 1); + + // How many interpolation levels do we need for this data? Includes + // the base level! + // Subtract one for the base level data. + int downScaleLevels = downScaler.getNumberOfDownscaleLevels() - 1; + // set the number of downscale levels in the satellite metadata. + satRecord.setInterpolationLevels(downScaleLevels); if (DataStoreFactory.isInterpolated(levels)) { - for (int downscaleLevel = 1; downscaleLevel <= levels; downscaleLevel++) { + for (int level = 0; level < downScaleLevels; level++) { + int downScaleLevel = level + 1; Rectangle size = downScaler - .getDownscaleSize(downscaleLevel); + .getDownscaleSize(downScaleLevel); AbstractDataWrapper dest = getDestination(storageRecord, size); dest.setFillValue(fillValue); try { // Downscale from previous level - downScaler.downscale(downscaleLevel - 1, - downscaleLevel, dataSource, dest); + downScaler.downscale(downScaleLevel - 1, + downScaleLevel, dataSource, dest); IDataRecord dr = createDataRecord(satRecord, dest, - downscaleLevel, size); + downScaleLevel, size); // Set the attributes and properties from the parent // data. dr.setDataAttributes(attributes); diff --git a/edexOsgi/com.raytheon.edex.plugin.satellite/utility/edex_static/base/distribution/satellite.xml b/edexOsgi/com.raytheon.edex.plugin.satellite/utility/edex_static/base/distribution/satellite.xml index 337f5baa0a..388fb15ed6 100644 --- a/edexOsgi/com.raytheon.edex.plugin.satellite/utility/edex_static/base/distribution/satellite.xml +++ b/edexOsgi/com.raytheon.edex.plugin.satellite/utility/edex_static/base/distribution/satellite.xml @@ -19,5 +19,16 @@ further_licensing_information. --> - TI.... .... + + TI[^RS]... .... diff --git a/edexOsgi/com.raytheon.uf.common.dataplugin.satellite/src/com/raytheon/uf/common/dataplugin/satellite/SatelliteRecord.java b/edexOsgi/com.raytheon.uf.common.dataplugin.satellite/src/com/raytheon/uf/common/dataplugin/satellite/SatelliteRecord.java index f8fbc6cce9..2adc7c52fe 100644 --- a/edexOsgi/com.raytheon.uf.common.dataplugin.satellite/src/com/raytheon/uf/common/dataplugin/satellite/SatelliteRecord.java +++ b/edexOsgi/com.raytheon.uf.common.dataplugin.satellite/src/com/raytheon/uf/common/dataplugin/satellite/SatelliteRecord.java @@ -55,6 +55,8 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement; * getPersistenceTime() from new IPersistable * 20071129 472 jkorman Added IDecoderGettable interface. * 20081106 1515 jkorman Changed units length from 16 to 26 + * - AWIPS2 Baseline Repository -------- + * 07/30/2012 798 jkorman Support for common satellite data. * * * @author bphillip @@ -70,13 +72,26 @@ public class SatelliteRecord extends ServerSpecificPersistablePluginDataObject private static final long serialVersionUID = 1L; + /** + * The default dataset name to use for persisted satellite data. + */ public static final String SAT_DATASET_NAME = DataStoreFactory.DEF_DATASET_NAME; - public static final String SAT_FILL_VALUE = "FILL_VALUE"; + /** + * The attribute name for a value that will be used to "fill" undefined + * data. + */ + public static final String SAT_FILL_VALUE = "_FillValue"; - public static final String SAT_ADD_OFFSET = "ADD_OFFSET"; + /** + * The attribute name for the data additive offset value. + */ + public static final String SAT_ADD_OFFSET = "add_offset"; - public static final String SAT_SCALE_FACTOR = "SCALE_FACTOR"; + /** + * The attribute name for the data scale factor value.. + */ + public static final String SAT_SCALE_FACTOR = "scale_factor"; /** * The source of the data - NESDIS