Package edu.wisc.ssec.mcidasv.data
Class TropomiIOSP
java.lang.Object
ucar.nc2.iosp.AbstractIOServiceProvider
edu.wisc.ssec.mcidasv.data.TropomiIOSP
- All Implemented Interfaces:
IOServiceProvider
- Author:
- tommyj
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Pattern
SometimesisValidFile(RandomAccessFile)
will need to check Windows paths that look something like/Z:/Users/bob/foo.txt
.private static final String
private static int[]
private static String
private NetcdfFile
private static final String
private static final org.slf4j.Logger
private static final String
private static final String
private static final String
static final Pattern
Compiled 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 void
addVar
(NetcdfFile nc, Group g, Variable vIn) void
close()
private static int[]
getDataShape
(NetcdfFile hdf) getDataVars
(NetcdfFile hdf, int[] dataShape) boolean
static void
void
open
(RandomAccessFile raf, NetcdfFile ncfile, CancelTask cancelTask) private static void
populateDataTree
(NetcdfFile ncOut, Map<String, List<Variable>> groupsToVars) Fulfill data requestsprivate static boolean
validProduct
(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, toStringDebug
-
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:
open
in interfaceIOServiceProvider
- Overrides:
open
in classAbstractIOServiceProvider
- Throws:
IOException
-
getDataVars
-
populateDataTree
-
readData
Fulfill data requests- Returns:
- Array - an array with the requested data subset
- Throws:
IOException
InvalidRangeException
-
validProduct
-
getDataShape
-
addVar
-
getFileTypeId
-
getFileTypeDescription
-
close
- Specified by:
close
in interfaceIOServiceProvider
- Overrides:
close
in classAbstractIOServiceProvider
- Throws:
IOException
-
main
public static void main(String[] args) throws IOException, IllegalAccessException, InstantiationException
-