Let me first say that I have had this code working just fine for years, but I shelved it for a few years. Recently I needed to dust off the old code, make a modification (I haven't changed a line since 2012) and then run it again with some new files, except that now I am getting an error. I am using the same Surfer 10 I had before (at least I hope I do) but now nothing works on it. Every time I try to parse this csv file to create a GRD file using GridData() I get an error saying the entire file is blanked, so it won't save anything. obviously the data is within the range, and me doing this process in the actual software works just fine. So where is the disconnect, or what have I missed here?
So, let me get you a few bits...
Here is the sample data I am generating
Surfer.ApplicationClass AppSurfer = new Surfer.ApplicationClass();
AppSurfer.GridData(inFile, //local file name of the file I linked to above
2, 1, 3,"z < -80 OR z > 140",
null, null, 2479, 1381,
left, right, top, bottom, //values from a config
true, 4, map.SearchRadius, //value from a config
map.SearchRadius, 0, 8, 4, 3, null, null,
1, 0, null, null,//30
outGrid, //output filename for a grd file
Please sign in to leave a comment.