Package edu.wisc.ssec.mcidasv.data
Class TropomiIOSP
java.lang.Object
ucar.nc2.iosp.AbstractIOServiceProvider
edu.wisc.ssec.mcidasv.data.TropomiIOSP
- All Implemented Interfaces:
Comparable<IOServiceProvider>,IOServiceProvider
- Author:
- tommyj
-
Nested Class Summary
Nested classes/interfaces inherited from interface ucar.nc2.iosp.IOServiceProvider
IOServiceProvider.SortGroup -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final PatternSometimesisValidFile(RandomAccessFile)will need to check Windows paths that look something like/Z:/Users/bob/foo.txt.private static final Stringprivate static int[]private static Stringprivate NetcdfFileprivate static final Stringprivate static final org.slf4j.Loggerprivate static final Stringprivate static final Stringprivate static final Stringstatic final PatternCompiled representation ofTROPOMI_L2_REGEX.Fields inherited from class ucar.nc2.iosp.AbstractIOServiceProvider
location, ncfile, raf, rafOrder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddVar(NetcdfFile nc, Group g, Variable vIn) voidclose()private static int[]getDataShape(NetcdfFile hdf) getDataVars(NetcdfFile hdf, int[] dataShape) booleanstatic voidvoidopen(RandomAccessFile raf, NetcdfFile ncfile, CancelTask cancelTask) private static voidpopulateDataTree(NetcdfFile ncOut, Map<String, List<Variable>> groupsToVars) Fulfill data requestsprivate static booleanvalidProduct(Variable variable) Methods inherited from class ucar.nc2.iosp.AbstractIOServiceProvider
build, buildFinish, getDetailInfo, getFileTypeVersion, getLastModified, getStructureIterator, isBuilder, reacquire, readSection, readToByteChannel, readToOutputStream, release, sendIospMessage, setNetcdfFile, streamToByteChannel, syncExtend, toStringDebugMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ucar.nc2.iosp.IOServiceProvider
compareTo, getSortGroup
-
Field Details
-
LAT
- See Also:
-
LON
- See Also:
-
logger
-
BASE_GROUP
- See Also:
-
TROPOMI_FIELD_SEPARATOR
- See Also:
-
TROPOMI_L2_REGEX
- See Also:
-
TROPOMI_MATCHER
Compiled representation ofTROPOMI_L2_REGEX. -
BAD_WIN_PATH
SometimesisValidFile(RandomAccessFile)will need to check Windows paths that look something like/Z:/Users/bob/foo.txt.This regular expression is used by
isValidFile(...)to identity these sorts of paths and fix them. Otherwise we'll generate anInvalidPathException. -
groupMap
-
dimLen
-
hdfFile
-
filename
-
-
Constructor Details
-
TropomiIOSP
public TropomiIOSP()
-
-
Method Details
-
isValidFile
-
open
- Specified by:
openin interfaceIOServiceProvider- Overrides:
openin classAbstractIOServiceProvider- Throws:
IOException
-
getDataVars
-
populateDataTree
-
readData
Fulfill data requests- Returns:
- Array - an array with the requested data subset
- Throws:
IOExceptionInvalidRangeException
-
validProduct
-
getDataShape
-
addVar
-
getFileTypeId
-
getFileTypeDescription
-
close
- Specified by:
closein interfaceIOServiceProvider- Overrides:
closein classAbstractIOServiceProvider- Throws:
IOException
-
main
public static void main(String[] args) throws IOException, IllegalAccessException, InstantiationException
-