#include #define MAX_ROW 50 #define MAX_COL 100 #define SIZE_ARRAY (MAX_ROW * MAX_COL) main() { int result, i, j ; int rank, inrank ; long int shape??( 2 ??), inshape??( 2 ??) ; float pressure ??( MAX_ROW ??)??( MAX_COL ??) ; float inpressure??( MAX_ROW ??)??( MAX_COL ??) ; float xscales ??( MAX_ROW ??) ; float inxscales ??( MAX_ROW ??) ; float yscales ??( MAX_COL ??) ; float inyscales ??( MAX_COL ??) ; float maxpressure, inmaxpressure ; float minpressure, inminpressure ; char *datalabel, indatalabel??( 256 ??) ; char *dataunit, indataunit ??( 256 ??) ; char *datafmt, indatafmt ??( 256 ??) ; char *dimlabels??( 2 ??),indimlabels??( 2 ??)??( 256 ??) ; char *dimunits ??( 2 ??),indimunits ??( 2 ??)??( 256 ??) ; char *dimfmts ??( 2 ??),indimfmts ??( 2 ??)??( 256 ??) ; char indummy ??( 256 ??) ; void jesarray(); rank = 2 ; shape??( 0 ??) = MAX_ROW ; shape??( 1 ??) = MAX_COL ; datalabel = "Pressure 1"; dataunit = "Pascals" ; datafmt = "E15.9" ; dimlabels??( 0 ??) = "x" ; dimlabels??( 1 ??) = "y" ; dimunits ??( 0 ??)= dimunits ??( 1 ??) = "cm" ; dimfmts ??( 0 ??) = dimfmts ??( 1 ??) = "F10.2" ; result = dsgdims( "dd:input", &inrank, inshape, 2 ) ; printf( "return code from dsgdims %i\n", result ) ; printf( "inrank, %i \n",inrank ); printf( "inshape, %i %i \n",inshape??(0??),inshape??(1??) ); printf( "rank is %i \n", inrank ); printf( "shape is %i by %i \n", inshape??( 0 ??), inshape??( 1 ??) ); result = dsgdata( "dd:input", 2, inshape, inpressure ) ; printf( "return code from dsgdata %i\n", result ) ; for ( i=0; i