ziggie

Selection Criteria for Paleointensity Analysis

https://github.com/atully98/ziggie

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.2%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Selection Criteria for Paleointensity Analysis

Basic Info
  • Host: GitHub
  • Owner: ATully98
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 27.3 KB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • Open Issues: 0
  • Releases: 3
Created over 1 year ago · Last pushed 8 months ago
Metadata Files
Readme Citation

README

Ziggie is a selection statistic for identifying and quantifying zig-zagging in Arai plots during paleointensity analysis.

Currently a criterion of Ziggie <= 0.1 is suggested.

Example usage is demonstrated within the Jupyter notebook.
The notebook requires the following packages to work:
numpy
scipy
pandas
matplotlib
future

Note: If future is not installed error messages may reference the module 'past'

The example input txt file has 2 columns, the x and y points of the Arai plot respectively.

A comma delimited format can be loaded instead by including the delimiter option:
pts = np.loadtxt("./AraiPlot.csv", delimiter=",")

There is no requirement to use a input file and a numpy array of shape (n, 2) may be used (where n is the number of points in the Arai plot).

The input points may be normalised or not as preferred.

Ziggie is calculated for a selected fit.  This is done by setting the values of seg_min and seg_max, which are the first and last point in the fit respectively.
The index of the points should be changed to select the desired fit.
Note that python uses zero based indexing, as such indices are numbered 0,1,2,3,...,n-1.


Unusual values of ziggie may occur, such as negative values, due to a poor circle fit to the data.  This may be indicated by checking the root-mean-square (RMS) value.
To do so the following lines should be uncommented (remove the hash symbol):
print(f"RMS: {RMS:0.3f}")

The Arai plot for the data can be displayed by running the next cell.  The selected fit will be plotted in colour, with the unused points in grey.  If the selected fit passes it will be coloured blue,  whereas a fit that fails will be plotted in red. If ziggie is negative the plot will be in orange.

The third cell allows for ziggie to be found for all fits with at least 3 points. Those that meet the criteria of ziggie <= 0.1 will be highlighted as passed.
To use a different criterion the 'criteria' variable can be changed.

The show_rms variable can be set to True (or False), to display (or not) the RMS values of the fit.

Owner

  • Name: Alexander Tully
  • Login: ATully98
  • Kind: user

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Tully"
  given-names: "Alexander"
  orcid: "https://orcid.org/0000-0003-4371-0523"
- family-names: "Paterson"
  given-names: "Greig"
  orcid: "https://orcid.org/0000-0002-6864-7420"
title: "Ziggie"
version: 2.0.0
doi: 10.5281/zenodo.12887405
date-released: 2025-03-11
url: "https://github.com/ATully98/Ziggie"

GitHub Events

Total
  • Release event: 4
  • Delete event: 2
  • Push event: 8
  • Pull request event: 2
  • Fork event: 1
  • Create event: 4
Last Year
  • Release event: 4
  • Delete event: 2
  • Push event: 8
  • Pull request event: 2
  • Fork event: 1
  • Create event: 4