agrisatref

A module for downscaling high-resolution spatial information and organizing it into an xarray dataset.

https://github.com/aranil/agrisatref

Science Score: 31.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
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.8%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

A module for downscaling high-resolution spatial information and organizing it into an xarray dataset.

Basic Info
  • Host: GitHub
  • Owner: Aranil
  • License: mit
  • Language: Python
  • Default Branch: main
  • Size: 4.14 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme License Citation

README.md

AgriSatRef

A module for downscaling high-resolution spatial information and organizing it into an xarray dataset.

To install the module run

pip install AgriSatRef@git+https://github.com/Aranil/AgriSatRef.git@main to install package

Database Integration with dbflow (SQLite)

For SQLite database functionality, the dbflow package can be installed to manage database connections and execute SQL queries efficiently.

Custom SQL Query Management

Custom Folder: If your database contains geoinformation or requires additional organization, you can create a custom folder within the module to store your SQL queries.
Main Script: SQL queries can alternatively be defined directly in the main script if a separate folder is not needed.

Configuration via INI File

To streamline setup and customization, an INI configuration file can be created. This file allows you to define custom paths, including the location of the custom SQL query folder and other relevant settings.

Paths should be defined relative to the location of this config.ini file. Use forward slashes (/) for cross-platform compatibility.

ini [paths] custom_sql_dir = ./custom/sql custom_db_structure = ./custom/db_structure.py executed_sql_dir = ../_sql_executed The script main.py demonstrates the case example for the RCM Project, covering all steps presented in Figure 1.

As an input, it requires high-resolution classification and a coarse-resolution data grid to be downscaled to.

Figure 1: Reference Dataset Creation Workflow

Reference dataset creation workflow

View Full-Sized Image

Step 4 is currently under development.

STAC Conversion & Zenodo Bulk Upload Status

Certain parts of the scripts for converting data to STAC format and uploading bulk data to Zenodo are still under development. These functionalities are in progress, and some features may not be fully operational. Users should expect potential modifications and improvements in upcoming updates. - iohandler/stacgenerator.py - iohandler/zenodohelper.py

Usage and Example Data

Examples of how to use the module AgriSatRef, along with sample input data, are located in the examples/ folder. The example files are numbered for easy reference.


Folder Structure

Input Folders (Contains Input Data & Intermediate Results)

| Folder | Description | |--------|-------------| | data/Classification/ | Input for Step 1a (Classification of high-resolution data) | | data/Fboundary/ | Input for Step 1a (Field boundary data) | | data/S1_grid/ | Input for Step 1b (Sentinel-1 Grid data) | | data/output_zarr/ | Input for Step 1b (Processed Sentinel-1 Zarr dataset) |

Output Folders

| Folder | Description | |--------|-------------| | ref_dataset/ | Stores the results of Step 2 and 3 |


Notes

  • Ensure all input data is correctly placed in the respective folders before running the module.
  • Intermediate results will be generated inside the data/ directory as processing steps progress.
  • Final outputs are stored in the ref_dataset/ folder.

Contributors: Panagiotis Koutsikos, Christoph Liedel

Citation

If you use this project in your work, please cite it using the information in the CITATION.cff file or via the "Cite this repository" button on GitHub.

Thank you for supporting open science! 🙌

Owner

  • Login: Aranil
  • Kind: user

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use AgriSatRef in your work, please cite it as below."
title: "AgriSatRef"
version: "1.0.0"
authors:
  - family-names: "Arslanova"
    given-names: "Linara"
  - family-names: "Koutsikos"
    given-names: "Panagiotis"
  - family-names: "Liedel"
    given-names: "Christoph"
    orcid: "https://orcid.org/0009-0002-5354-7344"
date-released: 2025-02-05
url: "https://github.com/Aranil/AgriSatRef"
repository-code: "https://github.com/Aranil/AgriSatRef"
license: "MIT"
type: "software"
abstract: "A module for downscaling high-resolution spatial information and organizing it into an xarray dataset."
acknowledgements: >
    This project was carried out in the frame of the project *Radar-Crop-Monitor*, which was financed by the Federal Ministry for Economic Affairs and Climate Action (BMWK), Germany, under the support code FKZ: 50EE1901.

GitHub Events

Total
  • Push event: 12
  • Public event: 1
  • Pull request event: 1
  • Fork event: 1
Last Year
  • Push event: 12
  • Public event: 1
  • Pull request event: 1
  • Fork event: 1

Dependencies

setup.py pypi
  • dbflow *
environment.yml pypi
  • cartopy *
  • fiona *
  • opencv-python *
  • py7zr *
  • python-decouple *
  • rasterio *
  • scikit-image *
  • seaborn *
  • zarr *