MCPcopy Create free account
hub / github.com/DOI-USGS/ISIS3 / SetOutputCube

Method SetOutputCube

isis/src/base/objs/Process/Process.cpp:163–175  ·  view source on GitHub ↗

* Allocates a user-specified output cube whose size matches the first input * cube. * * @return Cube* * * @param parameter User specified output file. For example, "TO" is a popular * user parameter. If the user specified TO=output.cub, then * this routine would allocate the file output.cub with size * specified by the firs

Source from the content-addressed store, hash-verified

161 * @throws Isis::iException::Message
162 */
163 Isis::Cube *Process::SetOutputCube(const QString &parameter) {
164 // Make sure we have an input cube to get a default size from
165 if(InputCubes.size() == 0) {
166 QString message = "No input images have been selected ... therefore";
167 message += "the output image size can not be determined";
168 throw IException(IException::Programmer, message, _FILEINFO_);
169 }
170
171 int nl = InputCubes[0]->lineCount();
172 int ns = InputCubes[0]->sampleCount();
173 int nb = InputCubes[0]->bandCount();
174 return SetOutputCube(parameter, ns, nl, nb);
175 }
176
177
178 /**

Callers 15

eisstitchFunction · 0.45
eis2isisFunction · 0.45
ciss2isisFunction · 0.45
IsisMainFunction · 0.45
IsisMainFunction · 0.45
IsisMainFunction · 0.45
IsisMainFunction · 0.45
apollocalFunction · 0.45
IsisMainFunction · 0.45
apolloremrxFunction · 0.45
apolloPanStitcherFunction · 0.45

Calls 15

GetCubeNameMethod · 0.80
setDimensionsMethod · 0.80
propagateFileFormatMethod · 0.80
fileFormatMethod · 0.80
setLabelsAttachedMethod · 0.80
labelAttachmentMethod · 0.80
propagatePixelTypeMethod · 0.80
setBaseMultiplierMethod · 0.80
baseMethod · 0.80
multiplierMethod · 0.80
setMinMaxMethod · 0.80

Tested by 5

IsisMainFunction · 0.36
IsisMainFunction · 0.36
IsisMainFunction · 0.36
IsisMainFunction · 0.36
IsisMainFunction · 0.36