## org.autoplot.pdsppi.PDSPPIDB

Class containing the logic for communicating with the PDS-PPI database.

## PDSPPIDB( )

## PDSPPI

## checkTimeSeriesBrowse

checkTimeSeriesBrowse( String uri ) → String

parameterize the URI so that any number of files can be read in. For example,

>      vap+pdsppi:sc=Cassini&id=PPI/CO-S-MIMI-4-LEMMS-CALIB-V1.0/DATA/LACCAVG0_1MIN/2006/LACCAVG0_1MIN_2006269_01¶m=E0

would result in

>     vap+pdsppi:sc=Cassini&id=PPI/CO-S-MIMI-4-LEMMS-CALIB-V1.0/DATA/LACCAVG0_1MIN/$Y/LACCAVG0_1MIN_$Y$j_01¶m=E0

### Parameters

uri - a String

### Returns:

the aggregation URI or null.
[search for examples] [view on GitHub] [view on old javadoc]

## getIds

getIds( ) → java.util.List

### Returns:

java.util.List
[search for examples] [view on GitHub] [view on old javadoc]

## getIds

getIds( java.util.regex.Pattern p ) → java.util.List

return the IDs matching the result.

### Parameters

p - regular expression pattern

### Returns:

the matching list.
[search for examples] [view on GitHub] [view on old javadoc]

## getIds

getIds( String constraint, String reqPrefix ) → String[]

Get the IDs matching the constraint.

### Parameters

constraint - constraints, such as sc=Galileo
reqPrefix - each item of result must start with this. (PPI/ was omitted.)

### Returns:

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

## getInstance

getInstance( ) → org.autoplot.pdsppi.PDSPPIDB

### Returns:

org.autoplot.pdsppi.PDSPPIDB
[search for examples] [view on GitHub] [view on old javadoc]

## getParams

getParams( String id, ProgressMonitor mon ) → java.util.Map

return a list of the plottable parameter datasets within the ID. TODO: this loads the entire dataset, this will be fixed.

### Parameters

id - a String
mon - a ProgressMonitor

### Returns:

Map label->title of the params.
[search for examples] [view on GitHub] [view on old javadoc]

## getSpacecraft

getSpacecraft( ) → String[]

returns the spacecraft.

### Returns:

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

## isPlottable

isPlottable( String ds ) → boolean

return true if the name appears to be a plottable id.

### Parameters

ds - name from their filesystem that ends with .lbl, .tab, etc.

### Returns:

true if the id appears to be plottable.
[search for examples] [view on GitHub] [view on old javadoc]

## main

main( String[] args ) → void

### Parameters

args - a java.lang.String[]

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc]

## removeExtraSlashes

removeExtraSlashes( String root ) → String

apparently the id needs to have underscores where there are slashes... e.g. PPI/CO-E/J/S/SW-CAPS-5-DDR-ELE-MOMENTS-V1.0 -> PPI/CO-E_J_S_SW-CAPS-5-DDR-ELE-MOMENTS-V1.0

### Parameters

root - like PPI/CO-E/J/S/SW-CAPS-5-DDR-ELE-MOMENTS-V1.0/

### Returns:

result like PPI/CO-E_J_S_SW-CAPS-5-DDR-ELE-MOMENTS-V1.0
[search for examples] [view on GitHub] [view on old javadoc]