File: weight.h

package info (click to toggle)
fitsh 0.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 2,768 kB
  • ctags: 4,050
  • sloc: ansic: 53,352; makefile: 1,120; sh: 25
file content (50 lines) | stat: -rw-r--r-- 1,361 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*****************************************************************************/
/* weight.h								     */
/*****************************************************************************/

#ifndef	__WEIGHT_H_INCLUDED
#define	__WEIGHT_H_INCLUDED	1

#include <fits/fits.h>

#include "stars.h"
#include "psf.h"

/*****************************************************************************/

typedef struct
 {	double	x,y;
	int	ix,iy;
	double	flux;
	double	**iarr;
 } weight;

typedef struct
 {	double	***zdata;
	weight	*weights;
	int	nweight;
	int	hsize,grid;
 } weightlist;

/* weight-star.c */ /*********************************************************/

int	weight_draw(weightlist *wl,star *stars,int nstar,
		int hsize,int grid,psf *tpd);

/* weight-io.c */ /***********************************************************/

fits *	weight_fits_create(weightlist *wl);
int	weight_parse_fits(fits *img,weightlist *wl);

/* weight-gen.c */ /**********************************************************/

int	weight_sort(weightlist *wl);
weight *weight_get_closest(weightlist *wl,double x0,double y0);
int	weight_get_intersec_list(weightlist *wl,int x0,int y0,int sx,int sy,
		int *list,int maxcnt);

/*****************************************************************************/

#endif

/*****************************************************************************/