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 Stringstatic final Stringprivate static final org.slf4j.Loggerstatic final intstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic String[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanhasCommonGeo(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 booleanisInvalidCris(List fileList) An unusual method used to filter out files of type "GCRSO-SCRIF-SCRIS", where CrIS Science and Full Spectrum data are combined by CLASS into a single granule.static booleanisValidNASA(String varName) Determine if the input variable name is a valid NASA productstatic booleanisValidSet(List fileList) Determine if the set if filenames constitutes contiguous SNPP granules of the same geographic coverage.static StringreplaceLast(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:
trueifvarNamepasses checks.
-
isInvalidCris
An unusual method used to filter out files of type "GCRSO-SCRIF-SCRIS", where CrIS Science and Full Spectrum data are combined by CLASS into a single granule. These are deemed an odd aggregation that does not make sense combined into a single product, and are disallowed.- Parameters:
fileList- List of files to validate.- Returns:
falseiffileListpasses checks. Note reverse of typical boolean logic! True is retuned if data is INVALID.
-
isValidSet
Determine if the set if filenames constitutes contiguous SNPP granules of the same geographic coverage.- Parameters:
fileList- List of files to validate.- Returns:
trueiffileListpasses 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:
trueiffileListpasses checks.
-