=========
Aliquot mogrifier utilizing the BLM PLSS method of quartering/halving sections.
Purpose
-------
Given a quad of point pairs (long, lat) return a quad of point pairs for a
specific aliquot string.
This code should work on any quad in any orientation as long as north, south,
east, west can be defined appropriately.
This code uses specific points rather than a bounding box set to 0 degrees.
Example
-------
Aliquot string: **E2SW4SW4**
Aliquot meaning: **The East half of the South West quarter of the South West quarter**
This would mean that the quad would be split up into a South West square (SW4)
and then another South West square (SW4) and then the East half of that square
would be returned.
<pre>
4,0 4,4
+-----------------------+-----------------------+
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| S-W | |
| \ / | |
+-----------+-----------+-----------------------+
| | | |
| | | |
| | | |
| S-W | | |
| \ / | | |
+-----*******-----------+-----------------------+
| * * | |
| * * | |
| * E * | |
| * * | |
| * * | |
+-----*******-----------+-----------------------+
0,0 0,4
</pre>
Usage
-----
Check out 'test.py'. It represents the above example and outputs the following.
Code:
```python
from aliquoter import aliquot, Quad, Point
print aliquot(
Quad(
nw=Point(lat=4, long=0),
sw=Point(lat=0, long=0),
ne=Point(lat=4, long=4),
se=Point(lat=0, long=4),
),
['SW', 'SW', 'E']
)
```
In the above code the list of aliquot quarters/halves is reversed to make
processing more straight forward.
Result:
```
Quad(
nw=Point(lat=1.0, long=0.5),
sw=Point(lat=0.0, long=0.5),
ne=Point(lat=1.0, long=1.0),
se=Point(lat=0.0, long=1.0)
)
```
Metadata
Release files for aliquoter 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aliquoter-0.0.1.tar.gz | 2.5 kB | Without provenance | Details for aliquoter-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aliquoter-0.0.1.linux-x86_64.exe | Details for aliquoter-0.0.1.linux-x86_64.exe |
Total release size: 69.4 kB
Release files / aliquoter-0.0.1.tar.gz
| Download URL | aliquoter-0.0.1.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b14d31216e3c6ce6338681ef273df8ddacb776ad83900390f832e5a488bb1e32
|
|
BLAKE2b-256 checksum How to use checksums |
16faa77953fb4105492ca8e10b9d50f75a38e1b4026653dd96ed2a685f0c7983
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / aliquoter-0.0.1.linux-x86_64.exe
| Download URL | aliquoter-0.0.1.linux-x86_64.exe |
|---|---|
| Size | 66.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7fecdc07d0cdf366c442cc726467cc073e2ca8ab4a4a28fc6d7150f171841c8e
|
|
BLAKE2b-256 checksum How to use checksums |
967ba004ac94a8a4cfe83e0fe1e044d49728ceed0d042786dc3da1f58ccefed7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for aliquoter 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.