/* Name- mirs_collocator.h Language- C Type- header Version- 1.0 Date- 1/30/2026 Programmer- Mike Pettey (STC) This header file defines some global variables and structures that are used by the AddMirsToNprovs. */ #include "uthash.h" #define TRUE 0 #define FALSE 1 struct collocation_data { int date; int time; long epoch_time; float latitude; float longitude; float cartesian_x; float cartesian_y; float cartesian_z; // float sonde_drift_lat[118]; // float sonde_drift_lon[118]; // long sonde_epoch_time[118]; float *sonde_drift_lat; float *sonde_drift_lon; long *sonde_epoch_time; float closest_value; char closest_snd_granule[500]; char closest_img_granule[500]; char closest_snow_granule[500]; int closest_footprint; int closest_scanline; int closest_fov; // float closest_sonde_value[118]; // int closest_sonde_footprint[118]; // char closest_sonde_granule[118][500]; float *closest_sonde_value; int *closest_sonde_footprint; char *closest_sonde_granule; // NEW FIELDS FOR TWO-PASS RAM CACHING: // void *snd_buffer; // Pointer to the allocated memory block for SND // size_t snd_size; // Size of the SND file in bytes char snd_name[256]; // File name of the SND granule // void *img_buffer; // Pointer to the allocated memory block for IMG // size_t img_size; // Size of the IMG file in bytes char img_name[256]; // File name of the IMG granule // void *snow_buffer; // Pointer to the allocated memory block for IMG // size_t snow_size; // Size of the IMG file in bytes char snow_name[256]; // File name of the IMG granule }; struct FileEntry { char filename[256]; /* key */ UT_hash_handle hh; /* makes this structure hashable */ }; // end of file