Skip to main content

# PhoenixGeoPy

## What does this project do?

This project enables users to parse and handle Phoenix Geophysics binary time series from the MTU-5C family of receivers.

## Why is this project useful?

This project allows the geophysical community to work with native Phoenix time series from the MTU-5C family of systems and create their own code, allowing them to solve the next geophysical data challenge!

## How do I get started?

### Installing the necessary packages

#### Install Python 3

First you will need to install Python3 in your system if you don’t have it already. You can find Python3 for different operating systems. In Windows we recommend using Cygwin or MSYS2.

For now, most of our documentation will be tested on a Linux computer, but if you know your way around Python, or if you Google a little, you will find how to do the same in your system.

In a modern Debian-based Linux system you can install Python3 by typing in a console:

`bash sudo apt install python3 `

#### Install PhoenixGeoPy and its dependencies using the standard package manager ‘pip3’

pip3 is a package manager for your Python 3 installation. You can use it to install packages you might need and automatically manage their dependencies. This is much easier than installing packages from source code, one by one, and figuring out and installing their dependiencies.

PhoenixGeoPy has been added to the official Python Package Index PyPi, so it can be installed using pip3.

If you have python 3.4 or above installed, pip3 is installed by default with your python installation in most operating systems

If you have pip installed, in a console where you can invoke python you can type

pip3 install PhoenixGeoPy

This will install PhoenixGeoPy and all its dependencies.

Note though that this will install packages on top of your main python installation. This is not a problem if you are just using python casually, but if python is used for some other pueposes in your system, we recommend that you set up a Python virtual environment before running pip3. Ths will leave your main OS Python packages untouched, and will create a safe copy of python where the new libraries will be installed. We cannot really give a tutorial of virtual environemnts, but the link below is a great resource

<https://docs.python.org/3/tutorial/venv.html>

#### Install PhoenixGeoPy from source at github

You can install PhoenixGeoPy from our open source repository. This is more complex than using pip3, so it is recommended for more advanced users, or only if installing using pip3 is not an option.

To clone the source code to your compurter do:

`bash https://github.com/torresolmx/PhoenixGeoPy.git `

You will need to install a few other python3 libraries if you don’t have then already. Note that matplotlib is only needed to run the examples, and not by the PhoenixGeoPy library itself. If you are not planning to run the examples, you can ommit installing python3-matplotlib

`bash sudo apt install python3-numpy python3-matplotlib `

### Now the fun can start

In a console that has access to python3, change directories to the location where you cloned this PhoenixGeoPy project. You should see this README.md file in that directory.

If you are running the project from source (intead of installing from pip), once there, you will need to define this directory as a directory that has libraies that python3 can import. This will be effective for this session of the console. You only need to do this once on that console, while it remains open.

The following command should define your cloned project as a path where python will look for libraries for a bash console. You can easily find a bash-compatible console commonly in Linux or Mac, and in Windows you can use an MSYS2 or Cygwin running bash console.

`bash PYTHONPATH=$(pwd):$PYTHONPATH `

Remember, while you keep that console open, you only need to run this command above once.

Now change directories to the “Examples” folder

`bash cd Examples `

And now, you are ready to run the example:

`bash python3 NativeSampleReader.py ``

You should see a window with a plot of a sine wave. The console where you ran the commands above will present an interactive prompt that will let you navigate through the time series, or to exit the program.

If you need to read data from Phoenix time series files, you can make a copy of the example and substitute the code that plots the data by your own code. Easy!

## What is the license type for this project?

[MIT](https://choosealicense.com/licenses/mit/)

## How do I contribute?

You are welcome to send pull requests if you find a severe bug. For major changes, please open an issue first to discuss what you would like to change.

## Coding style

We loosely adhered to [PEP8](https://www.python.org/dev/peps/pep-0008/) coding style whenever it was possible. As a change, we allow for 120 characters long lines though.

We encourage you to keep the same style format

## Where can I get more help, if I need it?

This project comes with no technical support or warranty. You can ask the community in github. For this to work, you should also be willing to help the community. Please become an active participant of the project by answering questions of other users!

Metadata

Release files for PhoenixGeoPy 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PhoenixGeoPy 1.0.2
File Size Uploaded
phoenixgeopy-1.0.2.tar.gz 11.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PhoenixGeoPy 1.0.2
File Interpreter ABI Platform
PhoenixGeoPy-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 20.3 kB

Release files / phoenixgeopy-1.0.2.tar.gz

Download URL phoenixgeopy-1.0.2.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9bcae3cfbd798b2fbaa158625d946da7912d7f10ea87183ae63d7db93ee1b297
BLAKE2b-256 checksum
How to use checksums
d093262734f5e37ed69acd28d6d4bf73d1c80b9d80ca82bc960771945f1116d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.21

Release files / PhoenixGeoPy-1.0.2-py3-none-any.whl

Download URL PhoenixGeoPy-1.0.2-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
97b003a80a38f9d1d440a1f03871be91682ea08663aa73e9a954ef9cfd102097
BLAKE2b-256 checksum
How to use checksums
12025a3043f28e5f3918e1cc529faca2ba5313ddaf938d5152c4a578b0920452
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.21

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page