class CWLSLas

Public Class Methods

new(filename=nil, file_options={}) click to toggle source

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

company_name() click to toggle source

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
country() click to toggle source

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
county() click to toggle source

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
curve(curve_name) click to toggle source

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
curve_names() click to toggle source

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
field_name() click to toggle source

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
location() click to toggle source

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
log_date() click to toggle source

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
province() click to toggle source

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
service_company() click to toggle source

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
state() click to toggle source

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
uwi() click to toggle source

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
well_name() click to toggle source

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