Displaying 1 result from an estimated 1 matches for "casefile".
Did you mean:
basefile
2001 Oct 17
2
File reading.
...t (i.e. lines 2 and 3 have
39 values). Likewise, with ny>0, lines 4-7 give 1901 values. However, if
nx or ny are less than 0, then the data block for lines 2-3 or lines 4-7
will not be present and a generic index is made... In psudo code:
---
# get the file handle for the case file
fin=fopen(casefile);
# read the file
in=fscanf(fin,'%f',2);
# first 2 numbers in the case file give the size
nx=in(1);
ny=in(2);
# read or construct the x label
if nx>0
xlab=fscanf(fin,'%f',nx);
else
nx=-nx;
xlab=0:(nx-1);
end
# read or construct the y label
if ny>0
ylab=fsca...