示例#1
0
 private void Initialize(WCSInfo wcsi, bool priamry)
 {
     _primary    = priamry;
     _wcsInfo    = wcsi;
     _numWCSAxes = -1;   // means WCSAXIS cardimage doesn't exist
     // those will be filled as we receive cardiamges. Finalize will create an IVector from each.
     _worldRefElements    = new List <double>(3);
     _pixelRefElements    = new List <double>(3);
     _pix2physElements    = new List <double>(3);
     _oldRotationElements = new List <double>(3);
     _randErrElements     = new List <double>(3);
     _sysErrElements      = new List <double>(3);
     _PCij = new List <List <double> >(4);
     _axes = new List <WCSAxis>();
 }
示例#2
0
文件: HDU.cs 项目: bluephoton/najm
 internal HDU(FITSFile file, int index)
 {
     _file              = file;
     _index             = index;
     _type              = HDUType.Unknown;
     _bitsPerPixel      = 0;
     _blank             = double.NaN;
     _hasData           = false;
     _dataMngr          = null;
     _heap              = null;
     _paramsLength      = 0;
     _numGroups         = 1;
     _table             = null;
     _mayHaveExtensions = false;
     _cardImages        = new List <CardImage>(20);
     _cardImagesMap     = new Dictionary <string, int>(20);
     _axes              = new List <Axis>();
     _wcsInfo           = new WCSInfo(this);
 }
示例#3
0
 internal Transformation(WCSInfo wcsi)
 {
     Initialize(wcsi, false);
 }
示例#4
0
 internal Transformation(WCSInfo wcsi, bool primary)
 {
     Initialize(wcsi, primary);
 }