package-aigeanpy

Collaborative Python package to find water level changes via satellite imagery

https://github.com/aavilacar/package-aigeanpy

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 (12.5%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Collaborative Python package to find water level changes via satellite imagery

Basic Info
  • Host: GitHub
  • Owner: aavilacar
  • License: gpl-3.0
  • Language: Python
  • Default Branch: main
  • Size: 263 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 2 years ago · Last pushed over 2 years ago
Metadata Files
Readme License Citation

README.md

aigeanpy-Working-Group-15

Overview


The Aigean satallite is an Earth observation satallite used to monitor the region around Lough Ree.

There are 4 primary instruments onboard the Aigean satellite:

  • Lir imager: Has the largest field-of-view (FOV) of the three imagers, but the smallest resolution (20 m per pixel).

  • Manannan imager: Intermediate FOV with an imporved resolution (10 m per pixel).

  • Fand imager: Smallest FOV of the three imagers, but high provides a high resolution (1 m per pixel).

  • Ecne radar: Provides three measurements (turbulence, salinity and algal density) for the 300 deepest areas of the region.

Aigeanpy is a Python library that allows the user to query, download, open, process and visualise Aigean satellite data from the Irish Space Agency webservice archive (https://dokku-app.dokku.arc.ucl.ac.uk/isa-archive/).

Installation Guide

Aigeanpy is written in Python and supports python version 3.9. This section provides a brief overview on how to install the Aigeanpy library.

  1. Download Aigeanpy from the Github repository (https://github.com/UCL-COMP0233-22-23/aigeanpy-Working-Group-15)

  2. Unzip the package

  3. Navigate to the directory containing the Aigeanpy package and run:

pip install .

Tutorials

How to query images for a particular date:


The queryisa function passes in three parameters. The first, startdate, representing from what date you want to get isa-archive results. The second, stop_date, represents the final date you want to recieve isa-archive results. The final parameter, instrument, specifies which instrument you want to query the isa-archive by. All three parameters are optional but they must be a string type.

Both the startdate and the stopdate must be in a YYYY-MM-DD format. The stopdate must be after the startdate and no more than three days later.

An example query_isa use case would be the following:

query_isa("2023-01-16", "2023-01-19", "Lir")

This query will retrieve all Lir imagery data from the isa-archive between the dates of the 16th of January 2023 and 19th of January 2023.

How to download images for a particular date:


The downloadisa function takes in two parameters. The first, filename, is required and must be a string. This parameter specifies the name of the file to be downloaded from the ISA and will also represent the filename of the locally downloaded file. The second, save_dir, is an optional parameter (but must be a string) that specifies which directory the file should be saved in.

An example download_isa use case would be the following:

download_isa("aigean_lir_20230104_145310.asdf", "C:/{foldertosaveto}/")

Where queriedfile represents the name of the file in the database, the instrumentext represents the instrument type to be parsed (asdf, hdf5, zip), and the foldertosaveto represents the path to the locally saved file.

Developer Guide

This page is a guide for those developers who want to contribute to the Aigeanpy library.

  1. Create a personal fork of the project from the Github repository (https://github.com/UCL-COMP0233-22-23/aigeanpy-Working-Group-15).

  2. Clone the fork onto your local machine.

*   If your fork is out-dated pull the up-to-date version to your local repository:

        git pull
  1. Create a new branch and begin implementing your code following the PEP 8 style guide (https://peps.python.org/pep-0008/)

    git checkout -b <new-branch-name>
    
  2. Fully document your code using docstrings following the numpy format (https://numpydoc.readthedocs.io/en/latest/format.html).

  3. Move into the aigeanpy directory and run pytest in the terminal.

    pytest
    
  4. Push your branch to your fork on Github. When creating commit messages please follow the style guide (https://medium.com/swlh/writing-better-commit-messages-9b0b6ff60c67).

  5. Create a new pull request targeting the master branch of the aigeanpy library.

*   Please link issues, use relevant tags and use an appropriate title that summarises your changes concisely.

Owner

  • Name: Alejandro Avila Carrión
  • Login: aavilacar
  • Kind: user

Analyst at SDG Group Spain

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: Aigeanpy
message: >-
  If you use this software, please cite it using the
  metadata from this file.
type: software
authors:
  - given-names: Longwen
    family-names: Hu
    email: longwen.hu.22@ucl.ac.uk
  - given-names: Qi
    family-names: Chen
    email: qi.chen.22@ucl.ac.uk
  - given-names: Weizhi
    family-names: Huang
    email: weizhi.huang.22@ucl.ac.uk
  - given-names: Joseph
    family-names: McQuade
    email: joseph.mcquade.22@ucl.ac.uk
  - given-names: Alejandro
    family-names: Avila Carrión
    email: alejandro.carrion.19@ucl.ac.uk
abstract: >-
  Aigeanpy is a Python library that allows the user to
  query, download, open, process and visualise Aigean
  satellite data from the Irish Space Agency webservice
  archive.
license: GNU GENERAL PUBLIC LICENSE
version: '0.1.0'
dependencies:
  alabaster==0.7.13
  asdf==2.14.3
  asdf-standard==1.0.3
  asdf-transform-schemas==0.3.0
  asdf-unit-schemas==0.1.0
  attrs==22.2.0
  Babel==2.11.0
  certifi==2022.12.7
  charset-normalizer==3.0.1
  colorama==0.4.6
  contourpy==1.0.7
  cycler==0.11.0
  docutils==0.17.1
  exceptiongroup==1.1.0
  fonttools==4.38.0
  h5py==3.7.0
  idna==3.4
  imageio==2.24.0
  imagesize==1.4.1
  importlib-metadata==6.0.0
  iniconfig==2.0.0
  Jinja2==3.1.2
  jmespath==1.0.1
  jsonschema==4.17.3
  kiwisolver==1.4.4
  MarkupSafe==2.1.1
  matplotlib==3.6.3
  networkx==3.0
  numpy==1.24.1
  packaging==23.0
  Pillow==9.4.0
  pluggy==1.0.0
  Pygments==2.14.0
  pyparsing==3.0.9
  pyrsistent==0.19.3
  pytest==7.2.1
  python-dateutil==2.8.2
  pytz==2022.7.1
  PyWavelets==1.4.1
  PyYAML==6.0
  requests==2.28.2
  scikit-image==0.19.3
  scipy==1.10.0
  semantic-version==2.10.0
  six==1.16.0
  snowballstemmer==2.2.0
  Sphinx==5.3.0
  sphinx-rtd-theme==1.1.1
  sphinxcontrib-devhelp==1.0.2
  sphinxcontrib-htmlhelp==2.0.0
  sphinxcontrib-jsmath==1.0.1
  sphinxcontrib-qthelp==1.0.3
  sphinxcontrib-serializinghtml==1.1.5
  sphinxcontrib.applehelp==1.0.3
  tifffile==2022.10.10
  tomli==2.0.1
  urllib3==1.26.14
  zipp==3.11.0

GitHub Events

Total
Last Year

Dependencies

.github/workflows/pytest.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite