Skip to main content

Description

https://travis-ci.org/GeographicaGS/daynight2geojson.svg?branch=master

Get day and night global geometry and dumps to a GeoJSON file.

Builded on top of Matplotlib Basemap Toolkit Library. Geojson and Shapely libraries are used to deal with geometries.

Output Coordinate Reference System (CRS): EPSG 4326

Requirements

See requirements of above libraries (Numpy, Matplotlib, GEOS, etc.).

Installing

If you want to install from pip and you do not have installed Basemap:

pip install daynight2geojson –allow-external basemap –allow-unverified basemap

Usage

Basic usage:

from datetime import datetime
from daynight2geojson import DayNight2Geojson

# Filepath to output GeoJSON
filepath = '/tmp/day_night.geojson'

# input_date = None is for UTC now date
# For others input date: datetime object must be passed
#       datetime(year, month, day, hour, minute)
input_date = datetime(2015, 1, 15, 00, 00)

dn = DayNight2Geojson(filepath, input_date=input_date)
dn.getDayNight()

Test script: - test/daynighttesting.py

Examples:

https://github.com/GeographicaGS/daynight2geojson

About author

Developed by Cayetano Benavent (2015).

GIS Analyst at Geographica.

http://www.geographica.gs/

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Metadata

Release files for daynight2geojson 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for daynight2geojson 0.1
File Size Uploaded Provenance
daynight2geojson-0.1.tar.gz 4.3 kB Without provenance Details

Release files / daynight2geojson-0.1.tar.gz

Download URL daynight2geojson-0.1.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a539ba2923f249b4e7222b175bc1bc0ce16a8421291c85de546854d21dca0bb0
BLAKE2b-256 checksum
How to use checksums
b694143d2b4fe3a526ba7d909af767a9559c0887525fefc4b5b70992fb9caefe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for daynight2geojson 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.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page