|
ncglm
1.0
|
Code to read 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_group_structs (int ncid, size_t *ngroup, GLM_GROUP_T *group) |
| Read and unpack all the group data in the file. More... | |
| int | glm_read_group_arrays (int ncid, size_t *ngroup, float *time_offset, float *lat, float *lon, float *energy, float *area, unsigned int *parent_flash_id, short *quality_flag) |
| Read and unpack all the group data in the file. More... | |
Code to read group data from the GOES-17 Global Lightning Mapper.
| int glm_read_group_arrays | ( | int | ncid, |
| size_t * | ngroup, | ||
| float * | time_offset, | ||
| float * | lat, | ||
| float * | lon, | ||
| float * | energy, | ||
| float * | area, | ||
| unsigned int * | parent_flash_id, | ||
| short * | quality_flag | ||
| ) |
Read and unpack all the group data in the file.
It will be loaded into the pre-allocated arrays for each element of the group data.
| ncid | ID of already opened GLM file. |
| ngroup | A pointer that gets the number of groups. Ignored if NULL. |
| 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. |
| area | Pointer to already-allocated array of float for area data, or NULL if struct reads are being done. |
| parent_flash_id | Pointer to already-allocated array of int for parent_flash_id 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_group_structs | ( | int | ncid, |
| size_t * | ngroup, | ||
| GLM_GROUP_T * | group | ||
| ) |
Read and unpack all the group data in the file.
It will be loaded into the pre-allocated array of struct group.
| ncid | ID of already opened GLM file. |
| ngroup | A pointer that gets the number of groups. Ignored if NULL. |
| group | Pointer to already-allocated arrat of GLM_GROUP_T. |
1.8.13