|
ocssw
V2022
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <time.h>#include <math.h>#include <hdf4utils.h>#include <hdf.h>#include <mfhdf.h>Go to the source code of this file.
Functions | |
| int32_t | hdf_sizeof (int32_t dtype) |
| int | CreateSDS (int32_t sd_id, const char *sname, const char *lname, const char *standard_name, const char *units, double low, double high, float slope, float offset, int32_t nt, int32_t rank, int32_t d0, int32_t d1, int32_t d2, const char *dn0, const char *dn1, const char *dn2) |
| int | sd_setattr (int32_t id, const char *nam, int32_t typ, int32_t cnt, const void *data) |
| int | sd_create (int32_t id, const char *nam, int32_t typ, int32_t rank, int32_t d0, int32_t d1, int32_t d2, int32_t *sds_id) |
| int | sd_endaccess (int32_t id) |
| int | sd_setdimnames (int32_t id, const char *d0, const char *d1, const char *d2) |
| int | sd_setdimname (int32_t sds_id, int32_t dim_number, const char *name) |
| int | sd_writedata (int32_t sd_id, const char *name, const void *data, int32_t s0, int32_t s1, int32_t s2, int32_t e0, int32_t e1, int32_t e2) |
| int | sd_readdata (int32_t sd_id, const char *name, VOIDP data, int32_t s0, int32_t s1, int32_t s2, int32_t e0, int32_t e1, int32_t e2) |
| int | sd_select (int32_t sd_id, const char *name, int32_t *sds_id) |
| int | AddSdsToVgroup (int32_t sd_id, int32_t v_id, const char *name) |
| int | v_attach (int32_t h_id, int32_t *v_id) |
| int | rdSDS (int32_t fileID, const char *sdsname, int32_t start1, int32_t start2, int32_t edges1, int32_t edges2, VOIDP array_data) |
| int | getDims (int32_t fileID, const char sdsname[H4_MAX_NC_NAME], int32_t dims[H4_MAX_VAR_DIMS]) |
| int | get_type (int32_t fileID, const char sdsname[H4_MAX_NC_NAME], int32_t *dtype) |
| int | getHDFattr (int32_t fileID, const char *attrname, const char *sdsname, VOIDP data) |
| intn | rdvdata (int32 vskey, const char *fields, int32 start, int32 nelt, unsigned char *databuf) |
| intn | attach_vdata (int32 fid, const char *sname) |
| int32 | read_SDS (int32 sdfid, const char *sds_name, void *buffer) |
| char * | GetFileDesc (const char *filename) |
Function Documentation
◆ AddSdsToVgroup()
| int AddSdsToVgroup | ( | int32_t | sd_id, |
| int32_t | v_id, | ||
| const char * | name | ||
| ) |
Definition at line 383 of file hdf_utils.c.
◆ attach_vdata()
| intn attach_vdata | ( | int32 | fid, |
| const char * | sname | ||
| ) |
Definition at line 686 of file hdf_utils.c.
◆ CreateSDS()
| int CreateSDS | ( | int32_t | sd_id, |
| const char * | sname, | ||
| const char * | lname, | ||
| const char * | standard_name, | ||
| const char * | units, | ||
| double | low, | ||
| double | high, | ||
| float | slope, | ||
| float | offset, | ||
| int32_t | nt, | ||
| int32_t | rank, | ||
| int32_t | d0, | ||
| int32_t | d1, | ||
| int32_t | d2, | ||
| const char * | dn0, | ||
| const char * | dn1, | ||
| const char * | dn2 | ||
| ) |
Definition at line 77 of file hdf_utils.c.
◆ get_type()
| int get_type | ( | int32_t | fileID, |
| const char | sdsname[H4_MAX_NC_NAME], | ||
| int32_t * | dtype | ||
| ) |
Definition at line 535 of file hdf_utils.c.
◆ getDims()
| int getDims | ( | int32_t | fileID, |
| const char | sdsname[H4_MAX_NC_NAME], | ||
| int32_t | dims[H4_MAX_VAR_DIMS] | ||
| ) |
Definition at line 497 of file hdf_utils.c.
◆ GetFileDesc()
| char* GetFileDesc | ( | const char * | filename | ) |
Definition at line 752 of file hdf_utils.c.
◆ getHDFattr()
Definition at line 573 of file hdf_utils.c.
◆ hdf_sizeof()
| int32_t hdf_sizeof | ( | int32_t | dtype | ) |
return the sizeof dtype in bytes
Definition at line 28 of file hdf_utils.c.
◆ rdSDS()
| int rdSDS | ( | int32_t | fileID, |
| const char * | sdsname, | ||
| int32_t | start1, | ||
| int32_t | start2, | ||
| int32_t | edges1, | ||
| int32_t | edges2, | ||
| VOIDP | array_data | ||
| ) |
Definition at line 422 of file hdf_utils.c.
◆ rdvdata()
| intn rdvdata | ( | int32 | vskey, |
| const char * | fields, | ||
| int32 | start, | ||
| int32 | nelt, | ||
| unsigned char * | databuf | ||
| ) |
Definition at line 646 of file hdf_utils.c.
◆ read_SDS()
| int32 read_SDS | ( | int32 | sdfid, |
| const char * | sds_name, | ||
| void * | buffer | ||
| ) |
Definition at line 719 of file hdf_utils.c.
◆ sd_create()
| int sd_create | ( | int32_t | id, |
| const char * | nam, | ||
| int32_t | typ, | ||
| int32_t | rank, | ||
| int32_t | d0, | ||
| int32_t | d1, | ||
| int32_t | d2, | ||
| int32_t * | sds_id | ||
| ) |
Definition at line 227 of file hdf_utils.c.
◆ sd_endaccess()
| int sd_endaccess | ( | int32_t | id | ) |
Definition at line 255 of file hdf_utils.c.
◆ sd_readdata()
| int sd_readdata | ( | int32_t | sd_id, |
| const char * | name, | ||
| VOIDP | data, | ||
| int32_t | s0, | ||
| int32_t | s1, | ||
| int32_t | s2, | ||
| int32_t | e0, | ||
| int32_t | e1, | ||
| int32_t | e2 | ||
| ) |
Definition at line 324 of file hdf_utils.c.
◆ sd_select()
| int sd_select | ( | int32_t | sd_id, |
| const char * | name, | ||
| int32_t * | sds_id | ||
| ) |
Definition at line 355 of file hdf_utils.c.
◆ sd_setattr()
Definition at line 216 of file hdf_utils.c.
◆ sd_setdimname()
| int sd_setdimname | ( | int32_t | sds_id, |
| int32_t | dim_number, | ||
| const char * | name | ||
| ) |
Definition at line 275 of file hdf_utils.c.
◆ sd_setdimnames()
Definition at line 264 of file hdf_utils.c.
◆ sd_writedata()
| int sd_writedata | ( | int32_t | sd_id, |
| const char * | name, | ||
| const void * | data, | ||
| int32_t | s0, | ||
| int32_t | s1, | ||
| int32_t | s2, | ||
| int32_t | e0, | ||
| int32_t | e1, | ||
| int32_t | e2 | ||
| ) |
Definition at line 293 of file hdf_utils.c.
◆ v_attach()
| int v_attach | ( | int32_t | h_id, |
| int32_t * | v_id | ||
| ) |
Definition at line 404 of file hdf_utils.c.


