(form "20461" (size 58 20)
    (heading "Variogram Map Calculation")
    (label 
        (position  2  3) 
        (text "Location")
    )
    (field "location" 
        (position 12 3) 
        (display_length 10) 
        (input allowed)
        (translate lower) 
        (null allowed) 
        (max_length 26)
        (file (link "id") (extension "*.str"))
    )

    (label 
        (position 2 4)
        (text "Id range")
    )
    (field "id" 
        (position 12 4) 
        (display_length 10) 
        (input allowed)
        (translate upper) 
        (format range) 
        (null disallowed) 
        (max_length 16)
        (default "1") 
    )

    (label 
        (position  2 5) 
        (text "String range")
    )
    (field "str" 
        (position 12 5) 
        (display_length 10) 
        (input allowed)
        (format range) 
        (null allowed)  
        (default "")
        (max_length 26) 
    )

    (label
        (position 30 3)
        (text "D field")
    )
    (field "dfield"
        (position 40 3)
        (display_length 4)
        (max_length 30)
        (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"
        )
        (null disallowed)
        (default "D1")
    )
    (field "secondary_dfield"
        (position 40 3)
        (display_length 4)
        (max_length 30)
        (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 30 4)
        (text "Min value")
    )
    (field "minval"
        (position 40 4)
        (display_length 10)
        (input allowed)
        (format real_8)
    )
    (field "secondary_minval"
        (position 40 4)
        (display_length 10)
        (input allowed)
        (format real_8)
    )

    (label
        (position 30 5)
        (text "Max value")
    )
    (field "maxval"
        (position 40 5)
        (display_length 10)
        (input allowed)
        (format real_8)
    )
    (field "secondary_maxval"
        (position 40 5)
        (display_length 10)
        (input allowed)
        (format real_8)
    )

    (field "dip_dir"
        (position 1 0)
        (display_length 10)
        (input allowed)
        (format real_8)
        (null disallowed)
    )
    (field "dip"
        (position 13 0)
        (display_length 10)
        (input allowed)
        (format real_8)
        (null disallowed)
        (low_bound -90)
        (high_bound 90)
    )
    (field "num_lines"
        (position 1 0)
        (display_length 10)
        (input allowed)
        (null disallowed)
    )

    (field "search_type"
        (position 39 0)
        (display_length 7)
        (input allowed)
        (null disallowed)
        (value_in "Cone" "Pyramid")
        (default "Cone")
    )

    (field "spread"
        (position 26 0)
        (display_length 10)
        (input allowed)
        (format real_8)
        (null disallowed)
        (low_bound 0)
        (high_bound 90)
        (dependency (value "search_type") == "Cone")
    )

    (field "spr_limit"
        (position 39 0)
        (display_length 10)
        (input allowed)
        (format real_8)
        (low_bound 0)
        (dependency (value "search_type") == "Cone")
    )

    (field "horizontal_spread"
        (position 26 0)
        (display_length 10)
        (input allowed)
        (format real_8)
        (null disallowed)
        (low_bound 0)
        (high_bound 90)
        (dependency (value "search_type") == "Pyramid")
    )

    (field "horizontal_spr_limit"
        (position 39 0)
        (display_length 10)
        (input allowed)
        (format real_8)
        (low_bound 0)
        (dependency (value "search_type") == "Pyramid")
    )

    (field "vertical_spread"
        (position 26 0)
        (display_length 10)
        (input allowed)
        (format real_8)
        (null disallowed)
        (low_bound 0)
        (high_bound 90)
        (dependency (value "search_type") == "Pyramid")
    )

    (field "vertical_spr_limit"
        (position 39 0)
        (display_length 10)
        (input allowed)
        (format real_8)
        (low_bound 0)
        (dependency (value "search_type") == "Pyramid")
    )

    (label
        (position 2 13)
        (text "Minimum:")
    )

    (label 
        (position 10 13) 
        (text "X")
    )
    (field "min0"
        (position 12 13)
        (display_length 10)
        (input allowed)
        (format real_8)
    )
    (label 
        (position 25 13) 
        (text "Y")
    )
    (field "min1"
        (position 27 13)
        (display_length 10)
        (input allowed)
        (format real_8)
    )
    (label 
        (position 40 13) 
        (text "Z")
    )
    (field "min2"
        (position 42 13)
        (display_length 10)
        (input allowed)
        (format real_8)
    )

    (label
        (position 2 14)
        (text "Maximum:")
    )

    (label 
        (position 10 14) 
        (text "X")
    )
    (field "max0"
        (position 12 14)
        (display_length 10)
        (input allowed)
        (format real_8)
    )
    (label 
        (position 25 14) 
        (text "Y")
    )
    (field "max1"
        (position 27 14)
        (display_length 10)
        (input allowed)
        (format real_8)
    )
    (label 
        (position 40 14) 
        (text "Z")
    )
    (field "max2"
        (position 42 14)
        (display_length 10)
        (input allowed)
        (format real_8)
    )

    (label 
        (position 2 16) 
        (text "Lag")
    )
    (field "lag"
        (position 10 16)
        (display_length 10)
        (input allowed)
        (format real_8)
        (null disallowed)
    )
    (label 
        (position 2 17) 
        (text "Max Dist")
    )
    (field "maxdist"
        (position 10 17)
        (display_length 10)
        (input allowed)
        (format real_8)
        (null disallowed)
    )

    (label
        (position 25 16)
        (text "Treat negatives as")
    )
    (field "negative"
        (position 42 16)
        (display_length 11)
        (input allowed)
        (null disallowed)
        (value_in "ZEROES" "UNDEFINED" "NEGATIVES")
        (default "NEGATIVES")
    )

    (label
        (position 25 17)
        (text "Notefile name")
    )
    (field "fname"
        (position 42 17)
        (display_length 11)
        (max_length 40)
        (input allowed)
        (null allowed)
    )
    (field "report_format"
        (position 43 17)
        (display_length 11)
        (max_length 40)
        (input allowed)
        (null allowed)
    )
    (field "display_report" (position 43 18)
      (display_length 2) (max_length 1) 
      (input allowed)
      (value_in "Y" "N")
      (default "N")
      (translate upper) (null allowed) 
    )
    (field "cross_variogram" (position 43 18)
      (display_length 2) (max_length 1) 
      (input allowed)
      (value_in "Y" "N")
      (default "N")
      (translate upper) (null disallowed) 
    )    

    (field "lag_minimum"
      (position 10 17)
      (display_length 10)
      (input allowed)
      (format real_8)
      (null disallowed)
      (low_bound 0.1)
      (default "0.1")
    )

    (field "lag_maximum"
      (position 10 17)
      (display_length 10)
      (input allowed)
      (format real_8)
      (null disallowed)
      (low_bound 0.1)
    )

    (field "lag_increment"
      (position 10 17)
      (display_length 10)
      (input allowed)
      (format real_8)
      (null disallowed)
      (low_bound 0.1)
    )

    (default_buttons)
)
