|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.las2witsml.LasDataFile
Title: LasDataFile.java Description: This is the main class that reads the LAS data and performs the WITSML conversion. Copyright: Copyright (c) 2005 Company: Satyam Computer Services Ltd.
Constructor Summary | |
LasDataFile()
Constructor LasDataFile |
Method Summary | |
void |
createBlockDefnElements(LasData objLasData,
org.w3c.dom.Document logDoc,
org.w3c.dom.Node parentNode)
Method createBlockDefnElements Description: This method writes the block information |
void |
createLogDefnElements(LasData objLasData,
org.w3c.dom.Document logDoc,
org.w3c.dom.Node ndParentNode)
Method createLogDefnElements Description: This method writes the log curve information |
void |
createLogParamElements(LasData objLasData,
org.w3c.dom.Document logDoc,
org.w3c.dom.Node parentNode)
Method createLogParamElements Description: This method writes the log param information |
void |
findElementAndWriteAttributeData(org.w3c.dom.Document xmlDoc,
java.lang.String strElemName,
java.lang.String strAttribName,
java.lang.Object objData)
Method findElementAndWriteAttributeData Description: This method searches for an element in a DOM tree and writes the attrbute data for that element |
void |
findElementAndWriteData(org.w3c.dom.Document xmlDoc,
java.lang.String strElemName,
java.lang.Object objData,
java.lang.String strPrevSibling)
Method findElementAndWriteData Description: This method searches for an element in a DOM tree and writes the data to DOM tree |
void |
generateWITSML(org.w3c.dom.Document domSrc,
java.lang.String strWriteSection,
java.lang.String strDestFolder)
Method generateWITSML Description: This method creates the WITSML output file depending on the section in the destination folder as per the DOM Tree |
void |
getDataFromLine(java.lang.String strLineData,
int intDelimiter,
java.util.ArrayList alDataArray)
Method getDataFromLine Description: This will read the different blocks of data from a line of LAS data. |
int |
getDelimiter()
Method getDelimiter Description: This will returns the delimiter of the LAS file |
LasData |
getLasData()
Method getLasData Description: This will return LasData object for holding the LAS file data. |
void |
getLineData(java.lang.String strLineData,
java.lang.String strMnemonic,
java.lang.String strUnits,
java.lang.String strValue,
java.lang.String strDescription,
java.lang.String strFormat,
java.lang.String strArrayAsocs)
Method getLineData Description: This method gets the different blocks from the line of LAS data read |
int |
getLineFromBlock(java.lang.String strInputString,
java.lang.String strRetString,
int intStartIndex)
Method getLineFromBlock Description: This method will read a line of data from the passed input string |
java.io.PrintWriter |
getLogger()
Method getLogger This method returns Logger information |
java.lang.String |
getMappingFile()
Method getMappingFile This method returns the mapping file to be used for conversion |
java.util.Vector |
getOutputFiles()
Method getOutputFiles This method returns the output files vector |
java.lang.String |
getSelectionFile()
Method getSelectionFile This method returns the selection file name |
java.lang.String |
getSrcFileDataBlock(java.lang.String strFileFullName,
java.lang.String strBlockStart)
Method getSrcFileDataBlock Description: This method processes the source LAS file and reads the contents of the file to a string and returns it to calling function |
java.lang.String |
getVersion()
Method getVersion Description: This will returns the version of the LAS file |
int |
getWellParamSize()
Method getWellParamSize This method returns the number of well info parameters |
java.lang.String |
getWrap()
Method getWrap Description: This will returns the WRAP mode of the LAS file, This can be Multiple lines per depth step or One line per depth step |
void |
LoadFileData(java.lang.String strLasFileName)
Method LoadFileData Description: This will returns an instance of LasData object |
void |
processCustomLogSection(java.lang.String strSrcFileFullName,
java.lang.String strSearchString,
LasData objLasData,
int intLoopVar,
java.lang.String strDestFolder,
java.lang.String strSrcFileContents)
Method processLogSection Description: This method reads the run parameter data and generates the WITMSL output files |
void |
processLogData(java.lang.String strSrcFileFullName,
java.util.ArrayList saDataArray,
java.lang.String strSearchString,
int intRecLimit,
org.w3c.dom.Document logDoc,
java.lang.String strSrcFileContents,
LasData objLasData)
Method processLogData Description: This method will read details of ASCII or LOG Data block in the input LAS File and write the log data to DOM tree. |
void |
processLogSection(java.lang.String strSrcFileFullName,
LasData objLasData)
Method processLogSection Description: This method processes the well log data by reading the block of data from the LAS file |
void |
processWellSection(java.lang.String strSrcFileFullName,
LasData objLasData)
Method processWellSection Description: This writes the well data to DOM tree and generates the WITSML Files. |
void |
readLogDefinitionsData(java.lang.String strSrcFileFullName,
java.util.ArrayList alArrayList,
java.lang.String strSearchString,
LasData objLasData)
Method readLogDefinitionsData Description: This method will read details of CURVE INFORMATION block in the input LAS File. |
void |
readParametersSectionData(java.lang.String strSrcFileFullName,
LasData objLasData)
Method readParametersSectionData Description: This will read details of WELL INFORMATION and PARAMETER INFORMATION block in the input LAS File. |
void |
readRunParametersSectionData(java.lang.String strSrcFileFullName,
LasData objLasData,
java.lang.String strSearchString)
Method readRunParametersSectionData Description: This will read details of PARAMETER INFORMATION block in the input LAS File. |
void |
readVersionInformation(java.lang.String strSrcFileFullName,
java.lang.String strVers,
java.lang.String strWrap,
int intDelimiter)
Method readVersionInformation Description: This will read the version information of the LAS file. |
void |
readWellSectionData(java.lang.String strSrcFileFullName,
LasData objLasData,
java.util.ArrayList alWellData)
Method readWellSectionData Description: This will read details of WELL INFORMATION block in the input LAS File. |
void |
setDelimiter(int intDelim)
Method setDelimiter This method sets the delimiter |
void |
setLasData(LasData objLasData)
Method setLasData This method sets the LasData object |
void |
setLogger(java.io.PrintWriter pwPrintWriter)
Method setLogger This method sets the logger information |
void |
setMappingFile(java.lang.String strMappingFile)
Method setMappingFile This method will set the mapping file to be used for conversion |
void |
setOutputFiles(java.util.Vector vecOutputFiles)
Method setOutputFiles This method will set the output files vector |
void |
setSelectionFile(java.lang.String strSelectionFile)
Method setSelectionFile This method sets the selection file |
void |
setVersion(java.lang.String strVers)
Method setVersion This method sets the version of the LAS file |
void |
setWellParamSize(int intParamSize)
Method setWellParamSize This method sets the well information size |
void |
setWrap(java.lang.String strWr)
Method setWrap This method sets the WRAP of the LAS file |
void |
writeAuditTrailData(org.w3c.dom.Document xmlDoc,
java.lang.String dtDate,
java.lang.String strRespParty,
java.lang.String strComment)
Method writeAuditTrailData Description: This method writes the audit trail data to DOM tree |
void |
writeDefaultHeaderContent(org.w3c.dom.Document xmlDoc,
java.lang.String strDocName)
Method writeDefaultHeaderContent Description: This writes the default header data to DOM tree |
void |
writeLogSectionData(java.lang.String strSrcFileFullName,
java.lang.String strSearchString,
org.w3c.dom.Document logDoc,
LasData objLasData,
MappingReader objMappingReader,
java.lang.String strSrcFileContents)
Method writeLogSectionData Description: This method write the log section data by reading the DOM tree |
void |
writeWellSectionData(org.w3c.dom.Document xmlDoc,
LasData objLasData,
MappingReader objMappingReader)
Method writeWellSectionData Description: This method write the well section data to a DOM tree |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LasDataFile()
Method Detail |
public LasData getLasData()
public void setLasData(LasData objLasData)
objLasData
- Data to be set from the LAS filepublic java.lang.String getVersion()
public void setVersion(java.lang.String strVers)
strVers
- version numberpublic java.lang.String getWrap()
public void setWrap(java.lang.String strWr)
strWr
- WRAP mode of the LAS filepublic int getDelimiter()
public void setDelimiter(int intDelim)
intDelim
- Delimiter of the LAS filepublic void LoadFileData(java.lang.String strLasFileName)
strLasFileName
- LAS file namepublic void readRunParametersSectionData(java.lang.String strSrcFileFullName, LasData objLasData, java.lang.String strSearchString)
strSrcFileFullName
- LAS file nameobjLasData
- LAS data of the LAS filestrSearchString
- The parameter section to be read (starting with ~P) in LAS filepublic void readWellSectionData(java.lang.String strSrcFileFullName, LasData objLasData, java.util.ArrayList alWellData)
strSrcFileFullName
- input LAS file nameobjLasData
- LAS data of the input LAS filealWellData
- The well section to be read (starting with ~W) in input LAS filepublic void readParametersSectionData(java.lang.String strSrcFileFullName, LasData objLasData)
strSrcFileFullName
- input LAS file nameobjLasData
- LAS data of the input LAS filepublic void getDataFromLine(java.lang.String strLineData, int intDelimiter, java.util.ArrayList alDataArray)
strLineData
- Line of Data from the input LAS fileintDelimiter
- Delimiter of the input LAS filealDataArray
- Array for storing datapublic void readVersionInformation(java.lang.String strSrcFileFullName, java.lang.String strVers, java.lang.String strWrap, int intDelimiter)
strSrcFileFullName
- LAS file namestrVers
- Version number of the input LAS filestrWrap
- WRAP mode of the input LAS fileintDelimiter
- Delimiter of the input LAS filepublic java.lang.String getSrcFileDataBlock(java.lang.String strFileFullName, java.lang.String strBlockStart)
strFileFullName
- input LAS filestrBlockStart
- The Block to be read from the LAS File (like ~V, ~W, ~P )public int getLineFromBlock(java.lang.String strInputString, java.lang.String strRetString, int intStartIndex)
strInputString
- Block of data from the input LAS filestrRetString
- Line of data from the input LAS fileintStartIndex
- StartIndex from where the block startspublic void getLineData(java.lang.String strLineData, java.lang.String strMnemonic, java.lang.String strUnits, java.lang.String strValue, java.lang.String strDescription, java.lang.String strFormat, java.lang.String strArrayAsocs)
strLineData
- A Line of data from the input LAS filestrMnemonic
- Mnemonic from the LinestrUnits
- Units from the LinestrValue
- Value from the LinestrDescription
- Description from the LinestrFormat
- Format from the LinestrArrayAsocs
- ArrayAsocs from the Linepublic void processLogSection(java.lang.String strSrcFileFullName, LasData objLasData)
strSrcFileFullName
- input LAS file nameobjLasData
- Data of the input LAS filepublic void processCustomLogSection(java.lang.String strSrcFileFullName, java.lang.String strSearchString, LasData objLasData, int intLoopVar, java.lang.String strDestFolder, java.lang.String strSrcFileContents)
strSrcFileFullName
- LAS file name to be processedstrSearchString
- SearchString from the LAS fileobjLasData
- Data from the input LAS fileintLoopVar
- variable for section countstrDestFolder
- Destination folder to place the generated WITSML filesstrSrcFileContents
- FileContents of the LAS File.public void writeLogSectionData(java.lang.String strSrcFileFullName, java.lang.String strSearchString, org.w3c.dom.Document logDoc, LasData objLasData, MappingReader objMappingReader, java.lang.String strSrcFileContents)
strSrcFileFullName
- LAS file namestrSearchString
- SearchString from the LAS filelogDoc
- DOM representation of the XML fileobjLasData
- Data of the LAS fileobjMappingReader
- Mapping class to get the LAS-WITSML mappingsstrSrcFileContents
- Mapping class to get the LAS-WITSML mappingspublic void createLogParamElements(LasData objLasData, org.w3c.dom.Document logDoc, org.w3c.dom.Node parentNode)
objLasData
- Data from the LAS filelogDoc
- DOM representation of the documetnparentNode
- parentNode for which the log parameters are to be appendedpublic void createLogDefnElements(LasData objLasData, org.w3c.dom.Document logDoc, org.w3c.dom.Node ndParentNode)
objLasData
- Data from the LAS filelogDoc
- DOM representation of the objectndParentNode
- parentNode to append the curve definitions of the LAS filepublic void createBlockDefnElements(LasData objLasData, org.w3c.dom.Document logDoc, org.w3c.dom.Node parentNode)
objLasData
- Data from the LAS filelogDoc
- DOM representation of the documentparentNode
- to append the block information of the LAS filepublic void readLogDefinitionsData(java.lang.String strSrcFileFullName, java.util.ArrayList alArrayList, java.lang.String strSearchString, LasData objLasData)
strSrcFileFullName
- Input LAS file namealArrayList
- Log definitions array liststrSearchString
- Search string from the LAS fileobjLasData
- Data from the LAS filepublic void processLogData(java.lang.String strSrcFileFullName, java.util.ArrayList saDataArray, java.lang.String strSearchString, int intRecLimit, org.w3c.dom.Document logDoc, java.lang.String strSrcFileContents, LasData objLasData)
strSrcFileFullName
- input LAS file namesaDataArray
- Array for holding log datastrSearchString
- String to be searching from the LAS fileintRecLimit
- Record LimitlogDoc
- DOM representation of the documentstrSrcFileContents
- FileContents of the File.objLasData
- LASData objectpublic void processWellSection(java.lang.String strSrcFileFullName, LasData objLasData)
strSrcFileFullName
- The input LAS file nameobjLasData
- Data from the LAS filepublic void writeDefaultHeaderContent(org.w3c.dom.Document xmlDoc, java.lang.String strDocName)
xmlDoc
- DOM represenation of the DocumentstrDocName
- Document Namepublic void writeAuditTrailData(org.w3c.dom.Document xmlDoc, java.lang.String dtDate, java.lang.String strRespParty, java.lang.String strComment)
xmlDoc
- DOM representation of theXML documentdtDate
- Date of Log datastrRespParty
- Responsible partystrComment
- Commentpublic void findElementAndWriteData(org.w3c.dom.Document xmlDoc, java.lang.String strElemName, java.lang.Object objData, java.lang.String strPrevSibling)
xmlDoc
- DOM representation of the XML documentstrElemName
- Element that is to be searched/created(if it does not exist)objData
- The actual data to be written for that elementstrPrevSibling
- Sibling where this new element is to be added in DOM objectpublic void writeWellSectionData(org.w3c.dom.Document xmlDoc, LasData objLasData, MappingReader objMappingReader)
xmlDoc
- DOM representation of the documentobjLasData
- Data from the LAS fileobjMappingReader
- Mapping Class that has LAS-WITSML mappingspublic void findElementAndWriteAttributeData(org.w3c.dom.Document xmlDoc, java.lang.String strElemName, java.lang.String strAttribName, java.lang.Object objData)
xmlDoc
- DOM representation of the XML documentstrElemName
- Element that is to be searchedstrAttribName
- Attribute to be created/setobjData
- The actual data to be written for that attributepublic void generateWITSML(org.w3c.dom.Document domSrc, java.lang.String strWriteSection, java.lang.String strDestFolder)
domSrc
- DOM representation of the XML documentstrWriteSection
- The section of the LAS file for which WITMSL file to be generatedstrDestFolder
- Destination folder for placing the generated filespublic java.util.Vector getOutputFiles()
public void setOutputFiles(java.util.Vector vecOutputFiles)
vecOutputFiles
- input WITSML Filepublic void setMappingFile(java.lang.String strMappingFile)
strMappingFile
- Mapping file Namepublic java.lang.String getMappingFile()
public void setSelectionFile(java.lang.String strSelectionFile)
strSelectionFile
- Selection filepublic java.lang.String getSelectionFile()
public void setWellParamSize(int intParamSize)
intParamSize
- Number of WELL parameters in LAS filepublic int getWellParamSize()
public void setLogger(java.io.PrintWriter pwPrintWriter)
pwPrintWriter
- PrintWriterpublic java.io.PrintWriter getLogger()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |