org.autoplot.pds.Pds3DataSource
PDS4 file source. This is pointed at PDS4 xml files and will return data
they describe.
getDataSet
getDataSet( ProgressMonitor mon ) → QDataSet
Parameters
mon - a ProgressMonitor
Returns:
org.das2.qds.QDataSet
[search for examples]
[view on GitHub]
[view on old javadoc]
getDataSetFromBundle
getDataSetFromBundle( org.w3c.dom.Document doc, ProgressMonitor mon ) → QDataSet
given the bundle, figure out which files should be loaded to implement the time range. This will call recursively
into this code for each item. This unimplemented stub returns an empty dataset.
//TODO: implement me
Parameters
doc - the xml document
mon - progress monitor
Returns:
rank 0 stub
[search for examples]
[view on GitHub]
[view on old javadoc]
getDataSetFromCollection
getDataSetFromCollection( org.w3c.dom.Document doc, ProgressMonitor mon ) → QDataSet
given the collection, figure out which files should be loaded to implement the time range. This will call recursively
into this code for each item. This unimplemented stub returns an empty dataset.
//TODO: implement me
Parameters
doc - the xml document
mon - progress monitor
Returns:
rank 0 stub
[search for examples]
[view on GitHub]
[view on old javadoc]
getMetadata
getMetadata( ProgressMonitor mon ) → java.util.Map
Parameters
mon - a ProgressMonitor
Returns:
java.util.Map
[search for examples]
[view on GitHub]
[view on old javadoc]
isTimeTag
isTimeTag( String dataType, String unit ) → boolean
here is the one place for this logic which identifies if the column contains timetags.
Parameters
dataType - a String
unit - a String
Returns:
true if this column will be interpreted as time tags.
[search for examples]
[view on GitHub]
[view on old javadoc]
resolveIndependentAxis
resolveIndependentAxis( org.w3c.dom.Document doc, String axisName ) → String
return the name of the independent parameter that works in this axis.
This currently assumes the first node with this axisName is the
independent axis.
For example, with https://space.physics.uiowa.edu/voyager/data/voyager-2-pws-wf/data/1987/vg2_pws_wf_1987-04-21T17_v1.0.xml,
if axisName=='time' then the result will be "Epoch"
This shows where this logic fails:
https://pds-ppi.igpp.ucla.edu/data/maven-swea-calibrated/data/arc_pad/2016/03/mvn_swe_l2_arcpad_20160316_v04_r01.xml
For this file, I had to kludge in a test for the pitch angles.
Parameters
doc - the xml document
axisName - the axis name
Returns:
null or the independent variable for the axis.
[search for examples]
[view on GitHub]
[view on old javadoc]
seekDependencies
seekDependencies( org.w3c.dom.Document doc, java.util.List depend ) → java.util.List
look through the PDS label document to see if dependencies can be
identified. Presently, this is simply one other dataset with the
same axis (as in sample_offset) or the same axis name as something
that has a time unit (Epoch).
Parameters
doc - the parsed document for the label XML
depend - the name of the data for the dependent variable, e.g. Waveform
Returns:
( Epoch, sample_offset, Waveform )
See Also:
https://space.physics.uiowa.edu/voyager/data/voyager-2-pws-wf/data/1987/vg2_pws_wf_1987-04-21T17_v0.9.xml
[search for examples]
[view on GitHub]
[view on old javadoc]