USGS

Isis 3.0 Application Source Code Reference

Home

lrowac2isis.cpp File Reference

Go to the source code of this file.

Functions

void separateFramelets (Buffer &in)
 Separates each of the individual WAC framelets into the right place.
void writeNullsToFile ()
 This initializes all of the files will NULL DN's.
void TranslateLabels (Pvl &pdsLab, Pvl &isis3VisEven, Pvl &isis3VisOdd, Pvl &isis3UvEven, Pvl &isis3UvOdd)
 This calculates the output labels for each file, which are only valid if the output cubes have been created (uses ns/nl from each file if available).
void ValidateInputLabels (Pvl &pdsLab)
 This method ensures the integrety of the input labels and that the file is exactly as expected.
void IsisMain ()
int getFrameletNumber (int line, int &frameletSetNumber, int &frameletSetOffset, int &frameletLineOffset, bool &even)
 Get the framelet number line is in.

Variables

vector< Cube * > outputCubes
vector< int > frameletLines
std::vector< int > padding
int colorOffset = 0
int inputCubeLines = 0
Cubeuveven = NULL
Cubeuvodd = NULL
Cubeviseven = NULL
Cubevisodd = NULL
Stretch lookupTable
bool flip = false

Function Documentation

void separateFramelets ( Buffer &  in  ) 

Separates each of the individual WAC framelets into the right place.

Definition at line 321 of file lrowac2isis.cpp.

void writeNullsToFile (  ) 

This initializes all of the files will NULL DN's.

Definition at line 620 of file lrowac2isis.cpp.

void TranslateLabels ( Pvl &  pdsLab,
Pvl &  isis3VisEven,
Pvl &  isis3VisOdd,
Pvl &  isis3UvEven,
Pvl &  isis3UvOdd 
)

This calculates the output labels for each file, which are only valid if the output cubes have been created (uses ns/nl from each file if available).

Otherwise the label calculated for that particular file is incomplete and invalid.

One input file goes to 2 or 4 output file, so let's calculate everything we can here.

Parameters:
pdsLab Input File Label
isis3VisEven Even vis file output label
isis3VisOdd Odd vis file output label
isis3UvEven Even UV file output label
isis3UvOdd Odd UV file output label

Definition at line 455 of file lrowac2isis.cpp.

void ValidateInputLabels ( Pvl &  pdsLab  ) 

This method ensures the integrety of the input labels and that the file is exactly as expected.

Parameters:
pdsLab PDS Cube Labels

Definition at line 668 of file lrowac2isis.cpp.

void IsisMain (  ) 

Definition at line 42 of file lrowac2isis.cpp.

int getFrameletNumber ( int  line,
int &  frameletSetNumber,
int &  frameletSetOffset,
int &  frameletLineOffset,
bool &  even 
)

Get the framelet number line is in.

Parameters:
line input line number (starting at 1)
even Set to true if even framelet, otherwise false
Returns:
int framelet this line belongs to

Definition at line 287 of file lrowac2isis.cpp.


Variable Documentation

vector<Cube *> outputCubes

Definition at line 18 of file lrowac2isis.cpp.

vector<int> frameletLines

Definition at line 19 of file lrowac2isis.cpp.

std::vector<int> padding

Definition at line 26 of file lrowac2isis.cpp.

int colorOffset = 0

Definition at line 27 of file lrowac2isis.cpp.

int inputCubeLines = 0

Definition at line 28 of file lrowac2isis.cpp.

Cube* uveven = NULL

Definition at line 31 of file lrowac2isis.cpp.

Cube* uvodd = NULL

Definition at line 32 of file lrowac2isis.cpp.

Cube* viseven = NULL

Definition at line 35 of file lrowac2isis.cpp.

Cube* visodd = NULL

Definition at line 36 of file lrowac2isis.cpp.

Stretch lookupTable

Definition at line 38 of file lrowac2isis.cpp.

void flip = false

Definition at line 40 of file lrowac2isis.cpp.