Issue #798 - Updates to satellite
Former-commit-id:7928d912e1
[formerly 0fbc98c1fbbf683e14cf39ed962308496dff67dd] Former-commit-id:2ddb2f6df0
This commit is contained in:
parent
024a23e7a3
commit
241303f9a0
3 changed files with 43 additions and 9 deletions
|
@ -159,21 +159,29 @@ public class SatelliteDao extends PluginDao {
|
||||||
// set the number of levels in the 'parent' satellite data.
|
// set the number of levels in the 'parent' satellite data.
|
||||||
// Subtract one for the base level data.
|
// Subtract one for the base level data.
|
||||||
satRecord.setInterpolationLevels(levels - 1);
|
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)) {
|
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
|
Rectangle size = downScaler
|
||||||
.getDownscaleSize(downscaleLevel);
|
.getDownscaleSize(downScaleLevel);
|
||||||
|
|
||||||
AbstractDataWrapper dest = getDestination(storageRecord,
|
AbstractDataWrapper dest = getDestination(storageRecord,
|
||||||
size);
|
size);
|
||||||
dest.setFillValue(fillValue);
|
dest.setFillValue(fillValue);
|
||||||
try {
|
try {
|
||||||
// Downscale from previous level
|
// Downscale from previous level
|
||||||
downScaler.downscale(downscaleLevel - 1,
|
downScaler.downscale(downScaleLevel - 1,
|
||||||
downscaleLevel, dataSource, dest);
|
downScaleLevel, dataSource, dest);
|
||||||
|
|
||||||
IDataRecord dr = createDataRecord(satRecord, dest,
|
IDataRecord dr = createDataRecord(satRecord, dest,
|
||||||
downscaleLevel, size);
|
downScaleLevel, size);
|
||||||
// Set the attributes and properties from the parent
|
// Set the attributes and properties from the parent
|
||||||
// data.
|
// data.
|
||||||
dr.setDataAttributes(attributes);
|
dr.setDataAttributes(attributes);
|
||||||
|
|
|
@ -19,5 +19,16 @@
|
||||||
further_licensing_information.
|
further_licensing_information.
|
||||||
-->
|
-->
|
||||||
<requestPatterns xmlns:ns2="group">
|
<requestPatterns xmlns:ns2="group">
|
||||||
<regex>TI.... ....</regex>
|
<!--
|
||||||
|
This pattern excludes the current "prototype" WMO headers for future GOES-R data.
|
||||||
|
Point of contact
|
||||||
|
Brian M. Rapp
|
||||||
|
Communications Software Team Lead
|
||||||
|
Raytheon AWIPS Team
|
||||||
|
|
||||||
|
Brian.Rapp@noaa.gov
|
||||||
|
Office: (301) 495-2221
|
||||||
|
Cell: (301) 787-9925
|
||||||
|
-->
|
||||||
|
<regex>TI[^RS]... ....</regex>
|
||||||
</requestPatterns>
|
</requestPatterns>
|
||||||
|
|
|
@ -55,6 +55,8 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
* getPersistenceTime() from new IPersistable
|
* getPersistenceTime() from new IPersistable
|
||||||
* 20071129 472 jkorman Added IDecoderGettable interface.
|
* 20071129 472 jkorman Added IDecoderGettable interface.
|
||||||
* 20081106 1515 jkorman Changed units length from 16 to 26
|
* 20081106 1515 jkorman Changed units length from 16 to 26
|
||||||
|
* - AWIPS2 Baseline Repository --------
|
||||||
|
* 07/30/2012 798 jkorman Support for common satellite data.
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @author bphillip
|
* @author bphillip
|
||||||
|
@ -70,13 +72,26 @@ public class SatelliteRecord extends ServerSpecificPersistablePluginDataObject
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
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_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
|
* The source of the data - NESDIS
|
||||||
|
|
Loading…
Add table
Reference in a new issue