Skip to main content

Program for Astro Pi 2017/18 - Mission Space Lab - Team Jakopičevca

Description

We would like to research how much of Slovenia (and other countries) is covered with forests. We would compare the results with previous pictures of forestation in order to determine possible deforestation or even expansion of the forests. We would also like to research light pollution with photographing at night. We would use NoIR camera in order to determine different colorization in pictures. The photographs would be analysed later.

How It Works

The program will use Python ephem module to determine location of ISS. If ISS is flying over certain countries, the program will take pictures for a certain number of seconds and save photos in a folder with a location name. Name of the photo is time of the photo. It’s possible that ISS doesn’t fly over certain countries, or if the location calculations with ephem are wrong, program will in any case take photos of Earth, but less often, and save the images in default folder. We will save direction of North from magnetometer due to a later analysis of photographs. Location, sensor data, and time will be saved in the CSV file.

The locations of the photographing and other settings are stored in the config.json file. This file also stores TLE data, so update them before running the program. In the locations section, the coordinates of countries for photographing are saved. The value latitude1 is the latitude of the most north point of the country, the latitude2 is the latitude of the most south point of the country, the longitude1 is the longitude of most west point of the country, and the longitude2 is the longitude of the most east point of the country. The value delay is the number of seconds between each photo of the country. In the default section, information about photographing when the ISS is not above any country are stored. The delay value is the number of seconds between each photo, and the fallbackDelay is the number of seconds between each photo when there is an error in obtaining an ISS location.

Usage

The program must be used on Raspberry Pi. The program is intended for use on ISS, but could be suitable for other environments with some adjustments.

Requirements

The program uses Python 3 and has not been tested on Python 2. It uses the following Python modules:

  1. sense-hat

  2. picamera

  3. ephem

Installation

It is recommended to install program in Python VENV. Python VENV must be created with --system-site-packages argument. However, here are general installation instructions.

Installation from PyPI:

sudo pip3 install jakopicevca2017

Installation from GitHub repository:

git clone https://github.com/filips123/jakopicevca/ --branch 2017 --single-branch
cd jakopicevca
sudo python3 setup.py install

Running

Create config.json file with the following content (fill the missing informations):

{
  "TLE": [
    "ISS (ZARYA)",
    "### Get the latest ISS TLE data ###",
    "### http://www.celestrak.com/NORAD/elements/stations.txt ###"
  ],

  "locations": {
      "### Location Name ###": {
      "latitude1": most-north-point,
      "latitude2": most-south-point,
      "longitude1": most-west-point,
      "longitude2": most-east-point,
      "delay": photographing-delay
      }
  },

  "default": {
    "delay": default-photographing-delay,
    "fallbackDelay": fallback-photographing-delay
  }
}

Save the file and start the program with:

python3 -m jakopicevca2017 path/to/config.json path/to/file.csv path/to/image/folder path/to/file.log

CSV and log files, and image folder will be created automatically.

License

This project is licensed under the GNU GPL License. See the LICENSE file for more details.

Metadata

Release files for jakopicevca2017 1.1.post0

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

Source distribution (sdist)

Source distribution for jakopicevca2017 1.1.post0
File Size Uploaded Provenance
jakopicevca2017-1.1.post0.tar.gz 18.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for jakopicevca2017 1.1.post0
File Interpreter ABI Platform
jakopicevca2017-1.1.post0-py3-none-any.whl Python 3 none any Details

Total release size: 23.6 kB

Release files / jakopicevca2017-1.1.post0.tar.gz

Download URL jakopicevca2017-1.1.post0.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2dbc9d2aa71c26dbf78241dfca935ad9e044ebb36ab7e01eeffcb3b56d0bad7f
BLAKE2b-256 checksum
How to use checksums
fb7b92a3a6083418123436643c5ce62988a1ae23b8ab43a6f0c90029670d9790
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Release files / jakopicevca2017-1.1.post0-py3-none-any.whl

Download URL jakopicevca2017-1.1.post0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a4c13f6e492234c3551ce4927c2f9402361f820e65bc53a371854655789281a9
BLAKE2b-256 checksum
How to use checksums
7c7418f7b7dbab8de719cd4290145f130e2ee7bc38039e14bfab699788772c4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Security for jakopicevca2017 1.1.post0

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

1.1.post0 This release

2 release files 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