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
Release files for events2compdatmd 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| events2compdatmd-0.0.2.tar.gz | 7.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| events2compdatmd-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.5 kB
Release files / events2compdatmd-0.0.2.tar.gz
| Download URL | events2compdatmd-0.0.2.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2be6ca1b551c1ab21ecb637226144475bd7722d789be68f6717afc912f941284
|
|
BLAKE2b-256 checksum How to use checksums |
304cddadbeb78173bcb9ef93718420223c807de216237ce1ac2ec81cb3a54114
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / events2compdatmd-0.0.2-py3-none-any.whl
| Download URL | events2compdatmd-0.0.2-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c34117e4452646f71c6619dafadf89536be37cbc6c8c9a3f3746148f7c90fc6f
|
|
BLAKE2b-256 checksum How to use checksums |
bd7041effdee64e117e37e3f3847efa860db7c5ce6ddbe96916640d0fc06e5b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|