org.autoplot.pds.Pds3DataSource

PDS4 file source. This is pointed at PDS4 xml files and will return data they describe.

Pds3DataSource( java.net.URI uri )


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 ) → Map

Parameters

mon - a ProgressMonitor

Returns:

java.util.Map

[search for examples] [view on GitHub] [view on old javadoc]


readXML

readXML( java.io.File f ) → Document

Read the XML file into a document.

Parameters

f - the file

Returns:

the document object

[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 ) → 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]