litholog | Includes StratCoreProcessor | Data Visualization library
kandi X-RAY | litholog Summary
kandi X-RAY | litholog Summary
litholog is focused on providing a framework to digitize, store, plot, and analyze sedimentary graphic logs (example log shown below). Graphic logs are the most common way geologists characterize and communicate the composition and variability of clastic sedimentary successions; through a simple drawing, a graphic log imparts complex geological concepts (e.g., the Bouma turbidite sequence or a shoreface parasequence). The term ‘graphic log’ originates from a geologist graphically drawing (i.e., ‘logging’) an outcrop or core; other synonymous terms include measured section and stratigraphic column. litholog is a package-level extension of agile-geoscience/striplog, with additional features that focus on lithology, and an API that is geared toward facilitating machine learning and quantitative analysis. As you can see above, litholog faithfully reproduces graphic log data, but errors or omissions when digitizing are propagated. Care during digitizing is of the utmost importance, as manual manipulation of litholog data (e.g., grain size) is not recommended.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Plot the feature
- Generate a matplotlib patch
- Return a polygon as a polygon
- Return True if d is within the segment
- Construct a DataFrame from a Pandas DataFrame
- Preprocess a dataframe
- R Check thickness
- Check if top and basecol are in topological order
- Return a list of values
- Return True if other is compatible with other
- Extract values from the bed
- Calculate the damping density of a field
- Calculate the HR coefficient for a 1D series
- Reduce a list of numpy arrays
- Apply a function to each field
- Check if all samples have the same value
- Apply this rule to the given thing
- Flip the stop
- Return a new BedSequence with a given delta
- Convert string to array
- Convert a list of strings to a numpy array
- Generate a pseudo - gamma
- Return the value of the specified field
- Convert from soil coefficient to lithm
- Calculate the hurst_K value for a given field
litholog Key Features
litholog Examples and Code Snippets
Community Discussions
Trending Discussions on litholog
QUESTION
I currently have a seaborn relplot
...ANSWER
Answered 2021-May-05 at 01:44You can iterate through harker.axes
:
QUESTION
I have a multi index dataframe, with the two indices being Sample and Lithology
...ANSWER
Answered 2021-Apr-24 at 22:14To use hue=
and style=
, seaborn prefers it's dataframes in long form. pd.melt()
will combine all columns and create new columns with the old column names, and a column for the values. The index too needs to be converted to a regular column (with .reset_index()
).
Most seaborn functions use order=
to set an order on the x-values, but with lineplot
the only way is to make the column categorical applying a fixed order.
QUESTION
I've been playing around with Matplotlib and created a horizontal bar using the following algorithm (Full code and junk data provided at the bottom of this post).
...ANSWER
Answered 2021-Jan-29 at 01:29Since the intention of the outcome was ambiguous, I have created examples for all three versions I can imagine.
QUESTION
Hi I want to continue from what I already ask in here Create vertical stacked bar chart referenced to y values (lithology/stratigraphic column)
The question is how to make multiple hatches on my pcolor, here is the picture
I want to make that white colored pcolor with 'x' pattern, and the red one with '+'.
Any ways to do it? thank you in advance
...ANSWER
Answered 2020-Dec-03 at 07:49Based on the linked example data, and on How to hatch PolyCollection instance? for a method to hatch the PolyCollection
created by pcolor
:
QUESTION
I've added some columns to a DataGridView using DataGridViewComboBoxColumn
and DataGridViewColumn
ANSWER
Answered 2020-Jul-17 at 14:48As suggested by Ahmed Abdelhameed, removing the line DataSource = New DataTable(),
the problem is solved.
QUESTION
Evening all,
I'm attempting to add merge multiple lists into a dictionary. I've been able to access the spreadsheet, import the columns as lists and even assign valueA to the key. I'm struggling to append the valueB to the same key without overwriting the valueA.
My desired output is ('spreadsheet_key', ['valueA', 'valueB']) I can only achieve ('spreadsheet_key', ['valueB'])
There is clearly something that I don't understand about dictionaries. Any help would be greatly appreciated.
My code and comments are as follows:
...ANSWER
Answered 2020-Jul-17 at 01:24This error is occurring because you are overwriting the same key of the dictionary with another value rather than appending the value
You can achieve this with a single for loop
QUESTION
In a data frame I am trying to calculate the total thickness at certain intervals within a stratigraphic column, and create new coulmns of these total thicknesses in the data frame. I am new to using r, and I am struggling with how to add up consecutive values in a column.
Any help or insight would be appreciated. Even suggested readings or help pages.
I am trying to calculate the top and base of specific beds for a stratigraphic column. Essentially, the total thickness at specific intervals in a stratigraphic column. I have the thickness of each bed and I want to calculate where the top and base would be in relation to the very bottom of the entire column. I have been struggling to come up with a solution, I feel like I simply do not know enough functions and commands to allow me to write the code that will do what I need. I also think I may need to create a function, in order to do what I need.
This is the data I am starting with. The lithology or rock type, and the total thickness of each bed or rock type. The last row is the absolute base of the statigraphic column, which therefore has no thickness.
...ANSWER
Answered 2019-Nov-03 at 17:28In these alternatives we use the input shown reproducibly in the Note at the end.
1) within The base is the sum of the thicknesses minus the thicknesses up to that point which we can calculate using cumsum
. The top is that plus the current thickness. No packages are used.
QUESTION
I have 3 colors (ccc) for 3 different types of rock (d2) and I would like to plot a legend with rectangles for my color bar. I already searched about it, but couldn't find the right code. Could you help me?
...ANSWER
Answered 2019-Jun-07 at 18:52If I understood correctly, you want three legend handles, one for each colored stone. This can be done by adding custom legend handles using mpatches
QUESTION
I have two dataframe which the key
is depth. One has > 2k values the other only 100, but the min and the max depth are the same. I would like to upsample the small dataframe (which has only one column) at the same size of the bigger one and repeat the same value of a column between two depths.
I've tried using concatenate and resampling but I'm stuck when I want to find the same depth since the two dataframes depths do not have exactly the same values
I have this:
...ANSWER
Answered 2019-Apr-06 at 10:35If change sample data for same max and min value in both is possible use merge_asof
:
QUESTION
I am using Google map label to display some property from GeoJSON data on GeoJSON layer. The layer has some dark color and the label is being created behind the GeoJSON data layer due to that the map label looks blurry. I tried to apply bigger zIndex for label than data layer but it has no effect. Check out the issue in plunker.
...ANSWER
Answered 2018-Jan-23 at 19:17I would suggest the following workaround. Instead of the js-map-label
library and its MapLabel
object you can use native google.maps.Marker
object with custom icon and label. The trick is: as a custom icon URL you can provide an URL of empty png image and additionally you can specify a position where the label should appear.
Your code where you create the label should be changed to the following
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install litholog
You can use litholog like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page