Class: CWLSLas
Constant Summary
Constants included from LasReader
Instance Attribute Summary
Attributes included from LasReader
#curves, #parameters, #version, #well_info, #wrap
Instance Method Summary collapse
-
#company_name ⇒ Object
Returns the company name tha owns the well.
-
#curve(curve_name) ⇒ Object
Returns an object representing the curve selected.
-
#curve_names ⇒ Object
Return a list of mnemonics representing the curve names.
-
#field_name ⇒ Object
Returns the field name described in the file.
-
#initialize(filename = nil) ⇒ CWLSLas
constructor
Initialize CWLSLas object passing las file as argument.
-
#location ⇒ Object
Returns the location described in the file .
-
#log_date ⇒ Object
Returns a String with the date described in the file.
-
#province ⇒ Object
Returns the province described in the file .
-
#service_company ⇒ Object
Returns the service company that performed the log acquisition .
-
#uwi ⇒ Object
Returns the UWI (UNIQUE WELL ID) described in the file .
-
#well_name ⇒ Object
Return a list of mnemonics representing the curve names.
Methods included from LasReader
#load_file, #log_nowrap_data, #log_wrap_data, #set_curve_info, #set_other_info, #set_parameters, #set_version, #set_well_info
Constructor Details
#initialize(filename = nil) ⇒ CWLSLas
Initialize CWLSLas object passing las file as argument
Example:
>> my_well = CWLSLas.new('my_well.las')
=> #<CWLSLas>
Arguments:
las_file_name: (String)
238 239 240 |
# File 'lib/las_reader.rb', line 238 def initialize(filename=nil) load_file(filename) if not filename.nil? end |
Instance Method Details
#company_name ⇒ Object
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."
292 293 294 |
# File 'lib/las_reader.rb', line 292 def company_name self.well_info.company_name end |
#curve(curve_name) ⇒ Object
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)
266 267 268 |
# File 'lib/las_reader.rb', line 266 def curve(curve_name) self.curves[curve_name] end |
#curve_names ⇒ Object
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"]
251 252 253 |
# File 'lib/las_reader.rb', line 251 def curve_names self.curves.keys end |
#field_name ⇒ Object
Returns the field name described in the file
Example:
>> my_well = CWLSLas.new('my_well.las')
=> #<CWLSLas>
>> my_well.field_name
=> "CAMPOS"
305 306 307 |
# File 'lib/las_reader.rb', line 305 def field_name self.well_info.field_name end |
#location ⇒ Object
Returns the location described in the file
Example:
>> my_well = CWLSLas.new('my_well.las')
=> #<CWLSLas>
>> my_well.location
=> "-43.173871636390686 -22.964858960678484"
318 319 320 |
# File 'lib/las_reader.rb', line 318 def location self.well_info.location end |
#log_date ⇒ Object
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"
357 358 359 |
# File 'lib/las_reader.rb', line 357 def log_date self.well_info.date_logged end |
#province ⇒ Object
Returns the province described in the file
Example:
>> my_well = CWLSLas.new('my_well.las')
=> #<CWLSLas>
>> my_well.province
=> "RIO DE JANEIRO"
331 332 333 |
# File 'lib/las_reader.rb', line 331 def province self.well_info.province end |
#service_company ⇒ Object
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."
344 345 346 |
# File 'lib/las_reader.rb', line 344 def service_company self.well_info.service_company end |
#uwi ⇒ Object
Returns the UWI (UNIQUE WELL ID) described in the file
Example:
>> my_well = CWLSLas.new('my_well.las')
=> #<CWLSLas>
>> my_well.uwi
=> "100091604920W300"
370 371 372 |
# File 'lib/las_reader.rb', line 370 def uwi self.well_info.uwi end |
#well_name ⇒ Object
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"
279 280 281 |
# File 'lib/las_reader.rb', line 279 def well_name self.well_info.well_name end |