amroc/hds/src/sds.c File Reference

A wrapper for the HDF SD interface. More...

#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <time.h>
#include "sds.h"

Classes

struct  fileID

Typedefs

typedef struct fileID fileID

Functions

fileIDNewFileID (char *name, char *access)
fileIDfindIDbyComponent (char *name)
fileIDfindIDbyFilename (char *name)
void removeFileID (char *filename)
long SDScomputeSize (int32 rank, int32 *dims, int32 datatype)
void SDScloseAll ()
void SDSdeactivate (char *filename)
void SDSreactivate (char *filename)
void SDSclose (char *filename)
fileIDgetFileID (char *filename)
void SDSopen (char *filename, char *access)
void SDSflush (char *filename)
void SDSpurge (char *filename)
void SDSseek (char *filename, int setnum)
int32 SDSseekName (char *filename, char *dataname)
int32 SDSgetNT (char *filename)
int32 SDSisCoord (char *filename)
void SDSsetNT (char *filename, int32 numbertype)
long SDSgetDims (char *filename, char *dataname, int32 *rank, int32 *dims)
int SDSreadData (char *filename, int32 rank, int32 *dims, VOIDP data)
int SDSreadChunk (char *filename, int32 rank, int32 *dims, int32 *origin, int32 *stride, VOIDP data)
void SDSgetFileInfo (char *filename, int32 *nsds, int32 *nattrib)
int32 SDSgetDataName (char *filename, char *name)
int32 SDSgetIndex (char *filename)
int32 SDSgetDataStrs (char *filename, char *label, char *units, char *format, char *coordsys, int maxlen)
int32 SDSgetNumDatasets (char *filename)
int32 SDSallocateDataset (char *filename, char *dataname, int32 rank, int32 *dims)
int SDSwriteChunk (char *filename, int32 rank, int32 *dims, int32 *origin, int32 *stride, VOIDP data)
int SDSwriteData (char *filename, char *dataname, int32 rank, int32 *dims, VOIDP data)
int32 SDSgetAnnotationSize (char *filename)
int32 SDSgetAnnotation (char *filename, char *annotation, int32 maxlen)
int32 SDSaddAnnotation (char *filename, char *annotation)
int32 SDSgetNumAttribs (char *filename)
int32 SDSwriteAttrib (char *filename, char *attribname, int32 numbertype, int32 nelements, VOIDP buffer)
int32 SDSreadAttrib (char *filename, char *attribname2, int32 nelements, VOIDP buffer)
int32 SDSfindAttribInfo (char *filename, char *attribname, int32 *numbertype, int32 *nelements)
int32 SDSgetAttribInfo (char *filename, int32 index, char *attribname, int32 *numbertype, int32 *nelements)

Detailed Description

A wrapper for the HDF SD interface.

Author:
John Shalf

Typedef Documentation

typedef struct fileID fileID

Function Documentation

fileID* findIDbyComponent ( char *  name  ) 
fileID* findIDbyFilename ( char *  name  ) 
fileID* NewFileID ( char *  name,
char *  access 
)
void removeFileID ( char *  filename  ) 

References fileID::id, and fileID::next.

Referenced by SDSclose().

int32 SDSaddAnnotation ( char *  filename,
char *  annotation 
)
int32 SDSallocateDataset ( char *  filename,
char *  dataname,
int32  rank,
int32 *  dims 
)
void SDSclose ( char *  filename  ) 
void SDScloseAll (  ) 
long SDScomputeSize ( int32  rank,
int32 *  dims,
int32  datatype 
)

Referenced by SDSgetDims(), and SDSreadData().

void SDSdeactivate ( char *  filename  ) 
int32 SDSfindAttribInfo ( char *  filename,
char *  attribname,
int32 *  numbertype,
int32 *  nelements 
)
void SDSflush ( char *  filename  ) 
int32 SDSgetAnnotation ( char *  filename,
char *  annotation,
int32  maxlen 
)
int32 SDSgetAnnotationSize ( char *  filename  ) 
int32 SDSgetAttribInfo ( char *  filename,
int32  index,
char *  attribname,
int32 *  numbertype,
int32 *  nelements 
)
int32 SDSgetDataName ( char *  filename,
char *  name 
)
int32 SDSgetDataStrs ( char *  filename,
char *  label,
char *  units,
char *  format,
char *  coordsys,
int  maxlen 
)
long SDSgetDims ( char *  filename,
char *  dataname,
int32 *  rank,
int32 *  dims 
)
void SDSgetFileInfo ( char *  filename,
int32 *  nsds,
int32 *  nattrib 
)

References getFileID().

int32 SDSgetIndex ( char *  filename  ) 

References getFileID().

Referenced by AMRseek(), and AMRseekTime().

int32 SDSgetNT ( char *  filename  ) 
int32 SDSgetNumAttribs ( char *  filename  ) 

References getFileID(), and fileID::sds_id.

Referenced by AMRgetNumAttribs().

int32 SDSgetNumDatasets ( char *  filename  ) 

References getFileID().

Referenced by AMRseek(), and AMRseekTime().

int32 SDSisCoord ( char *  filename  ) 
void SDSopen ( char *  filename,
char *  access 
)

References findIDbyFilename(), and NewFileID().

Referenced by SDSpurge().

void SDSpurge ( char *  filename  ) 

References SDSclose(), and SDSopen().

void SDSreactivate ( char *  filename  ) 
int32 SDSreadAttrib ( char *  filename,
char *  attribname2,
int32  nelements,
VOIDP  buffer 
)
int SDSreadChunk ( char *  filename,
int32  rank,
int32 *  dims,
int32 *  origin,
int32 *  stride,
VOIDP  data 
)
int SDSreadData ( char *  filename,
int32  rank,
int32 *  dims,
VOIDP  data 
)
void SDSseek ( char *  filename,
int  setnum 
)

References getFileID(), fileID::id, and fileID::sdsnumber.

Referenced by AMRseek(), and AMRseekTime().

int32 SDSseekName ( char *  filename,
char *  dataname 
)
void SDSsetNT ( char *  filename,
int32  numbertype 
)

References getFileID().

Referenced by DAGHIO_HDF_NCSA_Write().

int32 SDSwriteAttrib ( char *  filename,
char *  attribname,
int32  numbertype,
int32  nelements,
VOIDP  buffer 
)
int SDSwriteChunk ( char *  filename,
int32  rank,
int32 *  dims,
int32 *  origin,
int32 *  stride,
VOIDP  data 
)
int SDSwriteData ( char *  filename,
char *  dataname,
int32  rank,
int32 *  dims,
VOIDP  data 
)
Generated on Thu Jun 30 02:19:00 2016 for AMROC's Hierachical Data Structures by  doxygen 1.6.3