#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Aug  7 10:38:34 2023

@author: benjaminallen
"""
#Run with pandas v1.3.4, numpy v1.20.3, and matplotlib v3.4.3

import pandas as pd

h5File = "welldata.h5";

# Pick which well number (1-15)
wellnum=15

welldat = pd.read_hdf(h5File,'data/w'+str(wellnum))


#Osage Well USGS DDD 1 Burbank
# welldat = pd.read_hdf(h5File,'data/Osage')

#1012D Injection Data Reports
# welldat = pd.read_hdf(h5File,'injdat')

#Write to csv 'txt' file
welldat.to_csv('W_'+str(wellnum)+'.txt',index=False)


