public abstract class JPSSUtilities extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static float[] |
ATMSChannelCenterFrequencies |
static java.lang.String[] |
geoProductIDs |
static java.lang.String |
JPSS_FIELD_SEPARATOR |
static int |
NASA_CREATION_DATE_INDEX |
static int |
NOAA_CREATION_DATE_INDEX |
static java.lang.String |
SUOMI_GEO_REGEX_NASA |
static java.lang.String |
SUOMI_GEO_REGEX_NOAA |
static java.lang.String |
SUOMI_NPP_REGEX_NASA |
static java.lang.String |
SUOMI_NPP_REGEX_NOAA |
static java.lang.String[] |
validNASAVariableNames |
Constructor and Description |
---|
JPSSUtilities() |
Modifier and Type | Method and Description |
---|---|
static boolean |
hasCommonGeo(java.util.List fileList,
java.io.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(java.lang.String varName)
Determine if the input variable name is a valid NASA product
|
static boolean |
isValidSet(java.util.List fileList)
Determine if the set if filenames constitutes contiguous SNPP granules
of the same geographic coverage.
|
static java.lang.String |
replaceLast(java.lang.String string,
java.lang.String substring,
java.lang.String replacestr)
Replace last substring within input string which matches the input with the
provided replacement string.
|
public static final java.lang.String JPSS_FIELD_SEPARATOR
public static final int NASA_CREATION_DATE_INDEX
public static final int NOAA_CREATION_DATE_INDEX
public static final java.lang.String SUOMI_NPP_REGEX_NOAA
public static final java.lang.String SUOMI_NPP_REGEX_NASA
public static final java.lang.String SUOMI_GEO_REGEX_NASA
public static java.lang.String[] validNASAVariableNames
public static float[] ATMSChannelCenterFrequencies
public static java.lang.String[] geoProductIDs
public static final java.lang.String SUOMI_GEO_REGEX_NOAA
public JPSSUtilities()
public static boolean isValidNASA(java.lang.String varName)
varName
- Variable name to validate.true
if varName
passes checks.public static boolean isValidSet(java.util.List fileList)
fileList
- List of files to validate.true
if fileList
passes checks.public static java.lang.String replaceLast(java.lang.String string, java.lang.String substring, java.lang.String replacestr)
string
- substring
- replacestr
- public static boolean hasCommonGeo(java.util.List fileList, java.io.File directory)
fileList
- List of files to validate.directory
- Used when "GEO" is not embedded within one
of fileList
.true
if fileList
passes checks.