Skip to main content

script to convert events file into COMPDATMD keyword for ECHELON simulator.

Project description

events2compdatmd

A script to help converting event files exported from Petrel, OFM, or Schedule (Schlumber) or manualy created to include files apropriate for ECHELON (Stone Ridge Technology) using the ECHELON keyword COMPDATMD.

How to use:

from the command line or terminal

run the python command:
python -m events2compdatmd input_path [output_filepath] [units]

where input_path can be:

  • the path to the events file to be converted
  • a folder containing the event files - all the files will be converted -
  • a pattern representing the files to be processed

The rest of the parameters are described under the Parameters section.

from Python

import event2compdatmd as e2cm
e2cm.convert( input filepath, [output path], [units] )

Parameters

Only the fist parameter, input_filepath, indicative of the input file or directorty from which to look for event files, is mandatory.

input and output parameters

input_filepath: str
a string representing one of the following:
- the path to the input event file.
- the path to the folder containing the event files, all the .ev files will be processed.
- a pattern that will find the files to be processed.

output_filepath: [optional] str or None
a string representing the path to the file where to write out the keyword.
if None, the same input_filepath will be used, appending the suffix _COMPDATMD to the name and using the extension .INC.
default: None

extension: [optional] str
the extension for the deviation files to look for.
default: '.ev'

recursive: [optional] bool
if a folder is provided as input_filepath, set recursive True to search for deviation files in subfolders.
default: True

keyword_format: [optional] str 'echelon', 'flow'
Set the format of the output file to be written for Echelon simulator or OPM flow simulator.
default: 'echelon'
currently only 'echelon' is implemented

suffix: [optional] str
a string to appended as suffix to the orinal file name when writting the keyword include file. default: 'COMPDATMD' when keyword_format='echelon' 'COMPTRAJ' when keyword_format='flow'

wellname_case: str 'upper', 'lower' or 'title', or None A string indicating if the wellnames case should be changed, to uppercase or lowercase, or left as original. - 'upper' to convert the wellnames to 'UPPER CASE'. - 'lower' to convert the wellnames to 'lower case'. - 'title' to convert the wellnames to 'Title Case'. - None to leave the wellname as stated in the deviation survey. default: None

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

events2compdatmd-0.0.2.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

events2compdatmd-0.0.2-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file events2compdatmd-0.0.2.tar.gz.

File metadata

  • Download URL: events2compdatmd-0.0.2.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for events2compdatmd-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2be6ca1b551c1ab21ecb637226144475bd7722d789be68f6717afc912f941284
MD5 e933584e30fe544b75761e23322ebf48
BLAKE2b-256 304cddadbeb78173bcb9ef93718420223c807de216237ce1ac2ec81cb3a54114

See more details on using hashes here.

File details

Details for the file events2compdatmd-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for events2compdatmd-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c34117e4452646f71c6619dafadf89536be37cbc6c8c9a3f3746148f7c90fc6f
MD5 59954086c2da18310c9d63416ddc3019
BLAKE2b-256 bd7041effdee64e117e37e3f3847efa860db7c5ce6ddbe96916640d0fc06e5b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page