You are on page 1of 5

Geoestadistica 2

CODIFICACION EN AUTOLIPS
PARA TRES TALADROS CONSECUTIVOS Y DIFERENTES
BUZAMIENTOS

Geoestadistica 2
CODIFICACION EL AUTOLIPS
; TALA0.LSP
AUTOR:geo II
UNI
(defun c:dennis()
(graphscr)
;(setq nombre (getstring " Nombre del archivo "))
(setq nombre "c:\\tala1.txt")
(setq archi (open nombre "r"))
;
(setq ntal 3)
(setq i 1)
;..................................................
(while (<= i ntal)
;
identificacion
(setq m ( read-line archi))
(setq iden (substr m 1 6))
;rumbo y buzamiento
(setq azimut (substr m 71 7 ))
(setq az (angtof azimut 0))
(setq buzamiento (substr m 64 6))
(setq bz (angtof buzamiento 0))
;

coordenadas en superficie

(setq yy (substr m 13 12))


(setq y1 (atof yy))
(setq xx (substr m 25 12))
(setq x1 (atof xx))
(setq zz (substr m 37 10))
(setq z1 (atof zz))
;
numero de muestras
(setq nmu (substr m 47 5))
(setq nmue (atof nmu))
;
(setq p1 (list x1 y1 z1))
(setq j 1)
;
(while (<= j nmue)
(setq m ( read-line archi))
(setq h (substr m 20 8))
(setq hasta (atof h))
(setq au (substr m 53 7))
(setq ley (atof au))

Geoestadistica 2
;

armar fin de muestra

(setq yy2 (* ( * (cos bz) (cos az)) hasta))


(setq xx2 (* ( * (cos bz) (sin az)) hasta))
(setq zz2 (* (sin bz) hasta))
(setq y2 ( + y1 yy2))
(setq x2 ( + x1 xx2))
(setq z2 ( + z1 zz2))
(setq p2 (list x2 y2 z2))
;........asignacion de color de acuerdo al valor de la ley...
(cond
((if (and (> ley 0)(< ley 0.01)) (command "color" 6)))
((if (and (>= ley 0.1)(< ley 0.15)) (command "color" 4)))
((if (and (>= ley 0.15)(< ley 0.50)) (command "color" 2)))
((if (and (>= ley 0.50)(< ley 0.70)) (command "color" 5)))
((if (and (>= ley 0.70)(< ley 1.00)) (command "color" 7)))
((if (and (>= ley 1.00)(< ley 2.00)) (command "color" 8)))
((if (>= ley 2.0) (command "color" 1)))
)
;...........................
(command "lweight" 0.5)
(command "3dpoly" p1 p2 "")
(SETQ P1 P2)
(setq j (+ 1 j))
)
(setq i (+ 1 i))
)
(close archi)
(prin1)
)
(prompt "\nTALA0.LSP , escriba orosco para graficar los taladros")
(prompt " \n Autor: ")
(princ)

CONCLUSIONES

SE OBSERVA, LA DISTRIBUCION DE LAS LEYES PARA 3 TALADROS


CONSECUTIVOS , VARIANDO SUS BUZAMIENTOS.

Geoestadistica 2

Geoestadistica 2

You might also like