ocssw
V2022
|
Include dependency graph for HDF_Lib.c:
Go to the source code of this file.
Macros | |
#define | MAXRANK 7 |
#define | ASSIGN_INT_VALUE(aptr, a, alb, aub, type_of_data) |
#define | CHECK_IVALS_ON_LB |
#define | CHECK_FVALS_ON_LB |
#define | CHECK_IVALS_ON_UB |
#define | CHECK_FVALS_ON_UB |
Functions | |
PGSt_SMF_status | read_attribute (int32 s_id, char *attr_name, int32 TypeID, void *buffer) |
PGSt_SMF_status | read_part_sds_rank2 (int32 sd_id, char *sds_name, int32 start0, int32 start1, int32 edge0, int32 edge1, void *data) |
PGSt_SMF_status | read_part_sds_rank3 (int32 sd_id, char *sds_name, int32 start0, int32 start1, int32 start2, int32 edge0, int32 edge1, int32 edge2, void *data) |
PGSt_SMF_status | read_sds_rank1 (int32 file_id, char *sds_name, int32 dim, void *data) |
PGSt_SMF_status | read_sds_rank2 (int32 file_id, char *sds_name, int32 dim1, int32 dim2, void *data) |
PGSt_SMF_status | read_sds_rank3 (int32 file_id, char *sds_name, int32 dim1, int32 dim2, int32 dim3, void *data) |
PGSt_SMF_status | read_sds_rank4 (int32 file_id, char *sds_name, int32 dim1, int32 dim2, int32 dim3, int32 dim4, void *data) |
PGSt_SMF_status | read_vdata (int32 v_id, int32 start_record, int32 records, char *vname, char *fname, void *buffer) |
PGSt_SMF_status | write_sds_rank1 (int32 file_id, char *sds_name, char *dim_name, int32 dim, char *datatype, void *data) |
PGSt_SMF_status | write_sds_rank2 (int32 file_id, char *sds_name, char *dim_name1, char *dim_name2, int32 dim1, int32 dim2, char *datatype, void *data) |
PGSt_SMF_status | write_sds_rank3 (int32 file_id, char *sds_name, char *dim_name1, char *dim_name2, char *dim_name3, int32 dim1, int32 dim2, int32 dim3, char *datatype, void *data) |
PGSt_SMF_status | write_sds_rank4 (int32 file_id, char *sds_name, char *dim_name1, char *dim_name2, char *dim_name3, char *dim_name4, int32 dim1, int32 dim2, int32 dim3, int32 dim4, char *datatype, void *data) |
PGSt_SMF_status | read_sds_rankn (int32 sd_id, char *sds_name, int32 data_type, int32 rank, int32 *start, int32 *edge, void *data) |
PGSt_SMF_status | write_sds_rankn (int32 file_id, char *sds_name, int32 data_type, int32 rank, int32 *edge, char **dim_name, void *data) |
PGSt_SMF_status | Check_Valid_Range (char *data_name, int32 data_type, char *a_lb, char *a_ub, char *a_fillvalue, int32 count, void *buffer) |
Variables | |
char * | invalidinputfile |
char * | corruptinputfile |
Macro Definition Documentation
◆ ASSIGN_INT_VALUE
#define ASSIGN_INT_VALUE | ( | aptr, | |
a, | |||
alb, | |||
aub, | |||
type_of_data | |||
) |
Value:
i = atol(aptr); \
errcode = MODIS_F_NOK; \
sprintf(errmsgbuf, \
"Checking valid range of \"%s\", the value \"%s\" is not\n" \
"a valid number for the precision of the data type.", \
data_name, aptr); \
L1BErrorMsg("Check_Valid_Range", errcode, errmsgbuf, NULL, 0, \
"Code defect.", False); \
return errcode; \
} \
else \
{ \
switch (type_of_data) \
} \
}
◆ CHECK_FVALS_ON_LB
#define CHECK_FVALS_ON_LB |
Value:
if (absd > 0) del /= absd; else if(absdfv > 0) del /= absdfv; \
errcode = MODIS_F_OUT_OF_RANGE; \
sprintf(errmsgbuf, \
"One or more values of \"%s\" is less than the lower bound.\n" \
"value[%ld] = %f\nlower bnd = %s\n", \
L1BErrorMsg("Check_Valid_Range", errcode, errmsgbuf, NULL, 0, \
invalidinputfile, False); \
return errcode; \
} \
}
◆ CHECK_FVALS_ON_UB
#define CHECK_FVALS_ON_UB |
Value:
if (absd > 0) del /= absd; else if(absdfv > 0) del /= absdfv; \
errcode = MODIS_F_OUT_OF_RANGE; \
sprintf(errmsgbuf, \
"One or more values of \"%s\" is greater than the upper bound.\n" \
"value[%ld] = %f\nupper bnd = %s\n", \
L1BErrorMsg("Check_Valid_Range", errcode, errmsgbuf, NULL, 0, \
invalidinputfile, False); \
return errcode; \
} \
}
◆ CHECK_IVALS_ON_LB
#define CHECK_IVALS_ON_LB |
Value:
errcode = MODIS_F_OUT_OF_RANGE; \
sprintf(errmsgbuf, \
"One or more values of \"%s\" is less than the lower bound.\n" \
"value[%ld] = %ld\nlower bnd = %s\n", \
L1BErrorMsg("Check_Valid_Range", errcode, errmsgbuf, NULL, 0, \
invalidinputfile, False); \
return errcode; \
} \
}
◆ CHECK_IVALS_ON_UB
#define CHECK_IVALS_ON_UB |
Value:
errcode = MODIS_F_OUT_OF_RANGE; \
sprintf(errmsgbuf, \
"One or more values of \"%s\" is greater than the upper bound.\n" \
"value[%ld] = %ld\nupper bnd = %s\n", \
L1BErrorMsg("Check_Valid_Range", errcode, errmsgbuf, NULL, 0, \
invalidinputfile, False); \
return errcode; \
} \
}
◆ MAXRANK
#define MAXRANK 7 |
Function Documentation
◆ Check_Valid_Range()
PGSt_SMF_status Check_Valid_Range | ( | char * | data_name, |
int32 | data_type, | ||
char * | a_lb, | ||
char * | a_ub, | ||
char * | a_fillvalue, | ||
int32 | count, | ||
void * | buffer | ||
) |
◆ read_attribute()
PGSt_SMF_status read_attribute | ( | int32 | s_id, |
char * | attr_name, | ||
int32 | TypeID, | ||
void * | buffer | ||
) |
◆ read_part_sds_rank2()
PGSt_SMF_status read_part_sds_rank2 | ( | int32 | sd_id, |
char * | sds_name, | ||
int32 | start0, | ||
int32 | start1, | ||
int32 | edge0, | ||
int32 | edge1, | ||
void * | data | ||
) |
◆ read_part_sds_rank3()
PGSt_SMF_status read_part_sds_rank3 | ( | int32 | sd_id, |
char * | sds_name, | ||
int32 | start0, | ||
int32 | start1, | ||
int32 | start2, | ||
int32 | edge0, | ||
int32 | edge1, | ||
int32 | edge2, | ||
void * | data | ||
) |
◆ read_sds_rank1()
PGSt_SMF_status read_sds_rank1 | ( | int32 | file_id, |
char * | sds_name, | ||
int32 | dim, | ||
void * | data | ||
) |
◆ read_sds_rank2()
PGSt_SMF_status read_sds_rank2 | ( | int32 | file_id, |
char * | sds_name, | ||
int32 | dim1, | ||
int32 | dim2, | ||
void * | data | ||
) |
◆ read_sds_rank3()
PGSt_SMF_status read_sds_rank3 | ( | int32 | file_id, |
char * | sds_name, | ||
int32 | dim1, | ||
int32 | dim2, | ||
int32 | dim3, | ||
void * | data | ||
) |
◆ read_sds_rank4()
PGSt_SMF_status read_sds_rank4 | ( | int32 | file_id, |
char * | sds_name, | ||
int32 | dim1, | ||
int32 | dim2, | ||
int32 | dim3, | ||
int32 | dim4, | ||
void * | data | ||
) |
◆ read_sds_rankn()
PGSt_SMF_status read_sds_rankn | ( | int32 | sd_id, |
char * | sds_name, | ||
int32 | data_type, | ||
int32 | rank, | ||
int32 * | start, | ||
int32 * | edge, | ||
void * | data | ||
) |
◆ read_vdata()
PGSt_SMF_status read_vdata | ( | int32 | v_id, |
int32 | start_record, | ||
int32 | records, | ||
char * | vname, | ||
char * | fname, | ||
void * | buffer | ||
) |
◆ write_sds_rank1()
PGSt_SMF_status write_sds_rank1 | ( | int32 | file_id, |
char * | sds_name, | ||
char * | dim_name, | ||
int32 | dim, | ||
char * | datatype, | ||
void * | data | ||
) |
◆ write_sds_rank2()
PGSt_SMF_status write_sds_rank2 | ( | int32 | file_id, |
char * | sds_name, | ||
char * | dim_name1, | ||
char * | dim_name2, | ||
int32 | dim1, | ||
int32 | dim2, | ||
char * | datatype, | ||
void * | data | ||
) |
◆ write_sds_rank3()
PGSt_SMF_status write_sds_rank3 | ( | int32 | file_id, |
char * | sds_name, | ||
char * | dim_name1, | ||
char * | dim_name2, | ||
char * | dim_name3, | ||
int32 | dim1, | ||
int32 | dim2, | ||
int32 | dim3, | ||
char * | datatype, | ||
void * | data | ||
) |
◆ write_sds_rank4()
PGSt_SMF_status write_sds_rank4 | ( | int32 | file_id, |
char * | sds_name, | ||
char * | dim_name1, | ||
char * | dim_name2, | ||
char * | dim_name3, | ||
char * | dim_name4, | ||
int32 | dim1, | ||
int32 | dim2, | ||
int32 | dim3, | ||
int32 | dim4, | ||
char * | datatype, | ||
void * | data | ||
) |
◆ write_sds_rankn()
PGSt_SMF_status write_sds_rankn | ( | int32 | file_id, |
char * | sds_name, | ||
int32 | data_type, | ||
int32 | rank, | ||
int32 * | edge, | ||
char ** | dim_name, | ||
void * | data | ||
) |
Variable Documentation
◆ corruptinputfile
char* corruptinputfile |
◆ invalidinputfile
HDF4 data type of the output SDS Default is DFNT_FLOAT32 Common types used DFNT_INT32
Definition: HOWTO_Add_a_product.txt:67
HDF4 data type of the output SDS Default is DFNT_FLOAT32 Common types used DFNT_INT16
Definition: HOWTO_Add_a_product.txt:67
no change in intended resolving MODur00064 Corrected handling of bad ephemeris attitude data
Definition: HISTORY.txt:356
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