Skip to content

Commit

Permalink
SunDec
Browse files Browse the repository at this point in the history
Added Sun declination to Azimuth tool
  • Loading branch information
dpastorgalan committed Jun 25, 2024
1 parent 92a0901 commit c6b0b7d
Show file tree
Hide file tree
Showing 7 changed files with 416 additions and 93 deletions.
9 changes: 5 additions & 4 deletions changelog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,22 +78,23 @@ <h5> Paleomagnetism.org 2 - Changelog </h5>
<div class="card">
<div class="card-header" id="headingEight">
<button class="btn btn-link" data-toggle="collapse" data-target="#collapseEight" aria-expanded="true" aria-controls="collapseEight">
Paleomagnetism.org 2.9.0 - New Major Features and Fixes <small class="text-muted">&nbsp; 2024-06-14</small>
Paleomagnetism.org 2.6.0 - New Tools and Fixes! <small class="text-muted">&nbsp; 2024-06-14</small>
</button>
</div>
<div id="collapseEight" class="collapse show" aria-labelledby="headingEight" data-parent="#accordion">
<div class="card-body">
<ul>
<p> <b> Features </b>
<li> Added Inclinination Only into the Statistics Portal
<li> Added Inclinination Only statistics into the Statistics Portal.
<li> Added Bootstrap Common Mean Direction Test from Heslop et al. (2023)
<li> Still working in new additions, if you are here reading this you are sneaking too deep into my playground
<li> Obviously you want jokes, I have none.
<li> Added a Sun Compass to Core Azimuth converter into the Miscellaneous portal.
<li> Not yet added but working on it: Changes into the Magstrat portal
</ul>
<ul>
<p> <b> Fixes </b>
<li> Fixed Vaes et al., 2023 reference
<li> Fixed <a href="https://apwp-online.org">APWP Online</a> by Vaes et al., 2024 reference
<li> Removing references to the old and deprecated Paleomagnetism.org 1.0
</ul>

</div>
Expand Down
2 changes: 1 addition & 1 deletion js/utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
let __DEBUG__ = false;
let __VERSION__ = "2.SOMETHING";
let __VERSION__ = "2.6";
const __DOI__ = "10.5281/zenodo.6380888";
const RADIANS = Math.PI / 180;
const PROJECTION_TYPE = "AREA";
Expand Down
188 changes: 100 additions & 88 deletions miscellaneous/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<html lang="en">

<head>
<head>

<!-- Required metadata tags -->
<meta charset="UTF-8">
Expand All @@ -20,125 +20,137 @@
<link rel="stylesheet" href="../lib/bootstrap-4.3.1/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="../lib/fontawesome-free-5.7.2-web/css/all.css">

</head>
</head>

<body>
<body>

<!-- Header -->
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
<!-- Header -->
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">

<a class="navbar-brand" href="http://www.paleomagnetism.org">Paleomagnetism<span class="text-danger">.org</span></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
<a class="navbar-brand" href="https://anisotropia.everyware.es">Paleomagnetism<span class="text-danger">.org</span></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault"
aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</button>

<div class="collapse navbar-collapse" id="navbarsExampleDefault">
<div class="collapse navbar-collapse" id="navbarsExampleDefault">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="../interpretation">Interpretation</a>
</li>
<li class="nav-item">
<a class="nav-link" href="../statistics">Statistics</a>
</li>
<li class="nav-item">
<a class="nav-link" href="../geography">Geography</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="../miscellaneous">Miscellaneous</a>
</li>
<li class="nav-item">
<a class="nav-link" href="../references">References</a>
</li>
<li class="nav-item">
<a class="nav-link" href="../team">Team & Contact</a>
</li>
<li class="nav-item">
<a class="nav-link" href="../magic">MagIC Interface</a>
</li>
<li class="nav-item">
<a class="nav-link" href="../interpretation">Interpretation</a>
</li>
<li class="nav-item">
<a class="nav-link" href="../statistics">Statistics</a>
</li>
<li class="nav-item">
<a class="nav-link" href="../geography">Geography</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="../miscellaneous">Miscellaneous</a>
</li>
<li class="nav-item">
<a class="nav-link" href="../references">References</a>
</li>
<li class="nav-item">
<a class="nav-link" href="../team">Team & Contact</a>
</li>
<li class="nav-item">
<a class="nav-link" href="../magic">MagIC Interface</a>
</li>
</ul>

<form class="form-inline my-2 my-lg-0">
<a href="../library" class="btn btn-sm btn-secondary my-2 my-sm-0"><i class="fas fa-book-open"></i><b>&nbsp; Data Library</b></a>
<a href="../library" class="btn btn-sm btn-secondary my-2 my-sm-0"><i class="fas fa-book-open"></i><b>&nbsp;
Data Library</b></a>
</form>

</div>

</nav>
</div>

<!-- Main body -->
<div class="container">
</nav>

<!-- Container for user notifications -->
<div id="notification-container"></div>
<!-- Main body -->
<div class="container">

<div class="alert alert-light" role="alert">
<h5>Paleomagnetism.org 2 - Miscellaneous Portal </h5>
<p> The following set of miscellaneous tools do not fit within one of the portals. Tools that are not yet ported to the new application can be found on the <a href="http://old.paleomagnetism.org/miscellaneous.html">old website</a>.
</div>
<!-- Container for user notifications -->
<div id="notification-container"></div>

<div class="alert alert-light" role="alert">
<h5>Paleomagnetism.org 2 - Miscellaneous Portal </h5>
<p> A toolbox with miscellaneous webapps that do not fit within one of the portals.</a>.
</div>

<div class="card-deck">

<div class="card" style="border: none;">
<img style="" class="card-img-top" src="../resources/images/NTR.png" alt="Card image cap">
<div class="card-body">
<h6 class="card-title"><a href="../ntr/"><i class="fas fa-undo"></i> Net Tectonic Rotation</a></h6>
<hr>
<p class="card-text text-muted text-justify">This tool can restore the orientation of dyke with a geomagnetic reference to its original vertical position.</p>
</div>
</div>

<div class="card" style="border: none;">
<img style="" class="card-img-top" src="../resources/images/parametric.png" alt="Card image cap">
<div class="card-body">
<h6 class="card-title"><a href="../parametric/"><i class="fa fa-dice"></i> Parametric Sampling</a></h6>
<hr>
<p class="card-text text-muted text-justify">This tool can be used to parametrically sample a Fisherian distribution of poles or directions and generate declination, inclination pairs.</p>
</div>
</div>

<div class="card" style="border: none;">
<img style="" class="card-img-top" src="../resources/images/parametric.png" alt="Card image cap">
<div class="card-body">
<h6 class="card-title"><a href="../palpole/"><i class="fa fa-life-ring"></i> Directions & Poles</a></h6>
<hr>
<p class="card-text text-muted text-justify">This tool can be used to convert between magnetic directions and virtual geomagnetic poles at site locations following the GAD model.</p>
</div>
<div class="card-deck">

<div class="card" style="border: none;">
<img style="" class="card-img-top" src="../resources/images/NTR.png" alt="Card image cap">
<div class="card-body">
<h6 class="card-title"><a href="../ntr/"><i class="fas fa-undo"></i> Net Tectonic Rotation</a></h6>
<hr>
<p class="card-text text-muted text-justify">This tool can restore the orientation of dyke with a
geomagnetic reference to its original vertical position.</p>
</div>
</div>

</div>
<div class="card" style="border: none;">
<img style="" class="card-img-top" src="../resources/images/parametric.png" alt="Card image cap">
<div class="card-body">
<h6 class="card-title"><a href="../parametric/"><i class="fa fa-dice"></i> Parametric Sampling</a></h6>
<hr>
<p class="card-text text-muted text-justify">This tool can be used to parametrically sample a Fisherian
distribution of poles or directions and generate declination, inclination pairs.</p>
</div>
</div>

<div class="card" style="border: none;">
<img style="" class="card-img-top" src="../resources/images/oroclinal.png" alt="Card image cap">
<div class="card-body">
<h6 class="card-title"><a href="../oroclinal/"><i class="fa fa-grip-lines-vertical"></i><i class="fa fa-grip-lines"></i><i class="fa fa-grip-lines-vertical"></i> Oroclinal Test</a></h6>
<hr>
<p class="card-text text-muted text-justify">Implementation of a bootstrapped Oroclinal Test using a TLS regression between bedding strike and magnetic declination.</p>
</div>
<div class="card" style="border: none;">
<img style="" class="card-img-top" src="../resources/images/parametric.png" alt="Card image cap">
<div class="card-body">
<h6 class="card-title"><a href="../palpole/"><i class="fa fa-life-ring"></i> Directions & Poles</a></h6>
<hr>
<p class="card-text text-muted text-justify">This tool can be used to convert between magnetic
directions and virtual geomagnetic poles at site locations following the GAD model.</p>
</div>
</div>

<div class="card" style="border: none;">
<img style="" class="card-img-top" src="../resources/images/oroclinal.png" alt="Card image cap">
<div class="card-body">
<h6 class="card-title"><a href="../oroclinal/"><i class="fa fa-grip-lines-vertical"></i><i
class="fa fa-grip-lines"></i><i class="fa fa-grip-lines-vertical"></i> Oroclinal Test</a></h6>
<hr>
<p class="card-text text-muted text-justify">Implementation of a bootstrapped Oroclinal Test using a TLS
regression between bedding strike and magnetic declination.</p>
</div>
</div>

</div>
<div class="card" style="border: none;">
<img style="" class="card-img-top" src="../resources/images/SunDec.png" alt="Card image cap">
<div class="card-body">
<h6 class="card-title"><a href="../suncompass/"><i class="far fa-compass"></i> Sun Compass</a></h6>
<hr>
<p class="card-text text-muted text-justify">A tool to transform sun shadows to core azimuths.</p>
</div>
</div>

</div>
<br>
</div>
<br>
</div>

<footer id="footer-container" class="container text-muted"></footer>
<footer id="footer-container" class="container text-muted"></footer>

<br>
<br>

</body>
</body>

<!-- jQuery slim and bootstrap -->
<script src="../lib/jquery-3.3.1/jquery-3.3.1.slim.min.js"></script>
<script src="../lib/bootstrap-4.3.1/dist/js/bootstrap.bundle.min.js"></script>
<script src="../js/utils.js"></script>
<!-- jQuery slim and bootstrap -->
<script src="../lib/jquery-3.3.1/jquery-3.3.1.slim.min.js"></script>
<script src="../lib/bootstrap-4.3.1/dist/js/bootstrap.bundle.min.js"></script>
<script src="../js/utils.js"></script>

<script>
<script>
document.getElementById("__doi__").innerHTML = "<a href='https://doi.org/" + __DOI__ + "'>" + __DOI__ + "</a>";
document.getElementById("__version__").innerHTML = __VERSION__;
document.getElementById("__year__").innerHTML = new Date().getFullYear();
</script>
</script>


</html>
Binary file added resources/images/SunDec.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions suncompass/example-suncompass.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#1 1994:05:23:16:9 3 35 33 68
#2,2024:06:21:12:00,0,40,0,238
#3 2024:02:19:13:47 8 0 120 37
#4 2021:09:19:09:31 3 -35 58 154
124 changes: 124 additions & 0 deletions suncompass/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
<!DOCTYPE html>

<html lang="en">

<head>

<!-- Required metadata tags -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Paleomagnetism.org 2 - An online environment for paleomagnetic analysis">
<meta name="keywords" content="paleomagnetism, interpretation, zijderveld, pca">

<meta name="author" content="Mathijs Koymans">

<link rel="shortcut icon" type="image/x-icon" href="../resources/images/hades-icon.png"/>

<link rel="stylesheet" href="../css/style.css">

<!-- Bootstrap & Font Awesome CSS -->
<link rel="stylesheet" href="../lib/bootstrap-4.3.1/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="../lib/fontawesome-free-5.7.2-web/css/all.css">

</head>

<body>

<!-- Header -->
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">

<a class="navbar-brand" href="https://anisotropia.everyware.es">Paleomagnetism<span class="text-danger">.org</span></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault"
aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<div class="collapse navbar-collapse" id="navbarsExampleDefault">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="../interpretation">Interpretation</a>
</li>
<li class="nav-item">
<a class="nav-link" href="../statistics">Statistics</a>
</li>
<li class="nav-item">
<a class="nav-link" href="../geography">Geography</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="../miscellaneous">Miscellaneous</a>
</li>
<li class="nav-item">
<a class="nav-link" href="../references">References</a>
</li>
<li class="nav-item">
<a class="nav-link" href="../team">Team & Contact</a>
</li>
<li class="nav-item">
<a class="nav-link" href="../magic">MagIC Interface</a>
</li>
</ul>

<form class="form-inline my-2 my-lg-0">
<a href="../library" class="btn btn-sm btn-secondary my-2 my-sm-0"><i class="fas fa-book-open"></i><b>&nbsp;
Data Library</b></a>
</form>

</div>

</nav>

<!-- Main body -->
<div class="container">

<!-- Container for user notifications -->
<div id="notification-container"></div>

<div class="alert alert-light" role="alert">

<h5>Paleomagnetism.org 2 - Sun Compass Shadow to Azimuth </h5>
<p>When magnetic compasses do not define properly the azimuth of a core (a strongly magnetized rock, being too close to the magnetic poles...)
paleomagnetists use a sun compass. A sun compass is a sun-clock projected over a gnomon. Upload a file and calculate your core azimuths!
Data file must contain commas, spaces or tabulation delimited <code>Name, Date (yyyy:mm:dd:hr:min), Δu*, Site Latitude, Site Longitude, Shadow
angle</Code>. Δu is the time to SUBSTRACT from local time for Universal time. An example input file is <a href="./example-suncompass.txt">here</a>.</p>
</div>

<button class="btn btn-primary" id="load-data-suncompass">Load Data</button>
<br>
<br>

<br><br>
<input style="display: none" id="importFile-suncompass" type="file" size="4" name="file"/>

<button class="btn btn-primary" id="calculate-suncompass">Calculate</button>

<br><br>

<table class='table table-sm text-center table-striped' id="suncompass-table"></table>
<br>

<footer id="footer-container" class="container text-muted"></footer>
<br>
</div>
</body>


<!-- Mathjs -->
<script src="../lib/mathjs-12.0.0/math.js"></script>
<script src="../lib/mathjs-12.0.0/math.min.js"></script>

<!-- jQuery slim and bootstrap -->
<!-- jQuery slim and bootstrap -->
<script src="../lib/jquery-3.3.1/jquery-3.3.1.slim.min.js"></script>
<script src="../lib/bootstrap-4.3.1/dist/js/bootstrap.bundle.min.js"></script>
<script src="../js/utils.js"></script>

<!-- Highcharts -->
<script src="../lib/highcharts-7.0.3/code/highcharts.js"></script>
<script src="../lib/highcharts-7.0.3/code/highcharts-more.js"></script>
<script src="../lib/highcharts-7.0.3/code/modules/exporting.js"></script>
<script src="../lib/highcharts-7.0.3/code/modules/offline-exporting.js"></script>

<script src="../js/highcharts-patch.js"></script>
<script src="./js/index.js"></script>

</html>
Loading

0 comments on commit c6b0b7d

Please sign in to comment.