/*
* This file is part of MXE.
* See index.html for further information.
*/
#include
#include
#include
#include
int main() {
char filename[] = "test.he4";
int fid = SWopen(filename, DFACC_CREATE);
char swathname[] = "myswath";
int swid = SWcreate(fid, swathname);
char dimname[] = "mydim";
const int32 dimlen = 10;
int rc = SWdefdim(swid, dimname, dimlen);
printf("SWdefdim: %d\n", rc);
char fieldname[] = "test_field";
rc = SWdefdatafield(swid, fieldname, dimname, DFNT_FLOAT, 0);
printf("SWdefdatafield: %d\n", rc);
int32 start = 0;
int32 edge = dimlen;
float data[dimlen];
for (int i=0; i