Versions in this module Expand all Collapse all v0 v0.1.0 Mar 25, 2021 Changes in this version + func CopyHDU(dst, src *File, morekeys int) error + func CopyTable(dst, src *Table) error + func CopyTableRange(dst, src *Table, beg, end int64) error + func Version() float32 + func WriteHDU(w io.Writer, src *File) error + type Card struct + Comment string + Name string + Value interface{} + type Column struct + Bscale float64 + Bzero float64 + Dim []int64 + Display string + Format string + Len int + Name string + Null string + Start int64 + Type TypeCode + Unit string + Value Value + type Error int + var ANGLE_TOO_BIG Error = C.ANGLE_TOO_BIG + var APPROX_WCS_KEY Error = C.APPROX_WCS_KEY + var ARRAY_TOO_BIG Error = C.ARRAY_TOO_BIG + var BAD_ATABLE_FORMAT Error = C.BAD_ATABLE_FORMAT + var BAD_BITPIX Error = C.BAD_BITPIX + var BAD_BTABLE_FORMAT Error = C.BAD_BTABLE_FORMAT + var BAD_C2D Error = C.BAD_C2D + var BAD_C2F Error = C.BAD_C2F + var BAD_C2I Error = C.BAD_C2I + var BAD_COL_NUM Error = C.BAD_COL_NUM + var BAD_DATATYPE Error = C.BAD_DATATYPE + var BAD_DATA_FILL Error = C.BAD_DATA_FILL + var BAD_DATE Error = C.BAD_DATE + var BAD_DECIM Error = C.BAD_DECIM + var BAD_DIMEN Error = C.BAD_DIMEN + var BAD_DOUBLEKEY Error = C.BAD_DOUBLEKEY + var BAD_ELEM_NUM Error = C.BAD_ELEM_NUM + var BAD_F2C Error = C.BAD_F2C + var BAD_FILEPTR Error = C.BAD_FILEPTR + var BAD_FLOATKEY Error = C.BAD_FLOATKEY + var BAD_GCOUNT Error = C.BAD_GCOUNT + var BAD_GROUP_ATTACH Error = C.BAD_GROUP_ATTACH + var BAD_GROUP_DETACH Error = C.BAD_GROUP_DETACH + var BAD_GROUP_ID Error = C.BAD_GROUP_ID + var BAD_HDU_NUM Error = C.BAD_HDU_NUM + var BAD_HEADER_FILL Error = C.BAD_HEADER_FILL + var BAD_HEAP_PTR Error = C.BAD_HEAP_PTR + var BAD_I2C Error = C.BAD_I2C + var BAD_INDEX_KEY Error = C.BAD_INDEX_KEY + var BAD_INTKEY Error = C.BAD_INTKEY + var BAD_KEYCHAR Error = C.BAD_KEYCHAR + var BAD_LOGICALKEY Error = C.BAD_LOGICALKEY + var BAD_NAXES Error = C.BAD_NAXES + var BAD_NAXIS Error = C.BAD_NAXIS + var BAD_OPTION Error = C.BAD_OPTION + var BAD_ORDER Error = C.BAD_ORDER + var BAD_PCOUNT Error = C.BAD_PCOUNT + var BAD_PIX_NUM Error = C.BAD_PIX_NUM + var BAD_ROW_NUM Error = C.BAD_ROW_NUM + var BAD_ROW_WIDTH Error = C.BAD_ROW_WIDTH + var BAD_SIMPLE Error = C.BAD_SIMPLE + var BAD_TBCOL Error = C.BAD_TBCOL + var BAD_TDIM Error = C.BAD_TDIM + var BAD_TFIELDS Error = C.BAD_TFIELDS + var BAD_TFORM Error = C.BAD_TFORM + var BAD_TFORM_DTYPE Error = C.BAD_TFORM_DTYPE + var BAD_URL_PREFIX Error = C.BAD_URL_PREFIX + var BAD_WCS_PROJ Error = C.BAD_WCS_PROJ + var BAD_WCS_VAL Error = C.BAD_WCS_VAL + var COL_NOT_FOUND Error = C.COL_NOT_FOUND + var COL_NOT_UNIQUE Error = C.COL_NOT_UNIQUE + var COL_TOO_WIDE Error = C.COL_TOO_WIDE + var CREATE_DISK_FILE Error = C.CREATE_DISK_FILE + var DATA_COMPRESSION_ERR Error = C.DATA_COMPRESSION_ERR + var DATA_DECOMPRESSION_ERR Error = C.DATA_DECOMPRESSION_ERR + var DRIVER_INIT_FAILED Error = C.DRIVER_INIT_FAILED + var END_JUNK Error = C.END_JUNK + var END_OF_FILE Error = C.END_OF_FILE + var FILE_NOT_CLOSED Error = C.FILE_NOT_CLOSED + var FILE_NOT_CREATED Error = C.FILE_NOT_CREATED + var FILE_NOT_OPENED Error = C.FILE_NOT_OPENED + var GROUP_NOT_FOUND Error = C.GROUP_NOT_FOUND + var HDU_ALREADY_MEMBER Error = C.HDU_ALREADY_MEMBER + var HDU_ALREADY_TRACKED Error = C.HDU_ALREADY_TRACKED + var HEADER_NOT_EMPTY Error = C.HEADER_NOT_EMPTY + var IDENTICAL_POINTERS Error = C.IDENTICAL_POINTERS + var KEY_NO_EXIST Error = C.KEY_NO_EXIST + var KEY_OUT_BOUNDS Error = C.KEY_OUT_BOUNDS + var MEMBER_NOT_FOUND Error = C.MEMBER_NOT_FOUND + var MEMORY_ALLOCATION Error = C.MEMORY_ALLOCATION + var NEG_AXIS Error = C.NEG_AXIS + var NEG_BYTES Error = C.NEG_BYTES + var NEG_FILE_POS Error = C.NEG_FILE_POS + var NEG_ROWS Error = C.NEG_ROWS + var NEG_WIDTH Error = C.NEG_WIDTH + var NGP_BAD_ARG Error = C.NGP_BAD_ARG + var NGP_EMPTY_CURLINE Error = C.NGP_EMPTY_CURLINE + var NGP_EOF Error = C.NGP_EOF + var NGP_ERRBASE Error = C.NGP_ERRBASE + var NGP_ERR_FOPEN Error = C.NGP_ERR_FOPEN + var NGP_INC_NESTING Error = C.NGP_INC_NESTING + var NGP_NO_MEMORY Error = C.NGP_NO_MEMORY + var NGP_NUL_PTR Error = C.NGP_NUL_PTR + var NGP_OK Error = C.NGP_OK + var NGP_READ_ERR Error = C.NGP_READ_ERR + var NGP_TOKEN_NOT_EXPECT Error = C.NGP_TOKEN_NOT_EXPECT + var NGP_UNREAD_QUEUE_FULL Error = C.NGP_UNREAD_QUEUE_FULL + var NOT_ASCII_COL Error = C.NOT_ASCII_COL + var NOT_ATABLE Error = C.NOT_ATABLE + var NOT_BTABLE Error = C.NOT_BTABLE + var NOT_GROUP_TABLE Error = C.NOT_GROUP_TABLE + var NOT_IMAGE Error = C.NOT_IMAGE + var NOT_LOGICAL_COL Error = C.NOT_LOGICAL_COL + var NOT_POS_INT Error = C.NOT_POS_INT + var NOT_TABLE Error = C.NOT_TABLE + var NOT_VARI_LEN Error = C.NOT_VARI_LEN + var NO_BITPIX Error = C.NO_BITPIX + var NO_CLOSE_ERROR Error = C.NO_CLOSE_ERROR + var NO_COMPRESSED_TILE Error = C.NO_COMPRESSED_TILE + var NO_END Error = C.NO_END + var NO_GCOUNT Error = C.NO_GCOUNT + var NO_MATCHING_DRIVER Error = C.NO_MATCHING_DRIVER + var NO_NAXES Error = C.NO_NAXES + var NO_NAXIS Error = C.NO_NAXIS + var NO_NULL Error = C.NO_NULL + var NO_PCOUNT Error = C.NO_PCOUNT + var NO_QUOTE Error = C.NO_QUOTE + var NO_SIMPLE Error = C.NO_SIMPLE + var NO_TBCOL Error = C.NO_TBCOL + var NO_TFIELDS Error = C.NO_TFIELDS + var NO_TFORM Error = C.NO_TFORM + var NO_WCS_KEY Error = C.NO_WCS_KEY + var NO_XTENSION Error = C.NO_XTENSION + var NULL_INPUT_PTR Error = C.NULL_INPUT_PTR + var NUM_OVERFLOW Error = C.NUM_OVERFLOW + var OPEN_DISK_FILE Error = C.OPEN_DISK_FILE + var OVERFLOW_ERR Error = C.OVERFLOW_ERR + var PARSE_BAD_COL Error = C.PARSE_BAD_COL + var PARSE_BAD_OUTPUT Error = C.PARSE_BAD_OUTPUT + var PARSE_BAD_TYPE Error = C.PARSE_BAD_TYPE + var PARSE_LRG_VECTOR Error = C.PARSE_LRG_VECTOR + var PARSE_NO_OUTPUT Error = C.PARSE_NO_OUTPUT + var PARSE_SYNTAX_ERR Error = C.PARSE_SYNTAX_ERR + var PREPEND_PRIMARY Error = C.PREPEND_PRIMARY + var RANGE_PARSE_ERROR Error = C.RANGE_PARSE_ERROR + var READONLY_FILE Error = C.READONLY_FILE + var READ_ERROR Error = C.READ_ERROR + var SAME_FILE Error = C.SAME_FILE + var SEEK_ERROR Error = C.SEEK_ERROR + var SHARED_AGAIN Error = C.SHARED_AGAIN + var SHARED_BADARG Error = C.SHARED_BADARG + var SHARED_ERRBASE Error = C.SHARED_ERRBASE + var SHARED_IPCERR Error = C.SHARED_IPCERR + var SHARED_NOFILE Error = C.SHARED_NOFILE + var SHARED_NOMEM Error = C.SHARED_NOMEM + var SHARED_NORESIZE Error = C.SHARED_NORESIZE + var SHARED_NOTINIT Error = C.SHARED_NOTINIT + var SHARED_NULPTR Error = C.SHARED_NULPTR + var SHARED_TABFULL Error = C.SHARED_TABFULL + var SKIP_IMAGE Error = C.SKIP_IMAGE + var SKIP_NULL_PRIMARY Error = C.SKIP_NULL_PRIMARY + var SKIP_TABLE Error = C.SKIP_TABLE + var TOO_MANY_DRIVERS Error = C.TOO_MANY_DRIVERS + var TOO_MANY_FILES Error = C.TOO_MANY_FILES + var TOO_MANY_HDUS_TRACKED Error = C.TOO_MANY_HDUS_TRACKED + var UNKNOWN_EXT Error = C.UNKNOWN_EXT + var UNKNOWN_REC Error = C.UNKNOWN_REC + var URL_PARSE_ERROR Error = C.URL_PARSE_ERROR + var USE_MEM_BUFF Error = C.USE_MEM_BUFF + var VALUE_UNDEFINED Error = C.VALUE_UNDEFINED + var WCS_ERROR Error = C.WCS_ERROR + var WRITE_ERROR Error = C.WRITE_ERROR + var ZERO_SCALE Error = C.ZERO_SCALE + func (err Error) Error() string + type File struct + func Create(fname string) (File, error) + func Open(fname string, mode Mode) (File, error) + func (f *File) CHDU() HDU + func (f *File) Close() error + func (f *File) Copy(out *File, previous, current, following bool) error + func (f *File) Delete() error + func (f *File) HDU(i int) HDU + func (f *File) HDUNum() int + func (f *File) HDUType() (HDUType, error) + func (f *File) HDUs() []HDU + func (f *File) Mode() (Mode, error) + func (f *File) Name() (string, error) + func (f *File) NumHDUs() (int, error) + func (f *File) SeekHDU(hdu int, whence int) error + func (f *File) SeekHDUByName(hdu HDUType, extname string, extvers int) error + func (f *File) UrlType() (string, error) + type HDU interface + Close func() error + Data func(data interface{}) error + Header func() Header + Name func() string + Type func() HDUType + Version func() int + func NewPrimaryHDU(f *File, hdr Header) (HDU, error) + type HDUType int + const ANY_HDU + const ASCII_TBL + const BINARY_TBL + const IMAGE_HDU + func (hdu HDUType) String() string + type Header struct + func NewDefaultHeader() Header + func NewHeader(cards []Card, htype HDUType, bitpix int64, axes []int64) Header + func (h *Header) AddComment(v string) + func (h *Header) AddHistory(v string) + func (h *Header) Append(cards ...Card) *Header + func (h *Header) Axes() []int64 + func (h *Header) Bitpix() int64 + func (h *Header) Clear() + func (h *Header) Comment() string + func (h *Header) Get(n string) *Card + func (h *Header) History() string + func (h *Header) Index(n string) int + func (h *Header) Keys() []string + func (h *Header) Set(n string, v interface{}, comment string) + type ImageHDU struct + func (hdu *ImageHDU) Close() error + func (hdu *ImageHDU) Data(data interface{}) error + func (hdu *ImageHDU) Header() Header + func (hdu *ImageHDU) Name() string + func (hdu *ImageHDU) Type() HDUType + func (hdu *ImageHDU) Version() int + func (hdu *ImageHDU) Write(data interface{}) error + type Mode int + const ReadOnly + const ReadWrite + type PrimaryHDU struct + func (hdu *PrimaryHDU) Name() string + func (hdu *PrimaryHDU) Version() int + type Rows struct + func (rows *Rows) Close() error + func (rows *Rows) Err() error + func (rows *Rows) Next() bool + func (rows *Rows) Scan(args ...interface{}) error + type Table struct + func NewTable(f *File, name string, cols []Column, hdutype HDUType) (*Table, error) + func NewTableFrom(f *File, name string, v Value, hdutype HDUType) (*Table, error) + func (hdu *Table) Close() error + func (hdu *Table) Col(i int) *Column + func (hdu *Table) Cols() []Column + func (hdu *Table) Data(interface{}) error + func (hdu *Table) Header() Header + func (hdu *Table) Index(n string) int + func (hdu *Table) Name() string + func (hdu *Table) NumCols() int + func (hdu *Table) NumRows() int64 + func (hdu *Table) Read(beg, end int64) (*Rows, error) + func (hdu *Table) ReadRange(beg, end, inc int64) (*Rows, error) + func (hdu *Table) Type() HDUType + func (hdu *Table) Version() int + func (hdu *Table) Write(args ...interface{}) error + type TypeCode int + const TBIT + const TBYTE + const TCOMPLEX + const TDBLCOMPLEX + const TDOUBLE + const TFLOAT + const TINT + const TINT32BIT + const TLOGICAL + const TLONG + const TLONGLONG + const TSBYTE + const TSHORT + const TSTRING + const TUINT + const TULONG + const TUSHORT + const TVLABIT + const TVLABYTE + const TVLACOMPLEX + const TVLADBLCOMPLEX + const TVLADOUBLE + const TVLAFLOAT + const TVLAINT + const TVLAINT32BIT + const TVLALOGICAL + const TVLALONG + const TVLALONGLONG + const TVLASBYTE + const TVLASHORT + const TVLASTRING + const TVLAUINT + const TVLAULONG + const TVLAUSHORT + func (tc TypeCode) String() string + type Value interface