Skip to main content

Utilities for working with Petrel imports and exports.

Project description

petrelpy

Getting data in and out of Petrel

DOI

Included are a command line tool and library for importing

  • production
  • injection
  • completions information
  • well formation tops, and
  • headers

into Petrel, and exporting

  • per-well geomodel properties
  • GSLIB cellular outputs, and
  • geomodel properties at tops

Installation

The easiest way to use the command line interface is with pipx:

pipx install .

or

pipx install git+https://github.com/frank1010111/petrelpy.git

This will put petrelpy on your path, and you can invoke the CLI tool with

$ petrelpy --help
Usage: petrelpy [OPTIONS] COMMAND [ARGS]...

  Command line tool for working with Petrel input and output formats.

Options:
  -h, --help  Show this message and exit.

Commands:
  production  Convert IHS production spreadsheet to Petrel vol format.

In order to use the library, install with pip:

pip install git+https://github.com/frank1010111/petrelpy.git

Getting started

Check out the docs. If it isn't live quite yet, you can choose to use nox -s docs -- serve to see them locally.

Contributing

New Petrel-helpers are always appreciated. See the contribution guidelines

The Stormy Petrel

A thousand miles from land are we,
Tossing about on the roaring sea, -
From billow to bounding billow cast,
Like fleecy snow on the stormy blast.
The sails are scattered abroad like weeds;
The strong masts shake like quivering reeds;
The mighty cables and iron chains,
The hull, which all earthly strength disdains, -
They strain and they crack; and hearts like stone
Their natural, hard, proud strength disown.

Up and down! - up and down!
From the base of the wave to the billow’s crown,
And amidst the flashing and feathery foam
The stormy petrel finds a home, -
A home, if such a place may be
For her who lives on the wide, wide sea,
On the craggy ice, in the frozen air,
And only seeketh her rocky lair
To warm her young, and to teach them spring
At once o’er the waves on their stormy wing!

O’er the deep! - o’er the deep!
Where the whale and the shark and the sword-fish sleep, -
Outflying the blast and the driving rain,
The petrel telleth her tale — in vain;
For the mariner curseth the warning bird
Which bringeth him news of the storm unheard!
Ah! thus does the prophet of good or ill
Meet hate from the creatures he serveth still;
Yet he ne’er falters, - so, petrel, spring
Once more o’er the waves on thy stormy wing!

Barry Cornwall

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

petrelpy-0.1.0.tar.gz (58.2 kB view details)

Uploaded Source

Built Distribution

petrelpy-0.1.0-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file petrelpy-0.1.0.tar.gz.

File metadata

  • Download URL: petrelpy-0.1.0.tar.gz
  • Upload date:
  • Size: 58.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for petrelpy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f894c2048f9032817c8610c42aef66bc6e3d85485929c9f4a03e720bd2bdfa40
MD5 b78ec53990574a5459fdd7bee19e907b
BLAKE2b-256 35b5d33ea2abbe1b2ab902a41d5aab0b5d5db32706257049ac02879da43d65b4

See more details on using hashes here.

File details

Details for the file petrelpy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: petrelpy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for petrelpy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 139851fb5f7cc862f2e63758de5ab36ae48596ae9e0655d7e52eefc12c020745
MD5 60d066e696987a65e47d29c70a230fc5
BLAKE2b-256 c086a55c607dcd9d5ff658458f5a1be88540970877dff701d4ce68da1090bcb9

See more details on using hashes here.

Supported by

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