|
ncglm
1.0
|
Code to read event 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_event_structs (int ncid, size_t *nevent, GLM_EVENT_T *event) |
| Read and unpack all the event data in the file. More... | |
| int | glm_read_event_arrays (int ncid, size_t *nevent, int *event_id, float *time_offset, float *lat, float *lon, float *energy, int *parent_group_id) |
| Read and unpack all the event data in the file. More... | |
Code to read event data from the GOES-17 Global Lightning Mapper.
| int glm_read_event_arrays | ( | int | ncid, |
| size_t * | nevent, | ||
| int * | event_id, | ||
| float * | time_offset, | ||
| float * | lat, | ||
| float * | lon, | ||
| float * | energy, | ||
| int * | parent_group_id | ||
| ) |
Read and unpack all the event data in the file.
It will be loaded into the pre-allocated array of struct event.
| ncid | ID of already opened GLM file. |
| nevent | Pointer that gets the number of events. Ignored if NULL. |
| event_id | Pointer to already-allocated arrat of int for event_id values. |
| time_offset | Pointer to already-allocated array of unsigned int for time_offset 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. |
| energy | Pointer to already-allocated array of float for energy data, or NULL if struct reads are being done. |
| parent_group_id | Pointer to already-allocated array of int for parent_group_id data, or NULL if struct reads are being done. |
| int glm_read_event_structs | ( | int | ncid, |
| size_t * | nevent, | ||
| GLM_EVENT_T * | event | ||
| ) |
Read and unpack all the event data in the file.
It will be loaded into the pre-allocated array of struct event.
| ncid | ID of already opened GLM file. |
| nevent | Pointer that gets the number of events. Ignored if NULL. |
| event | Pointer to already-allocated arrat of GLM_EVENT_T. |
1.8.13