Greets,
I'm just learning thinBasic and hate to ask a question or request help, but after reading the Help file and checking sample scripts I have run into a problem.
Quick background: I'm working with an elevation file and I have a LOT of elevation files! First six lines are header data and then there are 1201 lines of elevation data, each with 1201 entries. Any geo-referenced point with no data gets assigned -9999. What I'm attempting to do on a batch basis is read the file into an array with Parse(FILE_Load(FileToLoad), MyMatrix(), $CRLF , $SPC). Then I use nRec = Array Scan MyMatrix() , = "-9999" to scan the array and count all instances of -9999.
The file I'm testing with has 1202 instances of -9999, but my little program tells me there are 2422 occurrences??
I would be very appreciative if someone could take a quick look and tell me where my beginner skills went awry? Many, many years ago I worked in Microsoft's PDS 7.0, but things have changed from that time and my mind isn't quite as sharp.
The file location would need to be adjusted in the thinBasic file (line 4) and please excuse some of the other code, as I put things in just to make sure I'm following along OK.
Thank you for any assistance,
Lance
Bookmarks