/*
 * Copyright © 1998 NCSA
 *                  All rights reserved.
 *
 * Programmer:  Saurabh Bagchi (bagchi@uiuc.edu)
 *              Wednesday, August 11, 1999.
 *
 * Modifications: Saurabh Bagchi (Aug 17, 1999)
 *                Modified to work with VFL (HDF51.3).
 */
/* Test the following functionality of the DPSS driver. 
   1. Open a remote file for read (the dataset was written using dpss_write.c).
   2. Create a memory buffer to hold the dataset.
   3. Read the dataset into the memory buffer.
   4. Get some information about the dataset from the file.
*/
#include "h5test.h"
#include <strings.h>
#ifndef H5_HAVE_GRIDSTORAGE
int main(void)
    printf("Test skipped because DPSS driver not available\n");
    return 0;
#else
#define DATASETNAME "IntArray"
#define NX_SUB  98           /* hyperslab dimensions */ 
#define NY_SUB  98 
#define NX 100           /* output buffer dimensions */ 
#define NY 100 
#define NZ  3 
#define RANK         2
#define RANK_OUT     3
int
main (int argc, char **argv)
    hid_t       fapl =  -1, file, dataset;         /* handles */
    hid_t       datatype, dataspace;   
    hid_t       memspace; 
    H5T_class_t class;                 /* data type class */
    H5T_order_t order;                 /* data order */
    size_t      size;                  /*
                        * size of the data element         
                        * stored in file
                        */
    hsize_t     dimsm[3];              /* memory space dimensions */
    hsize_t     dims_out[2];           /* dataset dimensions */