64 const QString &name) : _blobname(blobname),
65 _fieldname(fieldname), _name(name) {
93 const QString &fieldname,
94 const QString &name) :
96 _fieldname(fieldname),
168 " is not double or integer";
187 BlobBuf pixels(nlines, nsamps);
188 for (
int i = 0 ; i < nlines ; i++) {
190 for (
unsigned int j = 0 ; j < d.size() ; j++) {
213 BlobBuf pixels(nlines, nsamps);
214 for (
int i = 0 ; i < nlines ; i++) {
216 for (
unsigned int j = 0 ; j < d.size(); j++) {
217 pixels[i][j] = int2ToDouble(d[j]);
234 double Blobber::int2ToDouble(
int value)
const {
235 if (value == NULL2)
return NULL8;
236 else if (value == LOW_REPR_SAT2)
return LOW_REPR_SAT8;
237 else if (value == LOW_INSTR_SAT2)
return LOW_INSTR_SAT8;
238 else if (value == HIGH_INSTR_SAT2)
return HIGH_INSTR_SAT8;
239 else if (value == HIGH_REPR_SAT2)
return HIGH_REPR_SAT8;
245 double Blobber::int2ToDouble(
unsigned int value)
const {
246 if (value == NULLUI4)
return NULL8;
247 else if (value == LOW_REPR_SATUI4)
return LOW_REPR_SAT8;
248 else if (value == LOW_INSTR_SATUI4)
return LOW_INSTR_SAT8;
249 else if (value == HIGH_INSTR_SATUI4)
return HIGH_INSTR_SAT8;
250 else if (value == HIGH_REPR_SATUI4)
return HIGH_REPR_SAT8;
TNT::Array2D< double > BlobBuf
Internal buffer uses TNT.
int Records() const
Returns the number of records.
QString getFieldName() const
Retreive the name of the field in the Tabel object BLOB.
Base class for accessing ISIS blobs.
void load(const QString &filename)
Loads the contents of a BLOB from a cube file.
void loadInteger(Table &tbl)
Provides direct reading in of the field data from the BLOB.
QString getBlobName() const
Retrieves the name of the Table object.
This error is for when a programmer made an API call that was illegal.
void loadDouble(Table &tbl)
Provides direct reading in of the field data from the BLOB.
bool isInteger() const
Determines whether the field type is Integer.
#define _FILEINFO_
Macro for the filename and line number.
BlobBuf _buf
Buffer holding data.
void read(Blob &blob) const
This method will read data from the specified Blob object.
void open(const QString &cfile, QString access="r")
This method will open an isis cube for reading or reading/writing.
Blobber deepcopy() const
Create a unique copy of this blob.
Class for storing Table blobs information.
Namespace for ISIS/Bullet specific routines.
Blobber()
Default basic constructor that is mostly not useful.
Class for storing an Isis::Table's field information.
bool isDouble() const
Determines whether the field type is Double.
IO Handler for Isis Cubes.