/*  convert the Oseberg well logs from 60/4  to seplib files   */
/*  the conversion takes some time be patient			*/
/*  the depths are irregular					*/
/*  gam_rho_dt.dat  -> gam_rho_dt.h           depth gamma ray density sonic */
/*  ld_id_ls.res  -> ld_id_ls.h               depth LLD ILD LIS */
/*  np_cal.dat  -> np_cal.h                   depth np_cal.h */
#include <SEP.defs>

gam_rho_dt.HH:   1   if not exist gam_rho_dt.HH
	Cp <gam_rho_dt.h >gam_rho_dt.HH    out=stdout


all&: 1 2 3

1&: 
	lines.pl <gam_rho_dt.dat   >junk
	makesep.pl <junk
	echo "we have seplib files:  DEPTH.h GR.h RHOB.h DT.h"
	echo " depth gamma ray density sonic "
	Merge DEPTH.h GR.h RHOB.h DT.h axis=3 space=n >gam_rho_dt.h
	echo " depth gamma ray density sonic " >>gam_rho_dt.h
	RM_CMD junk


2&:
	lines.pl <ld_id_ls.res   >junk2
	makesep.pl <junk2
	echo "we have seplib files:  DEPTH.L.h LLD.h ILD.h LLS.h"
	echo " depth LLD ILD LIS "
	Merge DEPTH.L.h LLD.h ILD.h LLS.h axis=3 space=n >ld_id_ls.h
	echo " depth LLD ILD LIS " >>ld_id_ls.h
	RM_CMD junk2
	

3&:
	lines.pl <np_cal.dat >junk3
	makesep.pl <junk3
	echo "we have seplib files: DEPTH.N.h NPHI.h CALI.h"
	echo " depth phi and caliber"
	Merge DEPTH.N.h NPHI.h CALI.h axis=3 space=n >np_cal.h
	echo "depth phi and caliber" >>np_cal.h
	RM_CMD junk3

clean&:
	RM_CMD junk*


veryclean&:
	RM_CMD *.h junk* *.H
