Code to flash group data from the GOES-17 Global Lightning Mapper. More...
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "ncglm.h"
Functions | |
int | glm_read_flash_structs (int ncid, size_t *nflash, GLM_FLASH_T *flash) |
Read and unpack all the flash data in the file. More... | |
int | glm_read_flash_arrays (int ncid, size_t *nflash, float *time_offset_of_first_event, float *time_offset_of_last_event, float *frame_time_offset_of_first_event, float *frame_time_offset_of_last_event, float *lat, float *lon, float *area, float *energy, short *quality_flag) |
Read and unpack all the flash data in the file. More... | |
Code to flash group data from the GOES-17 Global Lightning Mapper.
int glm_read_flash_arrays | ( | int | ncid, |
size_t * | nflash, | ||
float * | time_offset_of_first_event, | ||
float * | time_offset_of_last_event, | ||
float * | frame_time_offset_of_first_event, | ||
float * | frame_time_offset_of_last_event, | ||
float * | lat, | ||
float * | lon, | ||
float * | area, | ||
float * | energy, | ||
short * | quality_flag | ||
) |
Read and unpack all the flash data in the file.
It will be loaded into the pre-allocated array of struct GLM_FLASH_T.
ncid | ID of already opened GLM file. |
nflash | A pointer that gets the number of flashes. Ignored if NULL. |
time_offset_of_first_event | Pointer to already-allocated array of float for time_offset_of_first_event data, or NULL if struct reads are being done. |
time_offset_of_last_event | Pointer to already-allocated array of float for time_offset_of_last_event data, or NULL if struct reads are being done. |
frame_time_offset_of_first_event | Pointer to already-allocated array of float for frame_time_offset_of_first_event data, or NULL if struct reads are being done. |
frame_time_offset_of_last_event | Pointer to already-allocated array of float for frame_time_offset_of_last_event data, or NULL if struct reads are being done. |
lat | Pointer to already-allocated array of float for lat data, or NULL if struct reads are being done. |
lon | Pointer to already-allocated array of float for lon data, or NULL if struct reads are being done. |
area | Pointer to already-allocated array of float for area data, or NULL if struct reads are being done. |
energy | Pointer to already-allocated array of float for energy data, or NULL if struct reads are being done. |
quality_flag | Pointer to already-allocated array of short for quality flag data, or NULL if struct reads are being done. |
int glm_read_flash_structs | ( | int | ncid, |
size_t * | nflash, | ||
GLM_FLASH_T * | flash | ||
) |
Read and unpack all the flash data in the file.
It will be loaded into the pre-allocated array of struct GLM_FLASH_T.
ncid | ID of already opened GLM file. |
nflash | A pointer that gets the number of flashes. Ignored if NULL. |
flash | Pointer to already-allocated arrat of GLM_FLASH_T. |