📄 fits_asf.h
字号:
/***************************************************************************
文件名:fits_asf.h
copyright :1.0 中国科学院光电研究院有效载荷应用中心
创建人 : 冯鹏
日期:2007.1.20
修改人: 无
日期: 无
描述:定义处理姿态数据时的数据结构和函数原形
***************************************************************************/
#ifndef FITS_ASF_H_
#define FITS_ASF_H_
#include <string>
#include "fits_util.h"
#include "hxmt_file.h"
#include "Fits.h"
#include "fitsio.h"
/****************星历文件结构,用于存放星历文件内容******************/
typedef struct ZT_struct
{
timespec_t utc;
double trans_lon;
double trans_lat;
double trans_lon_angle;
double trans_lat_angle;
struct ZT_struct() : trans_lat(0.0), trans_lon(0.0), trans_lon_angle(0.0), trans_lat_angle(0.0) {}
bool operator < ( const struct ZT_struct & x ) const {
return ( (utc.time < x.utc.time)
|| ((utc.time == x.utc.time) && (utc.usec < x.utc.usec)));
}
typedef std::vector<struct ZT_struct>::const_iterator find_pointer;
static find_pointer& get_find_pointer() {
return s_ite;
}
static void reset_find_pointer() {
s_ite = NULL;
}
static void set_find_pointer( find_pointer i ) {
s_ite = i;
}
private:
static find_pointer s_ite;
} ZT_t;
int LoadZT( const hxmt_file_t *hxmtfile , struct sci_intern *s );
int process_zt( const hxmt_file_t *hxmtfile );
int open_fits_zt( const hxmt_file_t *hxmtfile, fitsfile **fptr );
int write_fits_zt( fitsfile *fptr, const ZT_t *zt, int n );
int close_fits_zt( fitsfile *fptr );
#endif /* FITS_ASF_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -