public class HDFLibrary
extends java.lang.Object
implements java.io.Serializable
This code is the called by Java programs to access the entry points of the HDF 4.2 library. Each routine wraps a single HDF entry point, generally with the arguments and return codes analogous to the C interface.
For details of the HDF libraries, see the HDF Documentation at: http://hdf.ncsa.uiuc.edu
These routines use the class HDFArray to handle arrays of arbitrary type and shape.
Mapping of arguments for Java
In general, arguments to the HDF Java API are straightforward translations from the 'C' API described in the HDF Reference Manual.
| C | Java |
| int, intn, int32, uint32 | int |
| short, uint16, int16 | short |
| float, float32 | float |
| double, float64 | double |
| char, uchar, int8, uint8 | byte |
| char * (i.e., string) | java.lang.String |
| void | void |
| void *, VOIDP, char * (meaning ``any'') | Special -- see HDFArray |
In general, arguments passed IN to Java are the analogous basic types, as above. The exception is for arrays, which are discussed below.
The return value of Java methods is also the analogous type, as above. A major exception to that rule is that all HDF functions that return SUCCEED/FAIL are declared boolean in the Java version, rather than intn or whatever. (Functions that return a value or else FAIL are declared the equivalent to the C function.)
Java does not support pass by reference of arguments, so arguments that are returned through OUT parameters must be wrapped in an object or array. The Java API for HDF consistently wraps arguments in arrays.
For instance, a function that returns two integers is declared:
void HDFdummy( int32* a1, int32* a2)For the Java interface, this would be declared:
public static native void HDFdummy( int args[] );where a1 is args[0] and a2 is args[1].
All the routines where this convention is used will have specific documentation of the details, given below.
Arrays
HDF needs to read and write multi-dimensional arrays of many types. The HDF API is self-describing, with the data for the array passed as a block of bytes, for instance,
int SDreaddata(int sdsid, int32 *start, int32 * stride, int32 *count, VOIDP data);
where ``VOIDP'' means that the data may be any valid numeric type, and is a contiguous block of bytes that is the data for a multi-dimensional array.
For Java, this is a problem, as the type of data must be declared. Furthermore, multidimensional arrays are definitely not layed out contiguously in memory. It would be infeasible to declare a separate routine for every combination of number type and dimensionality. For that reason, the HDFArray class is used to discover the type, shape, and size of the data array at run time, and to convert to and from contigous bytes. The upshot is that the data can be passed as an ``Object'', and the Java API will translate to and from the appropriate bytes. So the function above would be declared:
int SDreaddata(int sdsid, int[] start, int[] stride, int[] count, Object data);and the parameter data can be any multi-dimensional array of numbers, such as float[][], or int[][][].
The HDF library passes the parameters needed by compression and chunking through C structures (actually, unions). The Java interface passes these as instances of subclasses of class HDFCompInfo and HDFChunkInfo respectively.
See: ncsa.hdf.hdflib.HDFChunkInfo, and
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HDFPATH_PROPERTY_KEY |
| Constructor and Description |
|---|
HDFLibrary() |
| Modifier and Type | Method and Description |
|---|---|
static int |
ANannlen(int ann_id) |
static int |
ANannlist(int an_id,
int anntype,
int tag,
int ref,
int[] ann_list) |
static short |
ANatype2tag(int antag) |
static int |
ANcreate(int an_id,
short tag,
short ref,
int type) |
static int |
ANcreatef(int an_id,
int type) |
static boolean |
ANend(int an_id) |
static boolean |
ANendaccess(int an_id) |
static boolean |
ANfileinfo(int an_id,
int[] info) |
static int |
ANget_tagref(int an_id,
int index,
int type,
short[] tagref) |
static boolean |
ANid2tagref(int an_id,
short[] tagref) |
static int |
ANnumann(int an_id,
int anntype,
short tag,
short ref) |
static boolean |
ANreadann(int ann_id,
java.lang.String[] annbuf,
int maxlen) |
static int |
ANselect(int an_id,
int index,
int anntype) |
static int |
ANstart(int fid) |
static int |
ANtag2atype(short anttype) |
static int |
ANtagref2id(int an_id,
short tag,
short ref) |
static boolean |
ANwriteann(int ann_id,
java.lang.String label,
int ann_length) |
static boolean |
DF24addimage(java.lang.String filename,
byte[] image,
int width,
int height) |
static boolean |
DF24addimage(java.lang.String filename,
java.lang.Object theImage,
int width,
int height) |
static boolean |
DF24getdims(java.lang.String fileName,
int[] argv) |
static boolean |
DF24getimage(java.lang.String fileName,
byte[] imagedata,
int width,
int height) |
static boolean |
DF24getimage(java.lang.String fileName,
java.lang.Object theImagedata,
int width,
int height) |
static short |
DF24lastref() |
static int |
DF24nimages(java.lang.String fileName) |
static boolean |
DF24putimage(java.lang.String filename,
byte[] image,
int width,
int height) |
static boolean |
DF24putimage(java.lang.String filename,
java.lang.Object theImage,
int width,
int height) |
static boolean |
DF24readref(java.lang.String filename,
int ref) |
static boolean |
DF24reqil(int il) |
static boolean |
DF24restart() |
static boolean |
DF24setcompress(int type,
HDFCompInfo cinfo) |
static boolean |
DF24setdims(int width,
int height) |
static boolean |
DF24setil(int il) |
static int |
DFKNTsize(int numbertype) |
static boolean |
DFPaddpal(java.lang.String filename,
byte[] palette) |
static boolean |
DFPgetpal(java.lang.String filename,
byte[] palette) |
static short |
DFPlastref() |
static int |
DFPnpals(java.lang.String filename) |
static boolean |
DFPputpal(java.lang.String filename,
byte[] palette,
boolean overwrite,
java.lang.String filemode) |
static boolean |
DFPputpal(java.lang.String filename,
byte[] palette,
int overwrite,
java.lang.String filemode) |
static boolean |
DFPreadref(java.lang.String filename,
short ref) |
static short |
DFPrestart() |
static boolean |
DFPwriteref(java.lang.String filename,
short ref) |
static boolean |
DFR8addimage(java.lang.String filename,
byte[] image,
int width,
int height,
short compress) |
static boolean |
DFR8addimage(java.lang.String filename,
java.lang.Object theImage,
int width,
int height,
short compress) |
static boolean |
DFR8getdims(java.lang.String fileName,
int[] argv,
boolean[] haspalette) |
static boolean |
DFR8getimage(java.lang.String fileName,
byte[] imagedata,
int width,
int height,
byte[] palette) |
static boolean |
DFR8getimage(java.lang.String fileName,
java.lang.Object theImagedata,
int width,
int height,
byte[] palette) |
static boolean |
DFR8getpalref(short[] palref) |
static short |
DFR8lastref() |
static int |
DFR8nimages(java.lang.String fileName) |
static boolean |
DFR8putimage(java.lang.String filename,
byte[] image,
int width,
int height,
short compress) |
static boolean |
DFR8putimage(java.lang.String filename,
java.lang.Object theImage,
int width,
int height,
short compress) |
static boolean |
DFR8readref(java.lang.String filename,
int ref) |
static boolean |
DFR8restart() |
static boolean |
DFR8setcompress(int type,
HDFCompInfo cinfo) |
static boolean |
DFR8setpalette(byte[] palette) |
static boolean |
DFR8writeref(java.lang.String filename,
short ref) |
static java.lang.String |
getJHIVersion()
Deprecated.
|
static boolean |
GRattrinfo(int id,
int index,
java.lang.String[] name,
int[] argv) |
static int |
GRcreate(int gr_id,
java.lang.String name,
int ncomp,
int data_type,
int interlace_mode,
int[] dim_sizes) |
static boolean |
GRend(int grid) |
static boolean |
GRendaccess(int riid) |
static boolean |
GRfileinfo(int grid,
int[] args) |
static int |
GRfindattr(int id,
java.lang.String name) |
static boolean |
GRgetattr(int id,
int index,
byte[] data) |
static boolean |
GRgetattr(int id,
int index,
java.lang.Object theData) |
static boolean |
GRgetchunkinfo(int sdsid,
HDFChunkInfo chunk_def,
int[] flag) |
static boolean |
GRgetcompress(int ri_id,
HDFCompInfo c_info) |
static boolean |
GRgetiminfo(int grid,
java.lang.String[] gr_name,
int[] args,
int[] dim_sizes) |
static int |
GRgetlutid(int rrid,
int index) |
static boolean |
GRgetlutinfo(int lutid,
int[] args) |
static int |
GRgetnluts(int rrid) |
static short |
GRidtoref(int riid) |
static short |
GRluttoref(int pal_id) |
static int |
GRnametoindex(int grid,
java.lang.String name) |
static boolean |
GRreadchunk(int sdsid,
int[] origin,
byte[] theData) |
static boolean |
GRreadchunk(int grid,
int[] origin,
java.lang.Object theData) |
static boolean |
GRreadimage(int grid,
int[] start,
int[] stride,
int[] count,
byte[] data) |
static boolean |
GRreadimage(int grid,
int[] start,
int[] stride,
int[] count,
java.lang.Object theData) |
static boolean |
GRreadlut(int lutid,
byte[] data) |
static boolean |
GRreadlut(int lutid,
java.lang.Object theData) |
static int |
GRreftoindex(int grid,
short ref) |
static boolean |
GRreqimageil(int rrid,
int interlace) |
static boolean |
GRreqlutil(int riid,
int interlace) |
static int |
GRselect(int grid,
int index) |
static boolean |
GRsetattr(int gr_id,
java.lang.String attr_name,
int data_type,
int count,
byte[] values) |
static boolean |
GRsetattr(int gr_id,
java.lang.String attr_name,
int data_type,
int count,
java.lang.Object theData) |
static boolean |
GRsetattr(int gr_id,
java.lang.String attr_name,
int data_type,
int count,
java.lang.String values) |
static boolean |
GRsetchunk(int sdsid,
HDFChunkInfo chunk_def,
int flags) |
static int |
GRsetchunkcache(int sdsid,
int maxcache,
int flags) |
static boolean |
GRsetcompress(int ri_id,
int comp_type,
HDFCompInfo c_info) |
static boolean |
GRsetexternalfile(int ri_id,
java.lang.String filename,
int offset) |
static int |
GRstart(int fid) |
static boolean |
GRwriteimage(int grid,
int[] start,
int[] stride,
int[] edge,
byte[] data) |
static boolean |
GRwriteimage(int grid,
int[] start,
int[] stride,
int[] edge,
java.lang.Object theData) |
static boolean |
GRwritelut(int pal_id,
int ncomp,
int data_type,
int interlace,
int num_entries,
byte[] pal_data) |
static boolean |
GRwritelut(int pal_id,
int ncomp,
int data_type,
int interlace,
int num_entries,
java.lang.Object theData) |
static boolean |
Hcache(int file_id,
int cache_switch) |
static int |
HCget_config_info(int coder_type)
New API for hdf-42r1
|
static boolean |
Hclose(int fid) |
static int |
HDdont_atexit() |
static boolean |
HDFclose(int file_id) |
static int |
HDFopen(java.lang.String filename,
int access,
short n_dds) |
static java.lang.String |
HDgetNTdesc(int nt) |
static java.lang.String |
HEstring(int error_code) |
static short |
HEvalue(int level) |
static boolean |
Hgetfileversion(int file_id,
int[] vers,
java.lang.String[] string)
Note: the version of an HDF file is not well defined,
it is not recommended that programs rely on these numbers.
|
static boolean |
Hgetlibversion(int[] vers,
java.lang.String[] string) |
static boolean |
Hishdf(java.lang.String fileName) |
static int |
Hnumber(int fid) |
static int |
Hopen(java.lang.String filename) |
static int |
Hopen(java.lang.String filename,
int access) |
static boolean |
Hsetaccesstype(int h_id,
int access_type) |
static boolean |
Hsync(int file_id) |
static boolean |
HXsetcreatedir(java.lang.String dir) |
static boolean |
HXsetdir(java.lang.String dir) |
static void |
loadH4Lib() |
static boolean |
SDattrinfo(int id,
int index,
java.lang.String[] name,
int[] argv) |
static boolean |
SDcheckempty(int sdsid,
int[] emptySDS) |
static int |
SDcreate(int sd_id,
java.lang.String name,
int number_type,
int rank,
int[] dimsizes) |
static boolean |
SDdiminfo(int dimid,
java.lang.String[] name,
int[] argv) |
static boolean |
SDend(int sdid) |
static boolean |
SDendaccess(int sdsid) |
static boolean |
SDfileinfo(int sdid,
int[] argv) |
static int |
SDfindattr(int id,
java.lang.String name) |
static boolean |
SDgetcal(int sdsid,
double[] argv,
int[] NT) |
static boolean |
SDgetchunkinfo(int sdsid,
HDFChunkInfo chunk_def,
int[] clflags) |
static boolean |
SDgetcompinfo(int id,
HDFCompInfo cinfo) |
static boolean |
SDgetcompress(int id,
HDFCompInfo cinfo)
Deprecated.
As of HDF 4.2.9, replaced by
SDgetcompinfo(int, HDFCompInfo) |
static boolean |
SDgetdatastrs(int sdsid,
java.lang.String[] strings,
int len) |
static int |
SDgetdimid(int sdsid,
int index) |
static boolean |
SDgetdimscale(int dimid,
byte[] data) |
static boolean |
SDgetdimscale(int dimid,
java.lang.Object theData) |
static boolean |
SDgetdimstrs(int dimid,
java.lang.String[] args,
int len) |
static boolean |
SDgetfillvalue(int sdsid,
byte[] fillValue) |
static boolean |
SDgetfillvalue(int sdsid,
java.lang.Object[] theFillValue) |
static boolean |
SDgetinfo(int sdsid,
java.lang.String[] name,
int[] dimsizes,
int[] args) |
static boolean |
SDgetrange(int sdsid,
byte[] max,
byte[] min) |
static boolean |
SDgetrange(int sdsid,
double[] maxmin) |
static int |
SDidtoref(int sdsid) |
static boolean |
SDiscoordvar(int sdsid) |
static boolean |
SDisdimval_bwcomp(int dimid) |
static boolean |
SDisrecord(int sdsid) |
static int |
SDnametoindex(int sdid,
java.lang.String name) |
static boolean |
SDreadattr(int id,
int index,
byte[] data) |
static boolean |
SDreadattr(int id,
int index,
java.lang.Object theData) |
static boolean |
SDreadchunk(int sdsid,
int[] origin,
byte[] theData) |
static boolean |
SDreadchunk(int sdsid,
int[] origin,
java.lang.Object theData) |
static boolean |
SDreaddata_double(int sdsid,
int[] start,
int[] stride,
int[] count,
double[] theData) |
static boolean |
SDreaddata_float(int sdsid,
int[] start,
int[] stride,
int[] count,
float[] theData) |
static boolean |
SDreaddata_int(int sdsid,
int[] start,
int[] stride,
int[] count,
int[] theData) |
static boolean |
SDreaddata_long(int sdsid,
int[] start,
int[] stride,
int[] count,
long[] theData) |
static boolean |
SDreaddata_short(int sdsid,
int[] start,
int[] stride,
int[] count,
short[] theData) |
static boolean |
SDreaddata(int sdsid,
int[] start,
int[] stride,
int[] count,
byte[] data) |
static boolean |
SDreaddata(int sdsid,
int[] start,
int[] stride,
int[] count,
java.lang.Object theData) |
static int |
SDreftoindex(int sdid,
int ref) |
static int |
SDselect(int sdid,
int index) |
static boolean |
SDsetaccesstype(int id,
int accesstype) |
static boolean |
SDsetattr(int s_id,
java.lang.String attr_name,
int num_type,
int count,
byte[] values) |
static boolean |
SDsetattr(int s_id,
java.lang.String attr_name,
int num_type,
int count,
java.lang.Object theValues) |
static boolean |
SDsetblocksize(int sdsid,
int block_size) |
static boolean |
SDsetcal(int sds_id,
double cal,
double cal_err,
double offset,
double offset_err,
int number_type) |
static boolean |
SDsetchunk(int sdsid,
HDFChunkInfo chunk_def,
int flags) |
static int |
SDsetchunkcache(int sdsid,
int maxcache,
int flags) |
static boolean |
SDsetcompress(int id,
int type,
HDFCompInfo cinfo) |
static boolean |
SDsetdatastrs(int sds_id,
java.lang.String label,
java.lang.String unit,
java.lang.String format,
java.lang.String coordsys) |
static boolean |
SDsetdimname(int dim_id,
java.lang.String dim_name) |
static boolean |
SDsetdimscale(int dim_id,
int count,
int number_type,
byte[] data) |
static boolean |
SDsetdimscale(int dim_id,
int count,
int number_type,
java.lang.Object theData) |
static boolean |
SDsetdimstrs(int dim_id,
java.lang.String label,
java.lang.String unit,
java.lang.String format) |
static boolean |
SDsetdimval_comp(int dimid,
int comp_mode) |
static boolean |
SDsetexternalfile(int sds_id,
java.lang.String filename,
int offset) |
static boolean |
SDsetfillmode(int sdsid,
boolean fill_enable) |
static boolean |
SDsetfillmode(int sdsid,
int fillmode) |
static boolean |
SDsetfillvalue(int sds_id,
byte[] fill_val) |
static boolean |
SDsetfillvalue(int sds_id,
java.lang.Object the_fill_val) |
static boolean |
SDsetnbitdataset(int id,
int start_bit,
int bit_len,
int sign_ext,
int fill_one) |
static boolean |
SDsetrange(int sdsid,
byte[] max,
byte[] min) |
static boolean |
SDsetrange(int sdsid,
java.lang.Object max,
java.lang.Object min) |
static int |
SDstart(java.lang.String filename,
int accessmode) |
static boolean |
SDwritechunk(int sdsid,
int[] origin,
byte[] data) |
static boolean |
SDwritechunk(int sdsid,
int[] origin,
java.lang.Object theData) |
static boolean |
SDwritedata(int sdsid,
int[] start,
int[] stride,
int[] count,
byte[] data) |
static boolean |
SDwritedata(int sdsid,
int[] start,
int[] stride,
int[] count,
java.lang.Object theData) |
static int |
Vaddtagref(int vgroup_id,
int tag,
int ref) |
static int |
Vattach(int fid,
int vgroup_ref,
java.lang.String access) |
static boolean |
Vattrinfo(int id,
int index,
java.lang.String[] name,
int[] argv) |
static int |
Vdeletetagref(int vgroup_id,
int tag,
int ref) |
static void |
Vdetach(int vgroup_id) |
static void |
Vend(int file_id) |
static int |
VFfieldesize(int vdata_id,
int field_index) |
static int |
VFfieldisize(int vdata_id,
int field_index) |
static java.lang.String |
VFfieldname(int vdata_id,
int field_index) |
static int |
VFfieldorder(int vdata_id,
int field_index) |
static int |
VFfieldtype(int vdata_id,
int field_index) |
static int |
Vfind(int file_id,
java.lang.String vgroup_name) |
static int |
Vfindattr(int id,
java.lang.String name) |
static int |
Vfindclass(int file_id,
java.lang.String vgclassname) |
static int |
Vflocate(int key,
java.lang.String vgclassname) |
static int |
VFnfields(int vkey) |
static boolean |
Vgetattr(int id,
int index,
byte[] data) |
static boolean |
Vgetattr(int id,
int index,
java.lang.Object theData) |
static void |
Vgetclass(int vgroup_id,
java.lang.String[] hdfclassname) |
static int |
Vgetid(int file_id,
int vgroup_ref) |
static void |
Vgetname(int vgroup_id,
java.lang.String[] hdfname) |
static int |
Vgetnext(int key,
int ref) |
static boolean |
Vgettagref(int vgroup_id,
int index,
int[] tagref) |
static int |
Vgettagrefs(int vgroup_id,
int[] tags,
int[] refs,
int arraysize) |
static int |
Vgetversion(int id) |
static int |
VHmakegroup(int file_id,
int[] tag_array,
int[] ref_array,
int n_objects,
java.lang.String vgroup_name,
java.lang.String vgroup_class) |
static int |
VHstoredata(int file_id,
java.lang.String fieldname,
byte[] buf,
int n_records,
int data_type,
java.lang.String vdata_name,
java.lang.String vdata_class) |
static int |
VHstoredata(int file_id,
java.lang.String fieldname,
java.lang.Object thebuf,
int n_records,
int data_type,
java.lang.String vdata_name,
java.lang.String vdata_class) |
static int |
VHstoredatam(int file_id,
java.lang.String fieldname,
byte[] buf,
int n_records,
int data_type,
java.lang.String vdata_name,
java.lang.String vdata_class,
int order) |
static int |
VHstoredatam(int file_id,
java.lang.String fieldname,
java.lang.Object buf,
int n_records,
int data_type,
java.lang.String vdata_name,
java.lang.String vdata_class,
int order) |
static boolean |
Vinqtagref(int vgroup_id,
int tag,
int ref) |
static boolean |
Vinquire(int vgroup_id,
int[] n_entries,
java.lang.String[] vgroup_name) |
static int |
Vinsert(int vgroup_id,
int v_id) |
static boolean |
Visvg(int vgroup_id,
int vgroup_ref) |
static boolean |
Visvs(int vgroup_id,
int vdata_ref) |
static int |
Vlone(int fid,
int[] ref_array,
int buffersize) |
static int |
Vnattrs(int id) |
static int |
Vnrefs(int key,
int ref) |
static int |
Vntagrefs(int vgroup_id) |
static int |
VQueryref(int vkey) |
static int |
VQuerytag(int vkey) |
static boolean |
VSappendable(int vkey,
int block_size) |
static int |
VSattach(int fid,
int vdata_ref,
java.lang.String access) |
static boolean |
VSattrinfo(int id,
int index,
int attr_index,
java.lang.String[] name,
int[] argv) |
static void |
VSdetach(int vdata_id) |
static int |
VSelts(int vdata_id) |
static boolean |
Vsetattr(int id,
java.lang.String attr_name,
int data_type,
int count,
byte[] data) |
static boolean |
Vsetattr(int id,
java.lang.String attr_name,
int data_type,
int count,
java.lang.Object theData) |
static boolean |
Vsetattr(int id,
java.lang.String attr_name,
int data_type,
int count,
java.lang.String values) |
static boolean |
Vsetclass(int vgroup_id,
java.lang.String vgclassname) |
static boolean |
Vsetname(int vgroup_id,
java.lang.String vgname) |
static boolean |
VSfdefine(int vdata_id,
java.lang.String fieldname,
int numbertype,
int order) |
static boolean |
VSfexist(int vdata_id,
java.lang.String fields) |
static int |
VSfind(int file_id,
java.lang.String vdataname) |
static int |
VSfindattr(int id,
int index,
java.lang.String name) |
static int |
VSfindclass(int file_id,
java.lang.String vgclass) |
static int |
VSfindex(int id,
java.lang.String name,
int[] findex) |
static int |
VSfnattrs(int id,
int fnattrs) |
static boolean |
VSgetattr(int id,
int index,
int attr_index,
byte[] data) |
static boolean |
VSgetattr(int id,
int index,
int attr_index,
java.lang.Object theData) |
static void |
VSgetclass(int vdata_id,
java.lang.String[] hdfclassname) |
static int |
VSgetfields(int vdata_id,
java.lang.String[] fieldname) |
static int |
VSgetid(int file_id,
int vdata_ref) |
static int |
VSgetinterlace(int vdata_id) |
static void |
VSgetname(int vdata_id,
java.lang.String[] hdfname) |
static int |
VSgetversion(int vkey) |
static boolean |
VSinquire(int vdata_id,
int[] iargs) |
static boolean |
VSinquire(int vdata_id,
int[] iargs,
java.lang.String[] sargs) |
static boolean |
VSisattr(int id) |
static int |
VSlone(int fid,
int[] ref_array,
int buffersize) |
static int |
VSnattrs(int id) |
static boolean |
VSQuerycount(int vdata_id,
int[] n_records) |
static boolean |
VSQueryfields(int vdata_id,
java.lang.String[] fields) |
static boolean |
VSQueryinterlace(int vdata_id,
int[] interlace) |
static boolean |
VSQueryname(int vdata_id,
java.lang.String[] vdata_name) |
static int |
VSQueryref(int vdata_id) |
static int |
VSQuerytag(int vdata_id) |
static boolean |
VSQueryvsize(int vdata_id,
int[] vdata_size) |
static int |
VSread(int vdata_id,
byte[] databuf,
int nrecord,
int interlace) |
static int |
VSread(int vdata_id,
java.lang.Object theData,
int nrecord,
int interlace) |
static int |
VSseek(int vdata_id,
int record) |
static boolean |
VSsetattr(int id,
int index,
java.lang.String attr_name,
int data_type,
int count,
byte[] values) |
static boolean |
VSsetattr(int id,
int index,
java.lang.String attr_name,
int data_type,
int count,
java.lang.Object theData) |
static boolean |
VSsetattr(int id,
int index,
java.lang.String attr_name,
int data_type,
int count,
java.lang.String values) |
static int |
VSsetblocksize(int vdata_id,
int blocksize) |
static void |
VSsetclass(int vdata_id,
java.lang.String vdata_class) |
static boolean |
VSsetexternalfile(int vkey,
java.lang.String filename,
int offset) |
static boolean |
VSsetfields(int vdata_id,
java.lang.String fields) |
static boolean |
VSsetinterlace(int vdata_id,
int interlace) |
static void |
VSsetname(int vdata_id,
java.lang.String vdata_name) |
static int |
VSsetnumblocks(int vdata_id,
int numblocks) |
static int |
VSsizeof(int vdata_id,
java.lang.String fields) |
static boolean |
Vstart(int fid) |
static int |
VSwrite(int vdata_id,
byte[] databuf,
int n_records,
int interlace) |
static int |
VSwrite(int vdata_id,
java.lang.Object databuf,
int n_records,
int interlace) |
public static final java.lang.String HDFPATH_PROPERTY_KEY
public static void loadH4Lib()
@Deprecated public static final java.lang.String getJHIVersion()
public static int Hopen(java.lang.String filename) throws HDFException
HDFException
public static int Hopen(java.lang.String filename, int access) throws HDFException
HDFException
public static boolean Hclose(int fid) throws HDFException
HDFException
public static int HDdont_atexit() throws HDFException
HDFException
public static boolean Hishdf(java.lang.String fileName) throws HDFException
HDFException
public static int Hnumber(int fid) throws HDFException
HDFException
public static int DFKNTsize(int numbertype) throws HDFException
HDFException
public static java.lang.String HDgetNTdesc(int nt) throws HDFException
HDFException
public static boolean Hcache(int file_id, int cache_switch) throws HDFException
HDFException
public static boolean Hgetfileversion(int file_id, int[] vers, java.lang.String[] string) throws HDFException
file_id
- IN: int, the file descriptor returned by Hopenvers
- OUT: int[3], the major version, minor version,
and release number of the file.string
- OUT: String[1], the version stringHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean Hgetlibversion(int[] vers, java.lang.String[] string) throws HDFException
vers
- OUT: int[3], the major version, minor version,
and release number of the HDF library.string
- OUT: String[1], the version stringHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean Hsetaccesstype(int h_id, int access_type) throws HDFException
HDFException
public static boolean Hsync(int file_id) throws HDFException
HDFException
public static int ANstart(int fid) throws HDFException
HDFException
public static boolean ANend(int an_id) throws HDFException
HDFException
public static boolean ANendaccess(int an_id) throws HDFException
HDFException
public static boolean ANfileinfo(int an_id, int[] info) throws HDFException
an_id
- IN: the AN interface id, returned by ANstartinfo
- OUT: int[4], n_file_label, n_file_desc,
n_data_label, n_data_descHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static int ANselect(int an_id, int index, int anntype) throws HDFException
HDFException
public static int ANnumann(int an_id, int anntype, short tag, short ref) throws HDFException
HDFException
public static short ANatype2tag(int antag) throws HDFException
HDFException
public static int ANtag2atype(short anttype) throws HDFException
HDFException
public static int ANannlist(int an_id, int anntype, int tag, int ref, int[] ann_list) throws HDFException
an_id
- IN: the AN interface id, returned by ANstartanntype
- IN: the number type, as defined in HDFConstantstag
- IN: the HDF tagref
- IN: the HDF refann_list
- OUT: int[], an array of annotation identifiers.
The array must be long enough to hold the number of annotations
returned by ANnumannHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static int ANannlen(int ann_id) throws HDFException
HDFException
public static boolean ANreadann(int ann_id, java.lang.String[] annbuf, int maxlen) throws HDFException
ann_id
- IN: the AN interface id, returned by ANstartannbuf
- OUT: String[1], the annotation is returned as annbuf[0].maxlen
- IN: int, the maximum length of the string.HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static int ANcreate(int an_id, short tag, short ref, int type) throws HDFException
HDFException
public static int ANcreatef(int an_id, int type) throws HDFException
HDFException
public static int ANget_tagref(int an_id, int index, int type, short[] tagref) throws HDFException
an_id
- IN: the AN interface id, returned by ANstartindex
- IN: the index of the annotationtype
- IN: the type of the annotationtagref
- OUT: short[2], the tag and ref of the annotationHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean ANid2tagref(int an_id, short[] tagref) throws HDFException
an_id
- IN: the AN interface id, returned by ANstarttagref
- OUT: short[2], the tag and ref of the annotationHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static int ANtagref2id(int an_id, short tag, short ref) throws HDFException
HDFException
public static boolean ANwriteann(int ann_id, java.lang.String label, int ann_length) throws HDFException
HDFException
public static boolean DFPaddpal(java.lang.String filename, byte[] palette) throws HDFException
HDFException
public static boolean DFPgetpal(java.lang.String filename, byte[] palette) throws HDFException
HDFException
public static short DFPlastref() throws HDFException
HDFException
public static int DFPnpals(java.lang.String filename) throws HDFException
HDFException
public static boolean DFPputpal(java.lang.String filename, byte[] palette, int overwrite, java.lang.String filemode) throws HDFException
HDFException
public static boolean DFPputpal(java.lang.String filename, byte[] palette, boolean overwrite, java.lang.String filemode) throws HDFException
filename
- IN: String, the name of the HDF filepalette
- IN: byte[] the paletteoverwrite
- IN: boolean, converted to 1 == true, 0 == false
to call the HDF libraryHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean DFPreadref(java.lang.String filename, short ref) throws HDFException
HDFException
public static short DFPrestart() throws HDFException
HDFException
public static boolean DFPwriteref(java.lang.String filename, short ref) throws HDFException
HDFException
public static int GRstart(int fid) throws HDFException
HDFException
public static boolean GRend(int grid) throws HDFException
HDFException
public static boolean GRfileinfo(int grid, int[] args) throws HDFException
grid
- IN: the GR interface id, returned by GRstartargs
- OUT: int[2], n_datasets and n_file_attrsHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean GRgetchunkinfo(int sdsid, HDFChunkInfo chunk_def, int[] flag) throws HDFException
sdsid
- IN: the SD identifier returned by SDselectchunk_def
- OUT: HDFChunkInfo, the chunking infoflag
- OUT: int[1], the type of chunkingNOTE:The chunking algorithm-specific information is passed in an appropriate sub-class of HDFChunkInfo.
HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static int GRselect(int grid, int index) throws HDFException
HDFException
public static int GRnametoindex(int grid, java.lang.String name) throws HDFException
HDFException
public static boolean GRgetiminfo(int grid, java.lang.String[] gr_name, int[] args, int[] dim_sizes) throws HDFException
grid
- IN: the GR interface id, returned by GRstartargs
- OUT: int[5], image info:
number of components in the image,
data type of the image data,
interlace mode of the stored image data,
sizes of each image dimension ,
number of attributes assigned to the imagedim_sizes
- OUT: int[2], dim_sizesNOTE: the parameters for the Java interface are not in the same order as the C interface.
HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean GRreadimage(int grid, int[] start, int[] stride, int[] count, byte[] data) throws HDFException
grid
- IN: the GR interface id, returned by GRstartstart
- IN: int[], startstride
- IN: int[], stridecount
- IN: int[], countdata
- OUT: byte[], dataNOTE: to read into a Java 2D array use the alternative routine below.
HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean GRreadimage(int grid, int[] start, int[] stride, int[] count, java.lang.Object theData) throws HDFException
grid
- IN: the GR interface id, returned by GRstartstart
- IN: int[], startstride
- IN: int[], stridecount
- IN: int[], counttheData
- OUT: Object, a Java array of appropriate
type, dimensions, and size.Note: reads the data as bytes and converts to the Java array.
HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean GRendaccess(int riid) throws HDFException
HDFException
public static short GRidtoref(int riid) throws HDFException
HDFException
public static int GRreftoindex(int grid, short ref) throws HDFException
HDFException
public static boolean GRreqlutil(int riid, int interlace) throws HDFException
HDFException
public static boolean GRreqimageil(int rrid, int interlace) throws HDFException
HDFException
public static int GRgetlutid(int rrid, int index) throws HDFException
HDFException
public static int GRgetnluts(int rrid) throws HDFException
HDFException
public static boolean GRgetlutinfo(int lutid, int[] args) throws HDFException
lutid
- IN: the palette identifier returned by GRgetlutidargs
- OUT: int[4], palette info:
Number of components in the palette,
Data type of the palette data,
Interlace mode of the stored palette data,
Number of color lookup table entries in the palette.HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean GRreadlut(int lutid, byte[] data) throws HDFException
lutid
- IN: the palette identifier returned by GRgetlutiddata
- OUT: byte[], palette data, in bytesNOTE: to read into a Java 1D array use the alternative routine below.
HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean GRreadlut(int lutid, java.lang.Object theData) throws HDFException
lutid
- IN: the palette identifier returned by GRgetlutidtheData
- OUT: Object, palette data, an Java arrayNote: reads the data as bytes and converts to the Java array.
HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean GRattrinfo(int id, int index, java.lang.String[] name, int[] argv) throws HDFException
id
- IN: the GR identifier returned by GRstartindex
- IN: the index of the attributename
- OUT: String[1], the name of the attributeargv
- OUT: int[2], the type and length of the
attributeHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean GRgetattr(int id, int index, byte[] data) throws HDFException
id
- IN: the GR identifier returned by GRstartdata
- OUT: byte[], attribute data, in bytesNOTE: to read into a Java 1D array use the alternative routine below.
HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean GRgetattr(int id, int index, java.lang.Object theData) throws HDFException
id
- IN: the GR identifier returned by GRstarttheData
- OUT: Object, attribute data, an Java arrayNote: reads the data as bytes and converts to the Java array.
HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static int GRfindattr(int id, java.lang.String name) throws HDFException
HDFException
public static int GRcreate(int gr_id, java.lang.String name, int ncomp, int data_type, int interlace_mode, int[] dim_sizes) throws HDFException
HDFException
public static short GRluttoref(int pal_id) throws HDFException
HDFException
public static boolean GRsetattr(int gr_id, java.lang.String attr_name, int data_type, int count, java.lang.String values) throws HDFException
gr_id
- IN: the GR identifier returned by GRstartattr_name
- IN: the name of the attributedata_type
- IN: the number type of the data (should
be DFNT_CHAR)count
- IN: the length the data (lenght of 'values')values
- IN: the the attribute to write -- A StringHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE:This routine writes a attribute that is a String. Alternative methods write data of other types.
public static boolean GRsetattr(int gr_id, java.lang.String attr_name, int data_type, int count, byte[] values) throws HDFException
gr_id
- IN: the GR identifier returned by GRstartattr_name
- IN: the name of the attributedata_type
- IN: the number type of the datacount
- IN: the length the data (lenght of 'values')values
- IN: the the attribute to write -- in an
array of bytesHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE:This routine writes the attribute as an array of bytes. DO NOT USE THIS TO WRITE A STRING. This is intended for numeric data that has been flattened into bytes.
public static boolean GRsetattr(int gr_id, java.lang.String attr_name, int data_type, int count, java.lang.Object theData) throws HDFException
gr_id
- IN: the GR identifier returned by GRstartattr_name
- IN: the name of the attributedata_type
- IN: the number type of the datacount
- IN: the length the data (lenght of 'values')theData
- IN: Object -- the value to be written,
a Java array of numbers.HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE:This routine converts the Java array to bytes then writes it. DO NOT USE THIS TO WRITE A STRING.
public static boolean GRsetchunk(int sdsid, HDFChunkInfo chunk_def, int flags) throws HDFException
sdsid
- IN: the SD identifier returned by SDselectchunk_def
- IN: HDFChunkInfo, the chunking infoflags
- IN: the type of chunkingHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE:The chunking algorithm-specific information is passed in an appropriate sub-class of HDFChunkInfo.
public static int GRsetchunkcache(int sdsid, int maxcache, int flags) throws HDFException
HDFException
public static boolean GRsetcompress(int ri_id, int comp_type, HDFCompInfo c_info) throws HDFException
ri_id
- IN: the GR identifier returned by GRstartcomp_type
- IN: the type of compressionc_info
- IN: HDFCompInfo, the compression infoHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE:The compression algorithm specific information is passed in an appropriate sub-class of HDFCompInfo.
public static boolean GRgetcompress(int ri_id, HDFCompInfo c_info) throws HDFException
HDFException
public static boolean GRsetexternalfile(int ri_id, java.lang.String filename, int offset) throws HDFException
HDFException
public static boolean GRwriteimage(int grid, int[] start, int[] stride, int[] edge, byte[] data) throws HDFException
grid
- IN: the GR interface id, returned by GRstartstart
- IN: int[], startstride
- IN: int[], strideedge
- IN: int[], countdata
- IN: byte[], data to be writtenHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE: to write from a Java 2D array use the alternative routine below.
public static boolean GRwriteimage(int grid, int[] start, int[] stride, int[] edge, java.lang.Object theData) throws HDFException
grid
- IN: the GR interface id, returned by GRstartstart
- IN: int[], startstride
- IN: int[], strideedge
- IN: int[], counttheData
- IN: Object, a Java array of appropriate
type, dimensions, and size.HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
Note: converts the Java array to a contiguous block of bytes appropriate for C, and then writes the bytes.
public static boolean GRwritelut(int pal_id, int ncomp, int data_type, int interlace, int num_entries, byte[] pal_data) throws HDFException
pal_id
- IN: the palette identifier returned by GRgetlutidncomp
- IN: int, number of componentsdata_type
- IN: int, number typeinterlace
- IN: int, interlacenum_entries
- IN: int, number of entriespal_data
- IN: byte[], palette data to be written--as bytesHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE: to write from a Java array of numbers use the alternative routine below.
public static boolean GRwritelut(int pal_id, int ncomp, int data_type, int interlace, int num_entries, java.lang.Object theData) throws HDFException
pal_id
- IN: the palette identifier returned by GRgetlutidncomp
- IN: int, number of componentsdata_type
- IN: int, number typeinterlace
- IN: int, interlacenum_entries
- IN: int, number of entriestheData
- IN: Object, palette data to be written, any
number type.HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
Note: converts the Java array to a contiguous block of bytes appropriate for C, and then writes the bytes.
public static boolean GRreadchunk(int sdsid, int[] origin, byte[] theData) throws HDFException
sdsid
- IN: the GR interface id, returned by SDselectorigin
- IN: int[], origintheData
- OUT: byte[], the data in an array of bytesHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE: to read into a Java array use the alternative routine below.
public static boolean GRreadchunk(int grid, int[] origin, java.lang.Object theData) throws HDFException
grid
- IN: the GR interface id, returned by SDselectorigin
- IN: int[], origintheData
- IN: Object, a Java array of appropriate
type, dimensions, and size.HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
Note: reads the data as a contiguous array of bytes and then converts it to an appropriate Java object.
public static boolean HDFclose(int file_id) throws HDFException
HDFException
public static int HDFopen(java.lang.String filename, int access, short n_dds) throws HDFException
HDFException
public static short HEvalue(int level) throws HDFException
HDFException
public static java.lang.String HEstring(int error_code) throws HDFException
HDFException
public static boolean HXsetcreatedir(java.lang.String dir) throws HDFException
HDFException
public static boolean HXsetdir(java.lang.String dir) throws HDFException
HDFException
public static int SDstart(java.lang.String filename, int accessmode) throws HDFException
HDFException
public static boolean SDend(int sdid) throws HDFException
HDFException
public static boolean SDfileinfo(int sdid, int[] argv) throws HDFException
sdid
- IN: the SD interface id, returned by SDstartargv
- OUT: int[2],
Number of datasets in the file,
Number of global attributes in the fileHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static int SDselect(int sdid, int index) throws HDFException
HDFException
public static int SDnametoindex(int sdid, java.lang.String name) throws HDFException
HDFException
public static boolean SDgetinfo(int sdsid, java.lang.String[] name, int[] dimsizes, int[] args) throws HDFException
sdsid
- IN: the SD interface id, returned by SDselectname
- OUT: String[1], the name of the datasetargs
- OUT: int[3], dataset info:
number of dimensions (rank),
data type for the data stored in the dataset,
number of "netCDF-style" attributes for this datasetdimsizes
- OUT: int[(rank)], sizes of dimensionsNOTE: the parameters for the Java interface are not in the same order as the C interface.
HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean SDcheckempty(int sdsid, int[] emptySDS) throws HDFException
sdsid
- IN: the SD interface id, returned by SDselectemptySDS
- OUT: int[1], 1 if the SDS is empty, 0 if has dataHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean SDreaddata(int sdsid, int[] start, int[] stride, int[] count, byte[] data) throws HDFException
sdsid
- IN: the SD interface id, returned by SDselectstart
- IN: int[], startstride
- IN: int[], stridecount
- IN: int[], countdata
- OUT: byte[], dataNOTE: to read into a Java array use the alternative routine below.
HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean SDreaddata(int sdsid, int[] start, int[] stride, int[] count, java.lang.Object theData) throws HDFException
sdsid
- IN: the SD interface id, returned by SDselectstart
- IN: int[], startstride
- IN: int[], stridecount
- IN: int[], counttheData
- OUT: Object, a Java array of appropriate
type, dimensions, and size.Note: reads the data as bytes and converts to the Java array.
HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean SDendaccess(int sdsid) throws HDFException
HDFException
public static int SDgetdimid(int sdsid, int index) throws HDFException
HDFException
public static boolean SDdiminfo(int dimid, java.lang.String[] name, int[] argv) throws HDFException
dimid
- IN: the dimension id, returned by SDgetdimidname
- OUT: String[1], the dimension nameargv
- OUT: int[3], size of the name string,
number type of data in the array, # attributes for the dimensionHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static int SDidtoref(int sdsid) throws HDFException
HDFException
public static int SDreftoindex(int sdid, int ref) throws HDFException
HDFException
public static boolean SDattrinfo(int id, int index, java.lang.String[] name, int[] argv) throws HDFException
id
- IN: id of a file, SDS, or dimensionindex
- IN: index of the attributename
- OUT: String[1], the name of the attributeargv
- OUT: int[2], number type of the attribute,
number of values in the attributeHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean SDreadattr(int id, int index, byte[] data) throws HDFException
id
- IN: id of a file, SDS, or dimensionindex
- IN: index of the attributedata
- OUT: byte[], dataNOTE: to read into a Java array use the alternative routine below.
HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean SDreadattr(int id, int index, java.lang.Object theData) throws HDFException
id
- IN: id of a file, SDS, or dimensionindex
- IN: index of the attributetheData
- OUT: Object, a Java array of appropriate
type, dimensions, and size.Note: reads the data as bytes and converts to the Java array.
HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static int SDfindattr(int id, java.lang.String name) throws HDFException
HDFException
public static boolean SDiscoordvar(int sdsid) throws HDFException
HDFException
public static boolean SDgetcal(int sdsid, double[] argv, int[] NT) throws HDFException
sdsid
- IN: id of the SDS as returned by SDselectargv
- OUT: double[4], calibration information:
calibration factor
calibration error
offset
offset errorNT
- OUT: int[1], number type of uncalibrated dataHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean SDgetdatastrs(int sdsid, java.lang.String[] strings, int len) throws HDFException
sdsid
- IN: id of the SDS as returned by SDselectstrings
- OUT: String[4], data information strings:
label
unit
print format
coordinate systemlen
- IN: int, max len of string (not needed by
Java -- the HDFLibrary interface will handle this)HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean SDgetdimstrs(int dimid, java.lang.String[] args, int len) throws HDFException
dimid
- IN: id of the SDS as returned by SDselectargs
- OUT: String[4], data information strings:
label
unit
print formatlen
- IN: int, max len of string (not needed by
Java -- the HDFLibrary interface will handle this)HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean SDgetdimscale(int dimid, byte[] data) throws HDFException
dimid
- IN: id of a dimension as returned by SDgetdimiddata
- OUT: byte[], dataNOTE: to read into a Java array use the alternative routine below.
HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean SDgetdimscale(int dimid, java.lang.Object theData) throws HDFException
dimid
- IN: id of a dimension as returned by SDgetdimidtheData
- OUT: Object, a Java array of appropriate
type and size.Note: reads the data as bytes and converts to the Java array.
HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean SDgetfillvalue(int sdsid, byte[] fillValue) throws HDFException
sdsid
- IN: id of the SDS as returned by SDselectfillValue
- OUT: byte[], dataNOTE: to read into a Java variable use the alternative routine below.
HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean SDgetfillvalue(int sdsid, java.lang.Object[] theFillValue) throws HDFException
sdsid
- IN: id of the SDS as returned by SDselecttheFillValue
- OUT: Object[1], one object of
appropriate typeNote: the routine calls SDgetinfo to determine the correct type, reads the data as bytes, and converts to the appropriate Java object.
HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean SDgetrange(int sdsid, byte[] max, byte[] min) throws HDFException
sdsid
- IN: id of the SDS as returned by SDselectmax
- OUT: byte[], max value, as bytesmin
- OUT: byte[], min value, as bytesNOTE: to read into Java doubles, use the alternative routine below.
HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean SDgetrange(int sdsid, double[] maxmin) throws HDFException
sdsid
- IN: id of the SDS as returned by SDselectmaxmin
- OUT: double[2], the max and min values
converted to doublesNote: the routine calls SDgetinfo to determine the correct type, reads the data as bytes, and converts to the double.
HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static int SDcreate(int sd_id, java.lang.String name, int number_type, int rank, int[] dimsizes) throws HDFException
HDFException
public static boolean SDisrecord(int sdsid) throws HDFException
HDFException
public static boolean SDsetattr(int s_id, java.lang.String attr_name, int num_type, int count, byte[] values) throws HDFException
HDFException
public static boolean SDsetattr(int s_id, java.lang.String attr_name, int num_type, int count, java.lang.Object theValues) throws HDFException
HDFException
public static boolean SDsetcal(int sds_id, double cal, double cal_err, double offset, double offset_err, int number_type) throws HDFException
HDFException
public static boolean SDsetdatastrs(int sds_id, java.lang.String label, java.lang.String unit, java.lang.String format, java.lang.String coordsys) throws HDFException
HDFException
public static boolean SDsetdimname(int dim_id, java.lang.String dim_name) throws HDFException
HDFException
public static boolean SDsetdimscale(int dim_id, int count, int number_type, byte[] data) throws HDFException
dim_id
- IN: id of a dimensioncount
- IN: number of valuesnumber_type
- IN: number type of the valuesdata
- IN: byte[], the values, in an array of
bytes.HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
Note: the calling program must assure that the data is correctly formatted for C. To write an array of Java objects, use the alternative routine below.
public static boolean SDsetdimscale(int dim_id, int count, int number_type, java.lang.Object theData) throws HDFException
dim_id
- IN: id of a dimensioncount
- IN: number of valuesnumber_type
- IN: number type of the valuestheData
- OUT: Object, a Java array of appropriate
type and size.HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
Note: converts the Java array to an array of bytes, and writes the bytes.
public static boolean SDsetdimstrs(int dim_id, java.lang.String label, java.lang.String unit, java.lang.String format) throws HDFException
HDFException
public static boolean SDsetexternalfile(int sds_id, java.lang.String filename, int offset) throws HDFException
HDFException
public static boolean SDsetfillvalue(int sds_id, byte[] fill_val) throws HDFException
sds_id
- IN: id of a datasetfill_val
- IN: byte[], the fill values in an array of
bytes.HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
Note: the calling program must assure that the data is correctly formatted for C. To set the fill value with a Java object, use the alternative routine below.
public static boolean SDsetfillvalue(int sds_id, java.lang.Object the_fill_val) throws HDFException
sds_id
- IN: id of a datasetthe_fill_val
- IN: Object, a Java object of appropriate
typeHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
Note: converts the Java array to an array of bytes, and writes the bytes.
public static boolean SDsetrange(int sdsid, byte[] max, byte[] min) throws HDFException
sdsid
- IN: id of a datasetmax
- IN: byte[], the max value in an array of bytesmin
- IN: byte[], the min value in an array of bytesHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
Note: the calling program must assure that the data is correctly formatted for C. To set the max and min value with Java objects, use the alternative routine below.
public static boolean SDsetrange(int sdsid, java.lang.Object max, java.lang.Object min) throws HDFException
sdsid
- IN: id of a datasetmax
- IN: Object, a Java object of appropriate typemin
- IN: Object, a Java object of appropriate typeHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
Note: converts the Java array to an array of bytes, and writes the bytes.
public static boolean SDwritedata(int sdsid, int[] start, int[] stride, int[] count, byte[] data) throws HDFException
sdsid
- IN: the SD interface id, returned by SDselectstart
- IN: int[], startstride
- IN: int[], stridecount
- IN: int[], countdata
- IN: byte[], data in an array of bytesHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE: to write from a Java array use the alternative routine below.
public static boolean SDwritedata(int sdsid, int[] start, int[] stride, int[] count, java.lang.Object theData) throws HDFException
sdsid
- IN: the SD interface id, returned by SDselectstart
- IN: int[], startstride
- IN: int[], stridecount
- IN: int[], counttheData
- IN: Object, a Java array of appropriate
type, dimensions, and size.HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
Note: converts to the Java array to a contiguous array of bytes and then writes to the file.
public static boolean SDsetnbitdataset(int id, int start_bit, int bit_len, int sign_ext, int fill_one) throws HDFException
HDFException
public static boolean SDsetcompress(int id, int type, HDFCompInfo cinfo) throws HDFException
id
- IN: the SD identifier returned by SDselecttype
- IN: the type of compressioncinfo
- IN: HDFCompInfo, the compression infoHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE:The compression algorithm specific information is passed in an appropriate sub-class of HDFCompInfo.
@Deprecated public static boolean SDgetcompress(int id, HDFCompInfo cinfo) throws HDFException
SDgetcompinfo(int, HDFCompInfo)
HDFException
public static boolean SDgetcompinfo(int id, HDFCompInfo cinfo) throws HDFException
HDFException
public static boolean SDsetaccesstype(int id, int accesstype) throws HDFException
HDFException
public static boolean SDsetblocksize(int sdsid, int block_size) throws HDFException
HDFException
public static boolean SDsetfillmode(int sdsid, boolean fill_enable) throws HDFException
sdsid
- IN: the SD idfill_enable
- IN: boolean, true calls library with
SD_FILL, false calls library with SD_NOFILLHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean SDsetfillmode(int sdsid, int fillmode) throws HDFException
HDFException
public static boolean SDsetdimval_comp(int dimid, int comp_mode) throws HDFException
HDFException
public static boolean SDisdimval_bwcomp(int dimid) throws HDFException
HDFException
public static boolean SDsetchunk(int sdsid, HDFChunkInfo chunk_def, int flags) throws HDFException
sdsid
- IN: the SD identifier returned by SDselectchunk_def
- IN: HDFChunkInfo, the chunking infoflags
- IN: the type of chunkingHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE:The chunking algorithm-specific information is passed in an appropriate sub-class of HDFChunkInfo.
public static boolean SDgetchunkinfo(int sdsid, HDFChunkInfo chunk_def, int[] clflags) throws HDFException
sdsid
- IN: the SD identifier returned by SDselectchunk_def
- OUT: HDFChunkInfo, the chunking infoclflags
- OUT: int[1], the type of chunkingNOTE:The chunking algorithm-specific information is passed in an appropriate sub-class of HDFChunkInfo.
HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean SDreadchunk(int sdsid, int[] origin, byte[] theData) throws HDFException
sdsid
- IN: the SD interface id, returned by SDselectorigin
- IN: int[], origintheData
- OUT: byte[], the data in an array of bytesHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE: to read into a Java array use the alternative routine below.
public static boolean SDreadchunk(int sdsid, int[] origin, java.lang.Object theData) throws HDFException
sdsid
- IN: the SD interface id, returned by SDselectorigin
- IN: int[], origintheData
- IN: Object, a Java array of appropriate
type, dimensions, and size.HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
Note: reads the data as a contiguous array of bytes and then converts it to an appropriate Java object.
public static int SDsetchunkcache(int sdsid, int maxcache, int flags) throws HDFException
HDFException
public static boolean SDwritechunk(int sdsid, int[] origin, byte[] data) throws HDFException
sdsid
- IN: the SD interface id, returned by SDselectorigin
- IN: int[], origindata
- IN: byte[], data to be written, in an array of bytesHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE: to write from a Java array use the alternative routine below.
public static boolean SDwritechunk(int sdsid, int[] origin, java.lang.Object theData) throws HDFException
sdsid
- IN: the SD interface id, returned by SDselectorigin
- IN: int[], origintheData
- IN: Object, a Java array of appropriate
type, dimensions, and size.HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
Note: converts to the Java array to a contiguous array of bytes and then writes to the file.
public static int VFfieldesize(int vdata_id, int field_index) throws HDFException
HDFException
public static int VFfieldisize(int vdata_id, int field_index) throws HDFException
HDFException
public static java.lang.String VFfieldname(int vdata_id, int field_index) throws HDFException
HDFException
public static int VFfieldorder(int vdata_id, int field_index) throws HDFException
HDFException
public static int VFfieldtype(int vdata_id, int field_index) throws HDFException
HDFException
public static int VFnfields(int vkey) throws HDFException
HDFException
public static int VHmakegroup(int file_id, int[] tag_array, int[] ref_array, int n_objects, java.lang.String vgroup_name, java.lang.String vgroup_class) throws HDFException
HDFException
public static int VHstoredata(int file_id, java.lang.String fieldname, byte[] buf, int n_records, int data_type, java.lang.String vdata_name, java.lang.String vdata_class) throws HDFException
file_id
- IN: the SD interface id, returned by SDselectfieldname
- IN: String, the name of the field to be filledbuf
- IN: byte[], data to be written, in an array of bytesn_records
- IN: int, the number of records being writtendata_type
- IN: int, the number type of the datavdata_name
- IN: String, the name of the Vdatavdata_class
- IN: String, the class of the VdataHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE: to write from a Java array use the alternative routine below.
public static int VHstoredata(int file_id, java.lang.String fieldname, java.lang.Object thebuf, int n_records, int data_type, java.lang.String vdata_name, java.lang.String vdata_class) throws HDFException
file_id
- IN: the SD interface id, returned by SDselectfieldname
- IN: String, the name of the field to be filledthebuf
- IN: Object, data to be written, in a Java array
of appropriate type and sizen_records
- IN: int, the number of records being writtendata_type
- IN: int, the number type of the datavdata_name
- IN: String, the name of the Vdatavdata_class
- IN: String, the class of the VdataHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
Note: converts to the Java array to a contiguous array of bytes and then writes to the file.
public static int VHstoredatam(int file_id, java.lang.String fieldname, byte[] buf, int n_records, int data_type, java.lang.String vdata_name, java.lang.String vdata_class, int order) throws HDFException
file_id
- IN: the SD interface id, returned by SDselectfieldname
- IN: String, the name of the field to be filledbuf
- IN: byte[], data to be written, in an array of bytesn_records
- IN: int, the number of records being writtendata_type
- IN: int, the number type of the datavdata_name
- IN: String, the name of the Vdatavdata_class
- IN: String, the class of the Vdataorder
- IN: int, the number of components per fieldHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE: to write from a Java array use the alternative routine below.
public static int VHstoredatam(int file_id, java.lang.String fieldname, java.lang.Object buf, int n_records, int data_type, java.lang.String vdata_name, java.lang.String vdata_class, int order) throws HDFException
file_id
- IN: the SD interface id, returned by SDselectfieldname
- IN: String, the name of the field to be filledbuf
- IN: Object, data to be written, in a Java array
of appropriate type, dimension, and sizen_records
- IN: int, the number of records being writtendata_type
- IN: int, the number type of the datavdata_name
- IN: String, the name of the Vdatavdata_class
- IN: String, the class of the Vdataorder
- IN: int, the number of components per fieldHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
Note: converts to the Java array to a contiguous array of bytes and then writes to the file.
public static int VQueryref(int vkey) throws HDFException
HDFException
public static int VQuerytag(int vkey) throws HDFException
HDFException
public static boolean VSQuerycount(int vdata_id, int[] n_records) throws HDFException
vdata_id
- IN, vdata id as returned by VSattachn_records
- OUT, int[1], the number of records in the vdataHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean VSQueryfields(int vdata_id, java.lang.String[] fields) throws HDFException
vdata_id
- IN, vdata id as returned by VSattachfields
- OUT, String[1], the names of the fieldsHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean VSQueryinterlace(int vdata_id, int[] interlace) throws HDFException
vdata_id
- IN, vdata id as returned by VSattachinterlace
- OUT, int[1], the interlace mode,HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean VSQueryname(int vdata_id, java.lang.String[] vdata_name) throws HDFException
vdata_id
- IN, vdata id as returned by VSattachvdata_name
- OUT, String[1], the name of the vdataHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static int VSQueryref(int vdata_id) throws HDFException
HDFException
public static int VSQuerytag(int vdata_id) throws HDFException
HDFException
public static boolean VSQueryvsize(int vdata_id, int[] vdata_size) throws HDFException
vdata_id
- IN, vdata id as returned by VSattachvdata_size
- OUT, int[1], the size of the vdataHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static int VSattach(int fid, int vdata_ref, java.lang.String access) throws HDFException
HDFException
public static void VSdetach(int vdata_id) throws HDFException
HDFException
public static int VSgetid(int file_id, int vdata_ref) throws HDFException
HDFException
public static void VSgetclass(int vdata_id, java.lang.String[] hdfclassname) throws HDFException
vdata_id
- IN, vdata id as returned by VSattachhdfclassname
- OUT, String[1], the class name of the vdataHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static void VSgetname(int vdata_id, java.lang.String[] hdfname) throws HDFException
vdata_id
- IN, vdata id as returned by VSattachhdfname
- OUT, String[1], the name of the vdataHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static int VSelts(int vdata_id) throws HDFException
HDFException
public static boolean VSfdefine(int vdata_id, java.lang.String fieldname, int numbertype, int order) throws HDFException
HDFException
public static boolean VSfexist(int vdata_id, java.lang.String fields) throws HDFException
HDFException
public static int VSfind(int file_id, java.lang.String vdataname) throws HDFException
HDFException
public static int VSsetblocksize(int vdata_id, int blocksize) throws HDFException
HDFException
public static int VSsetnumblocks(int vdata_id, int numblocks) throws HDFException
HDFException
public static int VSgetfields(int vdata_id, java.lang.String[] fieldname) throws HDFException
vdata_id
- IN, vdata id as returned by VSattachfieldname
- OUT, String[1], the names of the fieldsHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static int VSgetinterlace(int vdata_id) throws HDFException
HDFException
public static boolean VSinquire(int vdata_id, int[] iargs, java.lang.String[] sargs) throws HDFException
vdata_id
- IN, vdata id as returned by VSattachiargs
- OUT, int[3], n_records, interlace, vdata_sizesargs
- OUT, String[2], names the dataset, fieldsNOTE: the parameters for the Java interface are not in the same order as the C interface.
HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean VSinquire(int vdata_id, int[] iargs) throws HDFException
vdata_id
- IN, vdata id as returned by VSattachiargs
- OUT, int[2], block_size, num_blocksNOTE: the parameters for the Java interface are not in the same order as the C interface.
HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static int VSlone(int fid, int[] ref_array, int buffersize) throws HDFException
fid
- IN, File identifier returned by Hopenref_array
- OUT, int[?], the refsbuffersize
- IN, int, the max number of refs to
return.HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static int VSread(int vdata_id, byte[] databuf, int nrecord, int interlace) throws HDFException
vdata_id
- IN: the Vdata iddatabuf
- OUT: byte[], the data in an array of bytesnrecord
- IN: int, number of recordsinterlace
- IN: int, interlaceHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE: to read into a Java array use the alternative routine below.
public static int VSread(int vdata_id, java.lang.Object theData, int nrecord, int interlace) throws HDFException
vdata_id
- IN: the Vdata idtheData
- OUT: Object, a Java array of appropriate
type, dimensions, and size.nrecord
- IN: int, number of recordsinterlace
- IN: int, interlaceHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
Note: reads the data as a contiguous array of bytes and then converts it to an appropriate Java object.
public static int VSseek(int vdata_id, int record) throws HDFException
HDFException
public static boolean VSsetfields(int vdata_id, java.lang.String fields) throws HDFException
HDFException
public static boolean VSsetinterlace(int vdata_id, int interlace) throws HDFException
HDFException
public static int VSsizeof(int vdata_id, java.lang.String fields) throws HDFException
HDFException
public static boolean VSappendable(int vkey, int block_size) throws HDFException
HDFException
public static int VSfindclass(int file_id, java.lang.String vgclass) throws HDFException
HDFException
public static int VSgetversion(int vkey) throws HDFException
HDFException
public static void VSsetclass(int vdata_id, java.lang.String vdata_class) throws HDFException
HDFException
public static boolean VSsetexternalfile(int vkey, java.lang.String filename, int offset) throws HDFException
HDFException
public static void VSsetname(int vdata_id, java.lang.String vdata_name) throws HDFException
HDFException
public static int VSwrite(int vdata_id, byte[] databuf, int n_records, int interlace) throws HDFException
vdata_id
- IN: the Vdata iddatabuf
- IN: byte[], the data in an array of bytesn_records
- IN: int, number of recordsinterlace
- IN: int, interlaceHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE: to write a Java array use the alternative routine below.
public static int VSwrite(int vdata_id, java.lang.Object databuf, int n_records, int interlace) throws HDFException
vdata_id
- IN: the Vdata iddatabuf
- IN: Object, a Java array of appropriate
type, dimensions, and size.n_records
- IN: int, number of recordsinterlace
- IN: int, interlaceHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
Important Note: This interface only supports records which are all of the same numeric type, with no character fields. Heterogeneous fields can be written as bytes (see above), but the calling program must make sure the data is in proper order to write to the HDF library.
Note: converts the data into a contiguous array of bytes and then writes it
public static boolean Vstart(int fid) throws HDFException
HDFException
public static int Vattach(int fid, int vgroup_ref, java.lang.String access) throws HDFException
HDFException
public static void Vdetach(int vgroup_id) throws HDFException
HDFException
public static void Vend(int file_id) throws HDFException
HDFException
public static int Vgetid(int file_id, int vgroup_ref) throws HDFException
HDFException
public static void Vgetclass(int vgroup_id, java.lang.String[] hdfclassname) throws HDFException
vgroup_id
- IN: the Vgroup idhdfclassname
- OUT: String[1], the HDF class of
the vgroup.HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static void Vgetname(int vgroup_id, java.lang.String[] hdfname) throws HDFException
vgroup_id
- IN: the Vgroup idhdfname
- OUT: String[1], the name of
the vgroup.HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean Visvg(int vgroup_id, int vgroup_ref) throws HDFException
HDFException
public static boolean Visvs(int vgroup_id, int vdata_ref) throws HDFException
HDFException
public static int Vgettagrefs(int vgroup_id, int[] tags, int[] refs, int arraysize) throws HDFException
vgroup_id
- IN: the Vgroup idtags
- OUT: int[arraysize], the tagsrefs
- OUT: int[arraysize], the refsarraysize
- IN: int, the number of tags/refs to
returnHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean Vgettagref(int vgroup_id, int index, int[] tagref) throws HDFException
vgroup_id
- - IN: the Vgroup idindex
- - IN: the index of the objecttagref
- - OUT: tagref[0]=tag, tagref[1]=refHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static int Vntagrefs(int vgroup_id) throws HDFException
HDFException
public static boolean Vinqtagref(int vgroup_id, int tag, int ref) throws HDFException
HDFException
public static int Vlone(int fid, int[] ref_array, int buffersize) throws HDFException
fid
- IN: the file identifier returned by Hopenref_array
- OUT: int[], the refs for Vdata not part
of Vgroupsbuffersize
- IN: the max size of the ref_arrayHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static int Vaddtagref(int vgroup_id, int tag, int ref) throws HDFException
HDFException
public static int Vdeletetagref(int vgroup_id, int tag, int ref) throws HDFException
HDFException
public static int Vfind(int file_id, java.lang.String vgroup_name) throws HDFException
HDFException
public static int Vfindclass(int file_id, java.lang.String vgclassname) throws HDFException
HDFException
public static int Vflocate(int key, java.lang.String vgclassname) throws HDFException
HDFException
public static int Vgetnext(int key, int ref) throws HDFException
HDFException
public static boolean Vinquire(int vgroup_id, int[] n_entries, java.lang.String[] vgroup_name) throws HDFException
vgroup_id
- IN: the Vgroup idn_entries
- OUT: int[1], the number of objects in the Vgroupvgroup_name
- OUT: String[1], the name of the VgroupHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static int Vinsert(int vgroup_id, int v_id) throws HDFException
HDFException
public static int Vnrefs(int key, int ref) throws HDFException
HDFException
public static boolean Vsetclass(int vgroup_id, java.lang.String vgclassname) throws HDFException
HDFException
public static boolean Vsetname(int vgroup_id, java.lang.String vgname) throws HDFException
HDFException
public static boolean Vattrinfo(int id, int index, java.lang.String[] name, int[] argv) throws HDFException
id
- IN: Vgroup identifier returned by Vattachindex
- IN: the index of the attributename
- OUT: String[1], the name of the attributeargv
- OUT: int[3],
Data type of the target attribute,
Number of values in the target attribute,
Size, in bytes, of the values of the target attribute,HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static int Vfindattr(int id, java.lang.String name) throws HDFException
HDFException
public static boolean Vgetattr(int id, int index, byte[] data) throws HDFException
id
- IN: the Vdata idindex
- IN: the index of the attributedata
- OUT: byte[], the data in an array of bytesHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE: to read into a Java array use the alternative routine below.
public static boolean Vgetattr(int id, int index, java.lang.Object theData) throws HDFException
id
- IN: the Vdata idindex
- IN: the index of the attributetheData
- OUT: Object, a Java array of appropriate
type, dimensions, and size.HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
Note: reads the data as a contiguous array of bytes and then converts it to an appropriate Java object.
public static int Vgetversion(int id) throws HDFException
HDFException
public static int Vnattrs(int id) throws HDFException
HDFException
public static boolean Vsetattr(int id, java.lang.String attr_name, int data_type, int count, java.lang.String values) throws HDFException
HDFException
public static boolean Vsetattr(int id, java.lang.String attr_name, int data_type, int count, byte[] data) throws HDFException
id
- IN: the Vdata idattr_name
- IN: String, the name of the attributedata_type
- IN: int, the number_type of the attributecount
- IN: the number of valuesdata
- IN: byte[], the data in an array of bytesHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE: to write into a Java array use the alternative routine below.
public static boolean Vsetattr(int id, java.lang.String attr_name, int data_type, int count, java.lang.Object theData) throws HDFException
id
- IN: the Vdata idattr_name
- IN: String, the name of the attributedata_type
- IN: int, the number_type of the attributecount
- IN: the number of valuestheData
- IN: Object, a Java array of appropriate
type, dimensions, and size.HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
Note: converts the data to a contiguous array of bytes and then converts writes it.
public static boolean VSattrinfo(int id, int index, int attr_index, java.lang.String[] name, int[] argv) throws HDFException
id
- IN: the Vdata idindex
- IN: int, the index of the attributeattr_index
- IN: int, the index of the attributename
- OUT: String[1], the name of the attributeargv
- OUT: int[3],
Data type of the target attribute,
Number of values in the target attribute,
Size, in bytes, of the values of the target attribute,HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static int VSfindex(int id, java.lang.String name, int[] findex) throws HDFException
id
- IN: the Vdata idname
- IN: the name of the attributefindex
- IN: int[1], the index of the attributeHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static int VSfindattr(int id, int index, java.lang.String name) throws HDFException
HDFException
public static int VSfnattrs(int id, int fnattrs) throws HDFException
HDFException
public static boolean VSgetattr(int id, int index, int attr_index, byte[] data) throws HDFException
id
- IN: the Vdata idindex
- IN: the index of the vdataattr_index
- IN: the index of the attributedata
- OUT: byte[], the data in an array of bytesHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE: to read into a Java array use the alternative routine below.
public static boolean VSgetattr(int id, int index, int attr_index, java.lang.Object theData) throws HDFException
id
- IN: the Vdata idindex
- IN: the index of the vdataattr_index
- IN: the index of the attributetheData
- OUT: Object, a Java array of appropriate
type, dimensions, and size.HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
Note: reads the data as a contiguous array of bytes and then converts it to an appropriate Java object.
public static boolean VSisattr(int id) throws HDFException
HDFException
public static int VSnattrs(int id) throws HDFException
HDFException
public static boolean VSsetattr(int id, int index, java.lang.String attr_name, int data_type, int count, java.lang.String values) throws HDFException
id
- IN: the Vdata idindex
- IN: the index of the vdataattr_name
- IN: String, the name of the attributedata_type
- IN: int, the number_type of the attributecount
- IN: the number of valuesvalues
- IN: Strin, the data in an StringHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE: to write from a Java array use the alternative routine below.
public static boolean VSsetattr(int id, int index, java.lang.String attr_name, int data_type, int count, byte[] values) throws HDFException
id
- IN: the Vdata idindex
- IN: the index of the vdataattr_name
- IN: String, the name of the attributedata_type
- IN: int, the number_type of the attributecount
- IN: the number of valuesvalues
- IN: byte[], the data in an array of bytesHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE: to write into a Java array use the alternative routine below.
public static boolean VSsetattr(int id, int index, java.lang.String attr_name, int data_type, int count, java.lang.Object theData) throws HDFException
id
- IN: the Vdata idindex
- IN: the index of the vdataattr_name
- IN: String, the name of the attributedata_type
- IN: int, the number_type of the attributecount
- IN: the number of valuestheData
- IN: Object, a Java array of appropriate
type, dimensions, and size.HDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
Note: converts the data to a contiguous array of bytes and then converts writes it.
public static boolean DF24getdims(java.lang.String fileName, int[] argv) throws HDFException
HDFException
public static boolean DF24reqil(int il) throws HDFException
HDFException
public static boolean DF24getimage(java.lang.String fileName, byte[] imagedata, int width, int height) throws HDFException
fileName
- IN: String, the fileimagedata
- OUT: byte[], the image, in an array of
byteswidth
- IN: int, the width of the imageheight
- IN: int, the height of the imageHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE: to read into a Java array use the alternative routine below.
public static boolean DF24getimage(java.lang.String fileName, java.lang.Object theImagedata, int width, int height) throws HDFException
fileName
- IN: String, the filetheImagedata
- OUT: Object, the image, in a java
array of appropriate size and typewidth
- IN: int, the width of the imageheight
- IN: int, the height of the imageHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
Note: reads the data as a contiguous array of bytes and then converts it to an appropriate Java object.
public static short DF24lastref() throws HDFException
HDFException
public static boolean DF24restart() throws HDFException
HDFException
public static boolean DF24readref(java.lang.String filename, int ref) throws HDFException
HDFException
public static int DF24nimages(java.lang.String fileName) throws HDFException
HDFException
public static boolean DF24addimage(java.lang.String filename, byte[] image, int width, int height) throws HDFException
filename
- IN: String, the fileimage
- IN: byte[], the image, in an array of
byteswidth
- IN: int, the width of the imageheight
- IN: int, the height of the imageHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE: to write from a Java array use the alternative routine below.
public static boolean DF24addimage(java.lang.String filename, java.lang.Object theImage, int width, int height) throws HDFException
filename
- IN: String, the filetheImage
- IN: Object, the image, in a java
array of appropriate size and typewidth
- IN: int, the width of the imageheight
- IN: int, the height of the imageHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
Note: converts the data into a contiguous array of bytes and then writes it to the file
public static boolean DF24putimage(java.lang.String filename, byte[] image, int width, int height) throws HDFException
filename
- IN: String, the fileimage
- IN: byte[], the image, in an array of
byteswidth
- IN: int, the width of the imageheight
- IN: int, the height of the imageHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE: to write from a Java array use the alternative routine below.
public static boolean DF24putimage(java.lang.String filename, java.lang.Object theImage, int width, int height) throws HDFException
filename
- IN: String, the filetheImage
- IN: Object, the image, in a java
array of appropriate size and typewidth
- IN: int, the width of the imageheight
- IN: int, the height of the imageHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
Note: converts the data into a contiguous array of bytes and then writes it to the file
public static boolean DF24setcompress(int type, HDFCompInfo cinfo) throws HDFException
type
- IN: int, the type of compressioncinfo
- IN: HDFCompInfo, the compression parametersHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean DF24setdims(int width, int height) throws HDFException
HDFException
public static boolean DF24setil(int il) throws HDFException
HDFException
public static boolean DFR8getdims(java.lang.String fileName, int[] argv, boolean[] haspalette) throws HDFException
HDFException
public static boolean DFR8getimage(java.lang.String fileName, byte[] imagedata, int width, int height, byte[] palette) throws HDFException
fileName
- IN: String, the fileimagedata
- OUT: byte[], the image, in an array of
byteswidth
- IN: int, the width of the imageheight
- IN: int, the height of the imagepalette
- OUT: byte[], the color look up tableHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE: to read into a Java array use the alternative routine below.
public static boolean DFR8getimage(java.lang.String fileName, java.lang.Object theImagedata, int width, int height, byte[] palette) throws HDFException
fileName
- IN: String, the filetheImagedata
- OUT: Object, the image, in a java
array of appropriate size and typewidth
- IN: int, the width of the imageheight
- IN: int, the height of the imagepalette
- OUT: byte[], the color look up tableHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
Note: reads the data as a contiguous array of bytes and then converts it to an appropriate Java object.
public static short DFR8lastref() throws HDFException
HDFException
public static boolean DFR8restart() throws HDFException
HDFException
public static boolean DFR8readref(java.lang.String filename, int ref) throws HDFException
HDFException
public static int DFR8nimages(java.lang.String fileName) throws HDFException
HDFException
public static boolean DFR8addimage(java.lang.String filename, byte[] image, int width, int height, short compress) throws HDFException
filename
- IN: String, the fileimage
- IN: byte[], the image, in an array of
byteswidth
- IN: int, the width of the imageheight
- IN: int, the height of the imagecompress
- IN: short, the type of compressionHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE: to write from a Java array use the alternative routine below.
public static boolean DFR8addimage(java.lang.String filename, java.lang.Object theImage, int width, int height, short compress) throws HDFException
filename
- IN: String, the filetheImage
- IN: Object, the image, in a java
array of appropriate size and typewidth
- IN: int, the width of the imageheight
- IN: int, the height of the imagecompress
- IN: short, the type of compressionHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
Note: converts the data into a contiguous array of bytes and then writes it to the file
public static boolean DFR8putimage(java.lang.String filename, byte[] image, int width, int height, short compress) throws HDFException
filename
- IN: String, the fileimage
- IN: byte[], the image, in an array of
byteswidth
- IN: int, the width of the imageheight
- IN: int, the height of the imagecompress
- IN: short, the type of compressionHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
NOTE: to write from a Java array use the alternative routine below.
public static boolean DFR8putimage(java.lang.String filename, java.lang.Object theImage, int width, int height, short compress) throws HDFException
filename
- IN: String, the filetheImage
- IN: Object, the image, in a java
array of appropriate size and typewidth
- IN: int, the width of the imageheight
- IN: int, the height of the imagecompress
- IN: short, the type of compressionHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.
Note: converts the data into a contiguous array of bytes and then writes it to the file
public static boolean DFR8setcompress(int type, HDFCompInfo cinfo) throws HDFException
type
- IN: int, the type of compressioncinfo
- IN: HDFCompInfo, the compression parametersHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean DFR8getpalref(short[] palref) throws HDFException
palref
- OUT: short[1], the HDF ref of the paletteHDFException
- should be thrown for errors in the
HDF library call, but is not yet implemented.public static boolean DFR8setpalette(byte[] palette) throws HDFException
HDFException
public static boolean DFR8writeref(java.lang.String filename, short ref) throws HDFException
HDFException
public static boolean SDreaddata_short(int sdsid, int[] start, int[] stride, int[] count, short[] theData) throws HDFException
HDFException
public static boolean SDreaddata_int(int sdsid, int[] start, int[] stride, int[] count, int[] theData) throws HDFException
HDFException
public static boolean SDreaddata_long(int sdsid, int[] start, int[] stride, int[] count, long[] theData) throws HDFException
HDFException
public static boolean SDreaddata_float(int sdsid, int[] start, int[] stride, int[] count, float[] theData) throws HDFException
HDFException
public static boolean SDreaddata_double(int sdsid, int[] start, int[] stride, int[] count, double[] theData) throws HDFException
HDFException
public static int HCget_config_info(int coder_type) throws HDFException
HDFException


#include <Api.h>
◆ ApiHandle() [1/4]
| Aws::Crt::ApiHandle::ApiHandle |
( |
Allocator * |
allocator | ) |
|
|
noexcept |
◆ ApiHandle() [2/4]
| Aws::Crt::ApiHandle::ApiHandle |
( |
| ) |
|
|
noexcept |
◆ ~ApiHandle()
| Aws::Crt::ApiHandle::~ApiHandle |
( |
| ) |
|
◆ ApiHandle() [3/4]
| Aws::Crt::ApiHandle::ApiHandle |
( |
const ApiHandle & |
| ) |
|
|
delete |
◆ ApiHandle() [4/4]
| Aws::Crt::ApiHandle::ApiHandle |
( |
ApiHandle && |
| ) |
|
|
delete |
◆ InitializeLogging() [1/2]
| void Aws::Crt::ApiHandle::InitializeLogging |
( |
LogLevel |
level, |
|
|
const char * |
filename |
|
) |
| |
Initialize logging in awscrt.
- Parameters
-
| level | Display messages of this importance and higher. LogLevel.NoLogs will disable logging. |
| filename | Logging destination, a file path from the disk. |
◆ InitializeLogging() [2/2]
| void Aws::Crt::ApiHandle::InitializeLogging |
( |
LogLevel |
level, |
|
|
FILE * |
fp |
|
) |
| |
Initialize logging in awscrt.
- Parameters
-
| level | Display messages of this importance and higher. LogLevel.NoLogs will disable logging. |
| fp | The FILE object for logging destination. |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ SetBYOCryptoClientTlsCallback()
BYO_CRYPTO: set callback for creating a ClientTlsChannelHandler. If using BYO_CRYPTO, you must call this prior to creating any client channels in the application.
◆ SetBYOCryptoNewMD5Callback()
BYO_CRYPTO: set callback for creating MD5 hashes. If using BYO_CRYPTO, you must call this.
◆ SetBYOCryptoNewSHA256Callback()
BYO_CRYPTO: set callback for creating SHA256 hashes. If using BYO_CRYPTO, you must call this.
◆ SetBYOCryptoNewSHA256HMACCallback()
BYO_CRYPTO: set callback for creating Streaming SHA256 HMAC objects. If using BYO_CRYPTO, you must call this.
◆ SetBYOCryptoTlsContextCallbacks()
BYO_CRYPTO: set callbacks for the TlsContext. If using BYO_CRYPTO, you need to call this function prior to creating a TlsContext.
- Parameters
-
| newCallback | Create custom implementation object, to be stored inside TlsContext. Return nullptr if failure occurs. |
| deleteCallback | Destroy object that was created by newCallback. |
| alpnCallback | Return whether ALPN is supported. |
◆ SetShutdownBehavior()
Configures the shutdown behavior of the api handle instance
- Parameters
-
| shutdownBehavior | desired shutdown behavior |
The documentation for this class was generated from the following files:


Aliquam condimentum
Lorem ipsum *dolor* sit amet, consectetur adipiscing elit. Aenean et ultricies est. Mauris iaculis eget dolor nec
hendrerit.
25%
Modernize mission-critical applications and infrastructure in a hybrid multicloud environment up to 25 percent
faster.
Link text
25%
Modernize mission-critical applications and infrastructure in a hybrid multicloud environment up to 25 percent
faster.
Link text
1.34M
Save 1.34M per year by optimizing your time and IT expenses.
Link text
25%
Modernize mission-critical applications and infrastructure in a hybrid multicloud environment up to 25 percent
faster.
Link text


An MPI call may need an argument that is an array of opaque objects, or an array of handles. The array-of-handles is a regular array with entries that are handles to objects of the same type in consecutive locations in the array. Whenever such an array is used, an additional len argument is required to indicate the number of valid entries (unless this number can be derived otherwise). The valid entries are at the beginning of the array; len indicates how many of them there are, and need not be the size of the entire array. The same approach is followed for other array arguments. In some cases NULL handles are considered valid entries. When a NULL argument is desired for an array of statuses, one uses MPI_STATUSES_IGNORE.


title
dedicated to offering organizations the best of office printing technology, office furniture and office supplies. Your company will benefit from our outstanding service and our environmentally friendly, cost-saving technology solutions.
Read more


"geneListPie" package is for mapping a gene list to function categories defined in GOSlim or Kegg. The results can be plotted as a pie chart to provide a quick view of the genes distribution of the gene list among the function categories. The gene list must contain a list of gene symbols. The package contains a set of pre-processed gene sets obtained from Gene Ontology and MSigDB including human, mouse, rat and yeast. To provide a high level concise view, only GO slim and kegg are provided. The gene sets are regulared updated. User can also use customized gene sets. User can use the R Pie() or Pie3D() function for plotting the pie chart. Users can also choose to output the gene function mapping results and use external software such as Excel(R) for ploting.
| Version: | 1.0 |
| Depends: | R (≥ 2.10) |
| Suggests: | plotrix |
| Published: | 2012-07-23 |
| Author: | Xutao Deng |
| Maintainer: | Xutao Deng <xutaodeng at gmail.com> |
| License: | GPL-3 |
| NeedsCompilation: | no |
| CRAN checks: | geneListPie results |
| Reference manual: | geneListPie.pdf |
| Package source: | geneListPie_1.0.tar.gz |
| Windows binaries: | r-devel: geneListPie_1.0.zip, r-release: geneListPie_1.0.zip, r-oldrel: geneListPie_1.0.zip |
| OS X binaries: | r-release: geneListPie_1.0.tgz, r-oldrel: geneListPie_1.0.tgz |
Please use the canonical form https://CRAN.R-project.org/package=geneListPie to link to this page.


pollen ragweed [,, climate plant population change future sensitization model sensitized allergy invasion estimates {border-style Europe levels px;} #ffffff;} allergic Health current health million European Europe. study Allergy data scenario RSR impact impacts increase likely Climate Figure Hamaoui-Laguel Table countries estimate presented projected common individuals results season suites symptoms (e.g., CHIMERE Europe, affect baseline different dose–response indicate populations potential public px; range reference skin used {font-family Ambrosia NUTS Storkey United WRF/RegCM World based changes diseases estimated existing font-size level problem projections relatively studies using Beggs Environ Environmental Ragweed [], areas atmospheric change. collab: consequences control double; greatest higher increases increasing relationship scenarios species spread total Bielory Bullock Burbach EHP LEN National University adaptation artemisiifolia) asthma average border-color border-width considered counts disease generated global human increased large major management maps numbers period present produced production proportional ragweed, rates sample solid; time {font-style {font-weight (range: (–) Bank Bousquet Change Clin Concentration France Germany, July Perspect RCP. RSRs Research [accessed air allergenic approximately associated bold coefficient concentrations country courier; disease. dispersal em; expansion following grid highly important indicated influence land limited locations million– models owing papers people population, project provide pt;} quantitative rate regional relevant reported research restricted result review seed test use value


|
The unique geometric design of these Sonex Pyramid panels dramatically
increases the panels' surface area, providing much more acoustic
control than flat surfaces.
Sonex
Pyramid Data Sheet
|
|
Sonex Classic Panels feature a modified anechoic wedge design for
cost-effective, yet impressive sound control. Sonex Classics offer
optimum absorption and are ideal for sound studios.
Sonex
Classic Data Sheet |
|


Select the default application status that should be used when uploading an application file. This
setting can be overridden on each job's configuration page.
Applications in Development are typically only available to developers. When a developer is
satisfied with their work they can move the application to Review. Once an application has
passed review it can then be moved to Release.
Per default, applications are uploaded to Development and must be manually moved to another
status through Relution's web interface. Changing the status here allows you to skip this step,
e.g. when you do not review your applications prior to release (i.e. your customers are your beta
testers).
Uploading in a status other than "Development" may require additional permissions. If the
configured user's role does not have permission to upload with the selected status, the upload will
fail with the message "access denied (role doesn't match)".


Loading...
Toggle navigation
CloudPix by Bibi
Home
Client Multi-Plateforme
Register
{{user.name}}
Logout
Login
{{error}}


Welcome to the UI-Router Demo
Use the menu above to navigate. Pay attention to the $state and $stateParams values below.
$state
$stateParams
Click these links— Alice or Bob —to see a url redirect in action.