class CWLSLas
Public Class Methods
Initialize CWLSLas
object passing las file as argument
Example:
>> my_well = CWLSLas.new('my_well.las') => #<CWLSLas>
Arguments:
las_file_name: (String) file_options: (Hash) options: encoding
# File lib/las_reader.rb, line 263 def initialize(filename=nil, file_options={}) load_file(filename, file_options) if not filename.nil? end
Public Instance Methods
Returns the company name tha owns the well
Example:
>> my_well = CWLSLas.new('my_well.las') => #<CWLSLas> >> my_well.company_name => "ANY OIL COMPANY LTD."
# File lib/las_reader.rb, line 317 def company_name self.well_info.company_name end
Returns the country described in the file
Example:
>> my_well = CWLSLas.new('my_well.las') => #<CWLSLas> >> my_well.country => "US"
# File lib/las_reader.rb, line 436 def country self.well_info.country end
Returns the county described in the file
Example:
>> my_well = CWLSLas.new('my_well.las') => #<CWLSLas> >> my_well.county => "KENAI"
# File lib/las_reader.rb, line 423 def county self.well_info.county end
Returns an object representing the curve selected
Example:
>> my_well = CWLSLas.new('my_well.las') => #<CWLSLas> >> my_well.curve('ILD') => #<LasReader::Curve:0x7f @description="DEEP RESISTIVITY", @unit="OHMM", @name="ILD", @log_data=[105.6, 105.6, 105.6]>
Arguments:
curve mnemonic: (String)
# File lib/las_reader.rb, line 291 def curve(curve_name) self.curves[curve_name] end
Return a list of mnemonics representing the curve names
Example:
>> my_well = CWLSLas.new('my_well.las') => #<CWLSLas> >> my_well.curve_names => ["ILD", "ILM", "DT", "NPHI", "RHOB", "SFLA", "SFLU", "DEPT"]
# File lib/las_reader.rb, line 276 def curve_names self.curves.keys end
Returns the field name described in the file
Example:
>> my_well = CWLSLas.new('my_well.las') => #<CWLSLas> >> my_well.field_name => "CAMPOS"
# File lib/las_reader.rb, line 330 def field_name self.well_info.field_name end
Returns the location described in the file
Example:
>> my_well = CWLSLas.new('my_well.las') => #<CWLSLas> >> my_well.location => "-43.173871636390686 -22.964858960678484"
# File lib/las_reader.rb, line 343 def location self.well_info.location end
Returns a String with the date described in the file.
Example:
>> my_well = CWLSLas.new('my_well.las') => #<CWLSLas> >> my_well.log_date => "25-DEC-1988"
# File lib/las_reader.rb, line 382 def log_date self.well_info.date_logged end
Returns the province described in the file
Example:
>> my_well = CWLSLas.new('my_well.las') => #<CWLSLas> >> my_well.province => "RIO DE JANEIRO"
# File lib/las_reader.rb, line 356 def province self.well_info.province end
Returns the service company that performed the log acquisition
Example:
>> my_well = CWLSLas.new('my_well.las') => #<CWLSLas> >> my_well.service_company => "ANY LOGGING COMPANY LTD."
# File lib/las_reader.rb, line 369 def service_company self.well_info.service_company end
Returns the state described in the file
Example:
>> my_well = CWLSLas.new('my_well.las') => #<CWLSLas> >> my_well.state => "KANSAS"
# File lib/las_reader.rb, line 410 def state self.well_info.state end
Returns the UWI (UNIQUE WELL ID) described in the file
Returns API if UWI not found (for locations outside Canada)
Example:
>> my_well = CWLSLas.new('my_well.las') => #<CWLSLas> >> my_well.uwi => "100091604920W300"
# File lib/las_reader.rb, line 397 def uwi self.well_info.uwi || self.well_info.api end
Return a list of mnemonics representing the curve names
Example:
>> my_well = CWLSLas.new('my_well.las') => #<CWLSLas> >> my_well.well_name => "ANY ET AL OIL WELL #12"
# File lib/las_reader.rb, line 304 def well_name self.well_info.well_name end