(form "20600" (size 70 21)
    (heading "DIRECT KRIGING"
    )

    (label
        (position 2 2)
        (foreground (user_option "form_text_highlight"))
        (background (user_option "form_background"))
        (text "OBJECTS"
        )
    )

    (label
        (position 4 3)
        (text "Location"
        )
    )
    (field "obj_loc"
        (position 16 3)
        (display_length 10)
        (input allowed)
        (null disallowed)
        (max_length 50)
        (file 
            (link "obj_id") 
            (extension "*.dtm")
        )
        )

    (label
        (position 4 4)
        (text "ID Range"
        )
    )
    (field "obj_id"
        (position 16 4)
        (display_length 10)
        (input allowed)
        (format range)
        (null disallowed)
        (max_length 50)
        (default "1")
        (help (field "obj_loc"))
    )

    (label
        (position 4 5)
        (text "Object Range"
        )
    )
    (field "obj_rng"
        (position 16 5)
        (display_length 10)
        (input allowed)
        (format range)
        (null allowed)
        (max_length 50)
        (default "")
        )

    (label
        (position 37 2)
        (foreground (user_option "form_text_highlight"))
        (background (user_option "form_background"))
        (text "DATA"
        )
    )

    (label
        (position 39 3)
        (text "Location"
        )
    )
    (field "data_loc"
        (position 50 3)
        (display_length 10)
        (input allowed)
        (null disallowed)
        (max_length 50)
        (file 
            (link "data_id") 
            (extension "*.str")
        )
        )

    (label
        (position 39 4)
        (text "ID Range"
        )
    )
    (field "data_id"
        (position 50 4)
        (display_length 10)
        (input allowed)
        (format range)
        (null disallowed)
        (max_length 50)
        (default "1")
        (help (field "data_loc"))
    )

    (label
        (position 39 5)
        (text "String Range"
        )
    )
    (field "data_rng"
        (position 50 5)
        (display_length 10)
        (input allowed)
        (format range)
        (null allowed)
        (max_length 50)
        (default "")
        )

    (label
        (position 39 6)
        (text "D Field"
        )
    )
    (field "dfield"
        (position 50 6)
        (display_length 4)
        (input allowed)
        (format string_field)
        (value_in
            "D1" "D2" "D3" "D4" "D5" "D6" "D7" "D8" "D9" "D10"
            "D11" "D12" "D13" "D14" "D15" "D16" "D17" "D18" "D19" "D20"
            "D21" "D22" "D23" "D24" "D25" "D26" "D27" "D28" "D29" "D30"
            "D31" "D32" "D33" "D34" "D35" "D36" "D37" "D38" "D39" "D40"
            "D41" "D42" "D43" "D44" "D45" "D46" "D47" "D48" "D49" "D50"
            "D51" "D52" "D53" "D54" "D55" "D56" "D57" "D58" "D59" "D60"
            "D61" "D62" "D63" "D64" "D65" "D66" "D67" "D68" "D69" "D70"
            "D71" "D72" "D73" "D74" "D75" "D76" "D77" "D78" "D79" "D80"
            "D81" "D82" "D83" "D84" "D85" "D86" "D87" "D88" "D89" "D90"
            "D91" "D92" "D93" "D94" "D95" "D96" "D97" "D98" "D99" "D100"
        )
        (default "D1")
        )

    (label
        (position 2 7)
        (foreground (user_option "form_text_highlight"))
        (background (user_option "form_background"))
        (text "SEARCH PARAMETERS"
        )
    )

    (label 
        (position  4 8) 
        (text "Search type"
        )
    )
    (field "search" 
        (position 15  8) 
        (display_length  10) 
        (input allowed)
        (value_in "ELLIPSOID" "OCTANT"
        )
        (default "ELLIPSOID")
        (translate upper) 
        (null allowed) 
        (max_length 9) 
        )

    (label 
        (position  4 9) 
        (text "Minimum number of samples"
        )
    )
    (field "minsamples" 
        (position 30 9) 
        (display_length  4) 
        (input allowed)
        (low_bound 1) 
        (default "3")
        (format integer_2) 
        (null disallowed) 
        (max_length 2) 
        )

    (label 
        (position  4 10) 
        (text "Maximum number of samples"
        )
    )
    (field "maxsamples" 
        (position 30 10) 
        (display_length 4) 
        (input allowed)
        (low_bound 1) 
        (default "15")
        (format integer_2) 
        (null disallowed) 
        (max_length 4)
        )

    (label 
        (position  4 11) 
        (text "Maximum search radius"
        )
    )
    (field "majordist" 
        (position 30 11) 
        (display_length 4) 
        (input allowed)
        (translate upper) 
        (format real_8) 
        (null disallowed) 
        (max_length 16) 
        )

    (label 
        (position  4 12) 
        (text "Maximum vertical search distance"
        )
    )
    (field "vertdist" 
        (position 30 12) 
        (display_length 4) 
        (input allowed)
        (translate upper) 
        (format real_8) 
        (null disallowed) 
        (max_length 16) 
        )

    (label 
        (position  4 13) 
        (text "Maximum number of adjacent octants with no samples"
        )
    )
    (field "adjoct" 
        (position 35 13) 
        (display_length  2) 
        (input allowed)
        (format integer_2) 
        (null disallowed) 
        (max_length 2)
        (dependency (value "search") == "OCTANT")
        )

    (label
        (position 39 8)
        (text "Required desc. points"
        )
    )
    (field "req_dpts"
        (position 57 8)
        (display_length 4)
        (input allowed)
        (null disallowed)
        (format integer_4)
        (low_bound 1)
        (value_in non_exclusive "1" "8" "64" "512")
    )

    (label
        (position 39 9)
        (text "Proportional?"
        )
    )
    (field "proportional"
        (position 57 9)
        (display_length 1)
        (input allowed)
        (translate upper)
        (value_in "Y" "N")
        (default "Y")
        )
    
    (label
        (position 39 10)
        (text "Notefile"
        )
    )
    (field "notefile"
        (position 50 10)
        (display_length 10)
        (max_length 50)
        (translate lower)
        (input allowed)
        (null disallowed)
        (file output
            (extension trim "*.not")
        )
        )
    (label
        (position 39 11)
        (text "Debug?"
        )
    )
    (field "debug"
        (position 50 11)
        (display_length 1)
        (input allowed)
        (translate upper)
        (value_in "Y" "N")
        (default "N")
        )

    (label 
        (position  2 14) 
        (foreground (user_option "form_text_highlight"))
        (background (user_option "form_background"))
        (text "ANISOTROPY"
        )
    )

    (label 
        (position  4 15) 
        (text "Bearing of major axis"
        )
    )
    (field "bearing" 
        (position 21 15) 
        (display_length 4) 
        (input allowed)
        (low_bound 0) 
        (high_bound 360)
        (translate upper) 
        (format real_8) 
        (null disallowed) 
        (max_length 6)
        (default "0")
        )

    (label 
        (position  4 16) 
        (text "Plunge of major axis"
        )
    )
    (field "plunge" 
        (position 21 16) 
        (display_length 4) 
        (input allowed)
        (low_bound -90) 
        (high_bound 90)
        (translate upper) 
        (format real_8) 
        (null disallowed) 
        (max_length 6)
        (default "0")
        (help 
            (field "majorbrg")
        )
    )

    (label 
        (position  4 17) 
        (text "Dip of semi-major"
        )
    )
    (field "dip" 
        (position 21 17) 
        (display_length 4) 
        (input allowed)
        (low_bound -90) 
        (high_bound 90)
        (translate upper) 
        (format real_8) 
        (null disallowed) 
        (max_length 6)
        (default "0")
        (help 
            (field "majorbrg")
        )
    )

    (label 
        (position 4 18) 
        (text "major / semi-major"
        )
    )
    (field "semi_major" 
        (position 21 18) 
        (display_length 4) 
        (input allowed)
        (translate upper) 
        (format real_8) 
        (null disallowed) 
        (max_length 5)
        (default "1")
        (help 
            (field "majorbrg")
        )
    )

    (label 
        (position 4 19) 
        (text "major / minor"
        )
    )
    (field "minor" 
        (position 21 19) 
        (display_length 4) 
        (input allowed)
        (translate upper) 
        (format real_8) 
        (null disallowed) 
        (max_length 5)
        (default "1")
        (help 
            (field "majorbrg")
        )
    )

    (label 
        (position  30 14) 
        (foreground (user_option "form_text_highlight"))
        (background (user_option "form_background"))
        (text "VARIOGRAM"
        )
    )

    (label
        (position 52 14)
        (text "Sill"
        )
    )
    (label
        (position 60 14)
        (text "Range"
        )
    )


    (field "vg_model_file_name" 
        (position 70  15)
        (display_length  32) 
        (input allowed)
        (file (extension "*.vgm,*.not"))
        (translate none) 
        (null allowed) 
        (max_length 256)
    )

    (label
        (position 32 15)
        (text "Model"
        )
    )
    (field "model" 
        (position 38 15) 
        (display_length 10) 
        (input allowed)
        (value_in "Spherical" "Exponential" "Gaussian" "Hole Effect")
        )

    (label
        (position 32 16)
        (text "Nugget"
        )
    )
    (field "nugget" 
        (position  38 16) 
        (display_length 10) 
        (input allowed)
        (translate upper)
        (max_length 20)
        (format real_8) 
        (null disallowed) 
        (default "0") 
        (low_bound 0) 
        )

    (field "sill0"
        (position 52 15)
        (display_length 4)
        (input allowed)
        (max_length 20)
        (format real_8)
        (null allowed)
        )
    (field "range0"
        (position 60 15)
        (display_length 4)
        (input allowed)
        (max_length 20)
        (format real_8)
        (null allowed)
        )

    (field "sill1"
        (position 52 16)
        (display_length 4)
        (input allowed)
        (max_length 20)
        (format real_8)
        (null allowed)
        )
    (field "range1"
        (position 60 16)
        (display_length 4)
        (input allowed)
        (max_length 20)
        (format real_8)
        (null allowed)
        )

    (field "sill2"
        (position 52 17)
        (display_length 4)
        (input allowed)
        (max_length 20)
        (format real_8)
        (null allowed)
        )
    (field "range2"
        (position 60 17)
        (display_length 4)
        (input allowed)
        (max_length 20)
        (format real_8)
        (null allowed)
        )

    (field "sill3"
        (position 52 18)
        (display_length 4)
        (input allowed)
        (max_length 20)
        (format real_8)
        (null allowed)
        )
    (field "range3"
        (position 60 18)
        (display_length 4)
        (input allowed)
        (max_length 20)
        (format real_8)
        (null allowed)
        )

    (field "sill4"
        (position 52 19)
        (display_length 4)
        (input allowed)
        (max_length 20)
        (format real_8)
        (null allowed)
        )
    (field "range4"
        (position 60 19)
        (display_length 4)
        (input allowed)
        (max_length 20)
        (format real_8)
        (null allowed)
        )

   (field "krig_type" (position 37 17) (display_length  10) (input allowed)
    (value_in "simple" "ordinary")
    (default "ordinary"))
   (field "skmean" (position 14  6) (display_length  6) (input allowed)
    (format real_8) (null allowed) (max_length 6) (default "0"))

    (default_buttons)
)
