#include "time_class.h"
typedef int int4_t;
struct gome_rec {
time_class date;
float lon;
float lat;
float *counts;
};
struct gome_data {
int4_t npix; //number of pixels
int4_t nchan; //number of channels
gome_rec * data;
float missing;
};
gome_data * read_gome(char *fname, float **spec, int *nchan, int nb);
void delete_gome_data(gome_data *data);
int4_t rawread_gome_head(char *filename, time_class & t1, time_class & t2,
int4_t &nchan, int swap_end=0);
int4_t rawwrite_gome(char * filename, gome_data *data, int swap_end=0);
gome_data * rawread_gome(char * filename, int swap_end=0);