#include <Viff.h>
Definition at line 57 of file Viff.h.
Enumerator |
---|
BYTE |
|
SHORT |
|
INTEGER |
|
FLOAT |
|
DOUBLE |
|
COMPLEX |
|
DCOMPLEX |
|
Definition at line 59 of file Viff.h.
Get the casacore::Array out of this Viff structre.
If the Viff structure isn't initialized it will return a 0-sized array and set the flag to false. This will convert from the internal Viff type to the desired casacore::Array<T> type. casacore::Complex types are turned into real and integer types by taking the real component.
Viff can be thought of as always containing a "3D" data structure, and a vector is when only one of the dimentions is non-unity.
nx(), ny() and nx() return 0 if the Viff object isn't defined.
Put casacore::Array (or any class derived from it, casacore::Vector, casacore::Matrix, Cube...) into this Viff structure.
Non-degenerate arrays of dimension >=4 will cause a "false" to be returned, since Viff images are restricted to 3 dimensions. When the Viff type and the casacore::Array types differ, a conversion will be done. casacore::Complex types are turned into real and integer by taking the real component.
We can assign an N dimensional location to each (x,y) position in the Viff object (yes, this is strange - ask the authors of Viff), i.e.
we can assign nx()*ny() N-dimensional locations. Fundamentally this is done by giving a casacore::Cube<float> of values where the first two indices in the casacore::Cube correspond to the (x,y) in the Viff structure, and the Z-depth of the cube corresponds to the dimensionality of the positions we want to assign. Because a casacore::Cube can be constructed from a casacore::Vector, to create a file which contains a y vs x vector plot, you merely have to do something like: viff.put(y); viff.putLocations(x);
Read the Viff file specified by name; return false if it fails (file does not exist, no permissions, etc).
void Viff::setDefaults |
( |
| ) |
|
|
private |
These members are the arguments to create image;.
Write the current Viff structure to a file; create a 0-sized Viff image if this object has not been previously filled (by read or by put).
Return true if this succeeds, false otherwise. Note that this will overwrite an existing file.
unsigned long Viff::col_size |
|
private |
unsigned long Viff::data_storage_type |
|
private |
unsigned long Viff::location_dim |
|
private |
unsigned long Viff::location_type |
|
private |
unsigned long Viff::map_col_size |
|
private |
unsigned long Viff::map_row_size |
|
private |
unsigned long Viff::map_scheme |
|
private |
unsigned long Viff::map_storage_type |
|
private |
unsigned long Viff::num_data_bands |
|
private |
unsigned long Viff::num_of_images |
|
private |
unsigned long Viff::row_size |
|
private |
The documentation for this class was generated from the following file: