org.das2.datum.OrbitDatumRange
DatumRange implementation that identifies times by orbit number. Note orbit numbers are strings, see Cassini for why.
next will return the same one at the end of the sequence.
dr= new OrbitDatumRange( "crres", "6" )
dr.toString() → "orbit:crres:6"
dr= dr.next()
dr.toString() → "orbit:crres:7"
Also, orbit:http://das2.org/wiki/index.php/Orbits/crres:6 is supported for development work and personal lists.
OrbitDatumRange( String sc, String orbit )
OrbitDatumRange( String sc, String orbit, Units unitPref )
compareTo
compareTo( Object o ) → int
Parameters
o - an Object
Returns:
int
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
convertTo
convertTo( Units u ) → DatumRange
Parameters
u - an Units
Returns:
org.das2.datum.DatumRange
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
equals
equals( Object o ) → boolean
Parameters
o - an Object
Returns:
boolean
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getOrbit
getOrbit( ) → String
return the string identifying this orbit, assuming the context is
provided elsewhere. For example, supposing this toString() is "orbit:rbspa-pp:43"
then this would return just "43"
Returns:
the string providing the orbit.
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getSpacecraft
getSpacecraft( ) → String
return the spacecraft for the orbits, which can be a reference to a 3-column file.
Returns:
the spacecraft id.
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
hashCode
hashCode( ) → int
Returns:
int
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
maybeRelativize
maybeRelativize( String pwd, org.das2.datum.OrbitDatumRange odr, String extraFormat ) → org.das2.datum.OrbitDatumRange
return a special OrbitDatumRange which contains metadata which will allow it to be represented as %{PWD}orbit.dat,
so that .vap files can use resources relative to the .vap.These should not be used outside of this context,
but doing so is harmless.
Parameters
pwd - the absolute position
odr - the OrbitDatumRange to be relativized.
extraFormat - extra directory that will be used when saved.
Returns:
either the original OrbitDatumRange, or a new relative one, which will serialize to "orbit:%{PWD}orbit.dat".
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
maybeRelativize( String pwd, org.das2.datum.OrbitDatumRange odr ) → org.das2.datum.OrbitDatumRange [view source]
next
next( ) → DatumRange
Returns:
org.das2.datum.DatumRange
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
previous
previous( ) → DatumRange
Returns:
org.das2.datum.DatumRange
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
setCheat
setCheat( String cheat ) → void
add subdirectory to %{PWD} when formatting, so we can embed the orbits file in a zip file under a "cheat" directory.
Though this is public, it should not be used unless you thoroughly understand why this was done.
Parameters
cheat - a String
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
toString
toString( ) → String
Returns:
java.lang.String
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]