Package edu.wisc.ssec.mcidasv.data.hydra
Class JPSSUtilities
java.lang.Object
edu.wisc.ssec.mcidasv.data.hydra.JPSSUtilities
Utility class to support Joint Polar Satellite System (JPSS) functionality.
Documentation referenced is from Suomi NPP Common Data Format Control Book.
See:
http://npp.gsfc.nasa.gov/documents.html
- Author:
- tommyj
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic float[]
static String[]
static final String
static final String
private static final org.slf4j.Logger
static final int
static final int
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static String[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
hasCommonGeo
(List fileList, File directory) Determine if a set if filenames which constitutes contiguous SNPP granules of various products all share the same geolocation data type.static boolean
isValidNASA
(String varName) Determine if the input variable name is a valid NASA productstatic boolean
isValidSet
(List fileList) Determine if the set if filenames constitutes contiguous SNPP granules of the same geographic coverage.static String
replaceLast
(String string, String substring, String replacestr) Replace last substring within input string which matches the input with the provided replacement string.
-
Field Details
-
logger
-
JPSS_FIELD_SEPARATOR
- See Also:
-
NASA_CREATION_DATE_INDEX
- See Also:
-
NOAA_CREATION_DATE_INDEX
- See Also:
-
SIPS_BOWTIE_DELETED_FLAG
- See Also:
-
SIPS_FLAG_MEANINGS_ATTRIBUTE
- See Also:
-
SIPS_FLAG_VALUES_ATTRIBUTE
- See Also:
-
SUOMI_NPP_REGEX_NOAA
- See Also:
-
JPSS_REGEX_ENTERPRISE_EDR
- See Also:
-
SUOMI_NPP_REGEX_NASA
- See Also:
-
SUOMI_GEO_REGEX_NASA
- See Also:
-
validNASAVariableNames
-
ATMSChannelCenterFrequencies
-
geoProductIDs
-
SUOMI_GEO_REGEX_NOAA
- See Also:
-
-
Constructor Details
-
JPSSUtilities
public JPSSUtilities()
-
-
Method Details
-
isValidNASA
Determine if the input variable name is a valid NASA product- Parameters:
varName
- Variable name to validate.- Returns:
true
ifvarName
passes checks.
-
isValidSet
Determine if the set if filenames constitutes contiguous SNPP granules of the same geographic coverage.- Parameters:
fileList
- List of files to validate.- Returns:
true
iffileList
passes checks.
-
replaceLast
Replace last substring within input string which matches the input with the provided replacement string.- Parameters:
string
-substring
-replacestr
-- Returns:
-
hasCommonGeo
Determine if a set if filenames which constitutes contiguous SNPP granules of various products all share the same geolocation data type.- Parameters:
fileList
- List of files to validate.directory
- Used when "GEO" is not embedded within one offileList
.- Returns:
true
iffileList
passes checks.
-