Python tools for plotting scanned core data from the USGS Pacific Coastal and Marine Science Center
Project description
corescan_plotting
=======
corescan_plotting
contains tools for analyzing and plotting outputs from various core scanning instruments located at the USGS Pacific Coastal and Marine Science Center.
Setup
For USGS python users, I recommend using Miniconda.
Install the appropriate Python 3.x Miniconda installer. If on Windows, choose Just Me and for location, something like C:\Users\USERNAME\Miniconda3
, but this is up to you. If this is your first tie working with conda environments, IOOS has a useful guide on setting up conda on both macos and windows and is perhaps a good place to start before creating a new conda environment for the corescan_plotting package.
Create a conda environment (see: conda.io) with python=3.7
Once created, activate the environment and install corescan_plotting with:
conda install -c spmls corescan_plotting
This installs the latest stable version.
opencv is a tricky dependency to install, you may have to reinstall it with: pip install opencv-python==4.2.0.32
if
corescan_plotting fails to import in python.
Usage
See examples.ipynb for more detailed examples.
from corescan_plotting import ct
import matplotlib.pyplot as plt
im, xml = ct.ct_in() # this will open up a window to load in a Geotek orthogonal view image and associated xml file
ct.ct_plot(im, xml) # this will plot the loaded ct file
plt.show()
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
Built Distribution
Hashes for corescan_plotting-0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10df67cbc5345a14638eca1c21799ef418746ffc8f59311295904cfe03008ac5 |
|
MD5 | a24adb32b74f002d663f56e90d2d132b |
|
BLAKE2b-256 | c8c34bb13d6c8e94617c3b8282a071c8fed54c1383ba0da9e347186623185ba1 |