ocssw
V2022
|
phash.c
Go to the documentation of this file.
155 for (is_first = 1; cur_bucket != NULL; is_first = 0, bucket_ptr = &cur_bucket->next, cur_bucket = *bucket_ptr) {
171 phash_bucket **a = (phash_bucket**) realloc((phash_bucket*) h->buckets, newsize * sizeof(phash_bucket*));
int phash_size(phash *h)
Retrieves the number of key-value pairs in the hash object.
Definition: phash.c:312
Definition: phash.c:32
A simple dictionary library for storing pointers.
#define PHASH_FILLPCT
How full to get before doubling the size of the hash, 0-99.
Definition: phash.c:27
int phash_remove(phash *h, const char *key)
Remove a pointer associated with the given string.
Definition: phash.c:146
int phash_set(phash *h, const char *key, void *value)
Add or overwrite a pointer, associating it with the given key.
Definition: phash.c:224
void * phash_get(phash *h, const char *key)
Find a pointer associated with the given string.
Definition: phash.c:205
PARAM_TYPE_NONE Default value No parameter is buried in the product name name_prefix is case insensitive string compared to the product name PARAM_TYPE_VIS_WAVE The visible wavelength bands from the sensor are buried in the product name The product name is compared by appending and name_suffix ie aph_412_giop where prod_ix will be set to PARAM_TYPE_IR_WAVE same search method as PARAM_TYPE_VIS_WAVE except only wavelength above are looped through but prod_ix is still based ie aph_2_giop for the second and prod_ix set to PARAM_TYPE_INT name_prefix is compared with the beginning of the product name If name_suffix is not empty the it must match the end of the product name The characters right after the prefix are read as an integer and prod_ix is set to that number strncpy(l2prod->name_prefix, "myprod", UNITLEN)
const char * phash_version()
Returns the source code version and the implemented API version.
Definition: phash.c:316
int phash_next(phash *h, const char **key, void **value)
Retrieves the next key-value pair in the phash. The order in which the pointers are returned shall be...
Definition: phash.c:275
int phash_rewind(phash *h)
Rewind iterator for traversing all the keys and values.
Definition: phash.c:269
PGE01 indicating that PGE02 PGE01 V6 for and PGE01 V2 for MOD03 were used to produce the granule By convention adopted in all MODIS Terra PGE02 code versions are The fourth digit of the PGE02 version denotes the LUT version used to produce the granule The source of the metadata environment variable ProcessingCenter was changed from a QA LUT value to the Process Configuration A sign used in error in the second order term was changed to a
Definition: HISTORY.txt:424