MISR Toolkit
1.5.1
|
Go to the source code of this file.
Data Structures | |
union | MTKt_DataBufferType |
2-dimensional Data Buffer Type Union More... | |
struct | MTKt_DataBuffer |
2-dimensional Data Buffer More... | |
union | MTKt_DataBufferType3D |
3-dimensional Data Buffer Type Union More... | |
struct | MTKt_DataBuffer3D |
3-dimensional Data Buffer More... | |
struct | MTKt_ncvarid |
Macros | |
#define | MAXDIMS 10 |
#define | MAXSTR 80 |
#define | MTKd_NDATATYPE 13 |
#define | MTKd_DataType |
#define | MTKd_DataSize { 0, 1, 1, 1, 1, 2, 2, 4, 4, 8, 8, 4, 8 } |
#define | MTKT_DATABUFFER_INIT { 0, 0, 0, MTKe_void, MTK_FALSE, {0}, NULL, NULL } |
#define | MTKT_DATABUFFER3D_INIT { 0, 0, 0, 0, 0, {0}, NULL, NULL } |
#define | EPOCH_DAY 2448988.5 |
#define | EPOCH_DAY_FRACTION 0.0003125 |
#define | SECONDSperDAY 86400.0 |
#define | SECONDSperHOUR 3600.0 |
#define | SECONDSperMINUTE 60.0 |
#define | MTKd_DATETIME_LEN 28 |
#define | LEAP_SECONDS |
Typedefs | |
typedef char | MTKt_char8 |
typedef unsigned char | MTKt_uchar8 |
typedef int8_t | MTKt_int8 |
typedef u_int8_t | MTKt_uint8 |
typedef int16_t | MTKt_int16 |
typedef u_int16_t | MTKt_uint16 |
typedef int32_t | MTKt_int32 |
typedef u_int32_t | MTKt_uint32 |
typedef int64_t | MTKt_int64 |
typedef u_int64_t | MTKt_uint64 |
typedef float | MTKt_float |
typedef double | MTKt_double |
Enumerations | |
enum | MTKt_DataType { MTKe_void =0, MTKe_char8, MTKe_uchar8, MTKe_int8, MTKe_uint8, MTKe_int16, MTKe_uint16, MTKe_int32, MTKe_uint32, MTKe_int64, MTKe_uint64, MTKe_float, MTKe_double } |
Functions | |
MTKt_status | MtkDataBufferAllocate (int nline, int nsample, MTKt_DataType datatype, MTKt_DataBuffer *databuf) |
Allocate Data Buffer. More... | |
MTKt_status | MtkDataBufferAllocate3D (int nblock, int nline, int nsample, MTKt_DataType datatype, MTKt_DataBuffer3D *databuf) |
Allocate 3-dimensional Data Buffer (a buffer stack) More... | |
MTKt_status | MtkDataBufferFree (MTKt_DataBuffer *databuf) |
Free data buffer. More... | |
MTKt_status | MtkDataBufferFree3D (MTKt_DataBuffer3D *databuf) |
Free 3-dimensional data buffer (a buffer stack) More... | |
MTKt_status | MtkDataBufferImport (int nline, int nsample, MTKt_DataType datatype, void *dataptr, MTKt_DataBuffer *databuf) |
Import Data Buffer. More... | |
MTKt_status | MtkHdfToMtkDataTypeConvert (int32 hdf_datatype, MTKt_DataType *datatype) |
Convert HDF data type to MISR Toolkit data type. More... | |
MTKt_status | MtkNcToMtkDataTypeConvert (nc_type nc_datatype, MTKt_DataType *datatype) |
MTKt_status | MtkParseFieldname (const char *fieldname, char **basefieldname, int *ndim, int **dimlist) |
Parses extra dimensions from fieldnames. More... | |
MTKt_status | MtkStringListFree (int strcnt, char **strlist[]) |
Free string list. More... | |
MTKt_status | MtkCalToJulian (int y, int m, int d, int h, int mn, int s, double *julian) |
Convert calendar date to Julian date. More... | |
MTKt_status | MtkJulianToCal (double jd, int *year, int *month, int *day, int *hour, int *min, int *sec) |
Convert Julian date to calendar date. More... | |
MTKt_status | MtkDateTimeToJulian (const char *datetime, double *jd) |
Convert date and time (ISO 8601) to Julian date. More... | |
MTKt_status | MtkJulianToDateTime (double jd, char datetime[MTKd_DATETIME_LEN]) |
Convert Julian date to date and time (ISO 8601) More... | |
MTKt_status | MtkTaiJdToTai (double jdTAI[2], double *secTAI93) |
Convert TAI Julian date to TAI93 time. More... | |
MTKt_status | MtkTaiJdToUtcJd (double jdTAI[2], double jdUTC[2]) |
Convert TAI Julian date to UTC Julian date. More... | |
MTKt_status | MtkTaiToTaiJd (double secTAI93, double jdTAI[2]) |
Convert TAI93 to TAI Julian date. More... | |
MTKt_status | MtkTaiToUtc (double secTAI93, char utc_datetime[MTKd_DATETIME_LEN]) |
Convert TAI93 to UTC. More... | |
MTKt_status | MtkUtcJdToTaiJd (double jdUTC[2], double jdTAI[2]) |
Convert UTC Julian date to TAI Julian date. More... | |
MTKt_status | MtkUtcJdToUtc (double jdUTCin[2], char utc_datetime[MTKd_DATETIME_LEN]) |
Convert calendar date to Julian date. More... | |
MTKt_status | MtkUtcToTai (char utc_datetime[MTKd_DATETIME_LEN], double *secTAI93) |
Convert UTC to TAI93. More... | |
MTKt_status | MtkUtcToUtcJd (char utc_datetime[MTKd_DATETIME_LEN], double jdUTC[2]) |
Convert UTC date to UTC Julian date. More... | |
MTKt_status | MtkNCVarId (int Ncid, const char *Name, MTKt_ncvarid *Var) |
char * | MtkVersion (void) |
MisrToolkit Version. More... | |
#define EPOCH_DAY 2448988.5 |
Definition at line 143 of file MisrUtil.h.
#define EPOCH_DAY_FRACTION 0.0003125 |
Definition at line 144 of file MisrUtil.h.
#define LEAP_SECONDS |
Definition at line 152 of file MisrUtil.h.
#define MAXDIMS 10 |
Definition at line 27 of file MisrUtil.h.
#define MAXSTR 80 |
Definition at line 28 of file MisrUtil.h.
#define MTKd_DataSize { 0, 1, 1, 1, 1, 2, 2, 4, 4, 8, 8, 4, 8 } |
Definition at line 34 of file MisrUtil.h.
#define MTKd_DataType |
Definition at line 31 of file MisrUtil.h.
#define MTKd_DATETIME_LEN 28 |
Definition at line 149 of file MisrUtil.h.
#define MTKd_NDATATYPE 13 |
Definition at line 30 of file MisrUtil.h.
#define MTKT_DATABUFFER3D_INIT { 0, 0, 0, 0, 0, {0}, NULL, NULL } |
Definition at line 140 of file MisrUtil.h.
Definition at line 109 of file MisrUtil.h.
#define SECONDSperDAY 86400.0 |
Definition at line 145 of file MisrUtil.h.
#define SECONDSperHOUR 3600.0 |
Definition at line 146 of file MisrUtil.h.
#define SECONDSperMINUTE 60.0 |
Definition at line 147 of file MisrUtil.h.
typedef char MTKt_char8 |
Definition at line 66 of file MisrUtil.h.
typedef double MTKt_double |
Definition at line 77 of file MisrUtil.h.
typedef float MTKt_float |
Definition at line 76 of file MisrUtil.h.
typedef int16_t MTKt_int16 |
Definition at line 70 of file MisrUtil.h.
typedef int32_t MTKt_int32 |
Definition at line 72 of file MisrUtil.h.
typedef int64_t MTKt_int64 |
Definition at line 74 of file MisrUtil.h.
typedef int8_t MTKt_int8 |
Definition at line 68 of file MisrUtil.h.
typedef unsigned char MTKt_uchar8 |
Definition at line 67 of file MisrUtil.h.
typedef u_int16_t MTKt_uint16 |
Definition at line 71 of file MisrUtil.h.
typedef u_int32_t MTKt_uint32 |
Definition at line 73 of file MisrUtil.h.
typedef u_int64_t MTKt_uint64 |
Definition at line 75 of file MisrUtil.h.
typedef u_int8_t MTKt_uint8 |
Definition at line 69 of file MisrUtil.h.
enum MTKt_DataType |
Enumerator | |
---|---|
MTKe_void | |
MTKe_char8 | |
MTKe_uchar8 | |
MTKe_int8 | |
MTKe_uint8 | |
MTKe_int16 | |
MTKe_uint16 | |
MTKe_int32 | |
MTKe_uint32 | |
MTKe_int64 | |
MTKe_uint64 | |
MTKe_float | |
MTKe_double |
Definition at line 36 of file MisrUtil.h.
MTKt_status MtkCalToJulian | ( | int | year, |
int | month, | ||
int | day, | ||
int | hour, | ||
int | min, | ||
int | sec, | ||
double * | jd | ||
) |
Convert calendar date to Julian date.
[in] | year | Year |
[in] | month | Month |
[in] | day | Day |
[in] | hour | Hour |
[in] | min | Minutes |
[in] | sec | Seconds |
[out] | jd | Julian date |
Definition at line 61 of file MtkCalToJulian.c.
MTKt_status MtkDataBufferAllocate | ( | int | nline, |
int | nsample, | ||
MTKt_DataType | datatype, | ||
MTKt_DataBuffer * | databuf | ||
) |
Allocate Data Buffer.
MTKe_int16
databuf
[in] | nline | Number of lines |
[in] | nsample | Number of samples |
[in] | datatype | Data Type |
[out] | databuf | Data Buffer |
Definition at line 35 of file MtkDataBufferAllocate.c.
MTKt_status MtkDataBufferAllocate3D | ( | int | nblock, |
int | nline, | ||
int | nsample, | ||
MTKt_DataType | datatype, | ||
MTKt_DataBuffer3D * | databuf | ||
) |
Allocate 3-dimensional Data Buffer (a buffer stack)
MTKe_int16
databuf
[in] | nblock | Number of blocks |
[in] | nline | Number of lines |
[in] | nsample | Number of samples |
[in] | datatype | Data Type |
[out] | databuf | Data Buffer |
Definition at line 35 of file MtkDataBufferAllocate3D.c.
MTKt_status MtkDataBufferFree | ( | MTKt_DataBuffer * | databuf | ) |
Free data buffer.
databuf
that was previously allocated with MtkDataBufferAllocate() and we wish to free it.[in,out] | databuf | Data Buffer |
Definition at line 33 of file MtkDataBufferFree.c.
MTKt_status MtkDataBufferFree3D | ( | MTKt_DataBuffer3D * | databuf | ) |
Free 3-dimensional data buffer (a buffer stack)
databuf
that was previously allocated with MtkDataBufferAllocate3D() and we wish to free it.[in,out] | databuf | Data Buffer |
Definition at line 33 of file MtkDataBufferFree3D.c.
MTKt_status MtkDataBufferImport | ( | int | nline, |
int | nsample, | ||
MTKt_DataType | datatype, | ||
void * | dataptr, | ||
MTKt_DataBuffer * | databuf | ||
) |
Import Data Buffer.
MTKe_int16
databuf
[in] | nline | Number of lines |
[in] | nsample | Number of samples |
[in] | datatype | Data Type |
[in] | dataptr | Data pointer to payload |
[out] | databuf | Data Buffer |
Definition at line 35 of file MtkDataBufferImport.c.
MTKt_status MtkDateTimeToJulian | ( | const char * | datetime, |
double * | jd | ||
) |
Convert date and time (ISO 8601) to Julian date.
[in] | datetime | Date and time (ISO 8601) |
[out] | jd | Julian date |
Definition at line 33 of file MtkDateTimeToJulian.c.
MTKt_status MtkHdfToMtkDataTypeConvert | ( | int32 | hdf_datatype, |
MTKt_DataType * | datatype | ||
) |
Convert HDF data type to MISR Toolkit data type.
Definition at line 25 of file MtkHdfToMtkDataTypeConvert.c.
MTKt_status MtkJulianToCal | ( | double | jd, |
int * | year, | ||
int * | month, | ||
int * | day, | ||
int * | hour, | ||
int * | min, | ||
int * | sec | ||
) |
Convert Julian date to calendar date.
[in] | jd | Julian date |
[out] | year | Year |
[out] | month | Month |
[out] | day | Day |
[out] | hour | Hour |
[out] | min | Minutes |
[out] | sec | Seconds |
Definition at line 126 of file MtkJulianToCal.c.
MTKt_status MtkJulianToDateTime | ( | double | jd, |
char | datetime[MTKd_DATETIME_LEN] | ||
) |
Convert Julian date to date and time (ISO 8601)
[in] | jd | Julian date |
[out] | datetime | Date and time (ISO 8601) |
Definition at line 34 of file MtkJulianToDateTime.c.
MTKt_status MtkNcToMtkDataTypeConvert | ( | nc_type | nc_datatype, |
MTKt_DataType * | datatype | ||
) |
Definition at line 63 of file MtkHdfToMtkDataTypeConvert.c.
MTKt_status MtkNCVarId | ( | int | Ncid, |
const char * | Name, | ||
MTKt_ncvarid * | Var | ||
) |
Definition at line 21 of file MtkNCVarId.c.
MTKt_status MtkParseFieldname | ( | const char * | fieldname, |
char ** | basefieldname, | ||
int * | ndim, | ||
int ** | dimlist | ||
) |
Parses extra dimensions from fieldnames.
fieldname | Field name |
basefieldname | Base field name |
ndim | Number dimensions |
dimlist | Dimension list |
Definition at line 37 of file MtkParseFieldname.c.
MTKt_status MtkStringListFree | ( | int | strcnt, |
char ** | strlist[] | ||
) |
Free string list.
fieldlist
and fieldcnt
that was previously allocated with MtkFileGridToFieldList() and we wish to free it.[in] | strcnt | String Count |
[in,out] | strlist | String List |
Definition at line 33 of file MtkStringListFree.c.
MTKt_status MtkTaiJdToTai | ( | double | jdTAI[2], |
double * | secTAI93 | ||
) |
Convert TAI Julian date to TAI93 time.
[in] | jdTAI | TAI Julian date |
[out] | secTAI93 | TAI93 Time |
Definition at line 32 of file MtkTaiJdToTai.c.
MTKt_status MtkTaiJdToUtcJd | ( | double | jdTAI[2], |
double | jdUTC[2] | ||
) |
Convert TAI Julian date to UTC Julian date.
[in] | jdTAI | TAI Julian date |
[out] | jdUTC | UTC Julian date |
Definition at line 32 of file MtkTaiJdToUtcJd.c.
MTKt_status MtkTaiToTaiJd | ( | double | secTAI93, |
double | jdTAI[2] | ||
) |
Convert TAI93 to TAI Julian date.
[in] | secTAI93 | TAI93 Time |
[out] | jdTAI | TAI Julian date |
Definition at line 33 of file MtkTaiToTaiJd.c.
MTKt_status MtkTaiToUtc | ( | double | secTAI93, |
char | utc_datetime[MTKd_DATETIME_LEN] | ||
) |
Convert TAI93 to UTC.
[in] | secTAI93 | TAI93 Time |
[out] | utc_datetime | UTC Date time |
Definition at line 32 of file MtkTaiToUtc.c.
MTKt_status MtkUtcJdToTaiJd | ( | double | jdUTC[2], |
double | jdTAI[2] | ||
) |
Convert UTC Julian date to TAI Julian date.
[in] | jdUTC | UTC Julian date |
[out] | jdTAI | TAI Julian date |
Definition at line 32 of file MtkUtcJdToTaiJd.c.
MTKt_status MtkUtcJdToUtc | ( | double | jdUTCin[2], |
char | utc_datetime[MTKd_DATETIME_LEN] | ||
) |
Convert calendar date to Julian date.
[in] | jdUTCin | UTC Julian date |
[out] | utc_datetime | UTC Date time |
Definition at line 112 of file MtkUtcJdToUtc.c.
MTKt_status MtkUtcToTai | ( | char | utc_datetime[MTKd_DATETIME_LEN], |
double * | secTAI93 | ||
) |
Convert UTC to TAI93.
[in] | utc_datetime | UTC Date time |
[out] | secTAI93 | TAI Time |
Definition at line 32 of file MtkUtcToTai.c.
MTKt_status MtkUtcToUtcJd | ( | char | utc_datetime[MTKd_DATETIME_LEN], |
double | jdUTC[2] | ||
) |
Convert UTC date to UTC Julian date.
[in] | utc_datetime | UTC Date time |
[out] | jdUTC | UTC Julian date |
Definition at line 46 of file MtkUtcToUtcJd.c.
char* MtkVersion | ( | void | ) |
MisrToolkit Version.
Definition at line 31 of file MtkVersion.c.