Results 1 to 10 of 13

Thread: ARRAY SCAN results

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    ARRAY SCAN results

    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
    Attached Files Attached Files
    Last edited by ErosOlmi; 17-11-2011 at 19:09. Reason: Removed link to mediafire and attached file here

Similar Threads

  1. Windows 7, system scan and fix, cool command
    By kryton9 in forum Shout Box Area
    Replies: 3
    Last Post: 24-06-2011, 23:25
  2. Search function of forum gives weird results
    By Michael Hartlef in forum General
    Replies: 9
    Last Post: 03-10-2008, 12:51
  3. Help file: results of your efforts
    By ErosOlmi in forum Samples for help file
    Replies: 7
    Last Post: 30-05-2007, 17:23
  4. Speed Test Results
    By catventure in forum General
    Replies: 3
    Last Post: 17-10-2006, 19:04

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •