Skip to content

Tools developed as part of the SICE project at GEUS (Geological Survey of Denmark and Greenland)

Notifications You must be signed in to change notification settings

AdrienWehrle/SICE_tools

Repository files navigation

SICE_tools

https://zenodo.org/badge/241573665.svg

Tools developed as part of the SICE project at GEUS (Geological Survey of Denmark and Greenland).

Table of Contents

Development Environment

  • These tools have been developed using a conda virtual environment that can be identically recreated. To this end, create a new environment using ./SICE_tools.yml as below:
    conda env create -f SICE_tools.yml
        

    ResolvePackageNotFound error can be raised. In that case, run conda env export --no-builds > SICE_tools.yml instead.
    Then, run conda activate SICE_tools to activate this new virtual environment.

  • The repository can also be run interactively on Binder, without any download:

    https://mybinder.org/badge_logo.svg

Tools description

extract_esalc.py

extract_arcticdem.py

  • Clips ArcticDEM (downloadable here) derived slopes and slope aspects for a given region based on a mask.
  • Slopes and slope aspects have been computed using the SNAP Slope Calculation operator.
  • Masks have been generated using ./extract_esalc.py.

get_IBOAR.py

  • Computes Effective Solar Zenith Angles (SZA) and Viewing Zenith Angles (VZA) based on s3_tools.
  • The Intrinsic Bottom of Atmosphere Reflectance (IBOAR) is calculated for a given scene and given bands.
  • Uses ArcticDEM derived slopes and slope aspects generated using ./extract_arcticdem.py and Rayleigh corrected Bottom of atmosphere Reflectances (BRR) using the SNAP Rayleigh Correction Processor.
  • This code has been applied to Top of Atmosphere (TOA) reflectances in the SICE toolchain to implement a slope correction for the albedo and the snow grain diameter.

SICE_products_availability.py

  • Checks the availability of the SICE toolchain products using a list or a csv file containing the product names.
  • Option to run the functions using multiprocessing to drastically decrease computation time.
  • Outputs can be visualised through a figure and/or saved in a csv file.

get_correlations.py

  • Computes the correlation between two variables stored in rasters over a given specific area.
  • The default variables are the Snow Grain Diameter (SGD) computed by the SICE toolchain and the percentage of variations between the Bottom Of Atmosphere Reflectance (BOAR) and the Intrinsic Bottom Of Atmosphere Reflectance (IBOAR) determined by ./get_IBOAR.py. This example can be easily modified with other variables and another function to apply.
  • The function is run using multiprocessing to drastically decrease computation time.

sice_tools_gui.py

  • Basis for a simple GUI to play interactively with different tools.
  • A file open dialog, a matplotlib-hosted visualisation conserving projections (using rasterio), a 1D profile creation as well as a file save dialog are currently implemented.

SCDA.py

SCDA.xml

  • Extracts, resamples and reprojects SLSTR bands needed for ./SCDA.py.
  • This file has been merged with S3.xml in the the master branch of the SICE toolchain.

sicepy_multiprocessing.py

  • Runs sice.py, part of the SICE toolchain, using python multiprocessing with different strategies depending on whether the user runs one or multiple years and dates.

S3_wrapper.sh

S3_NRT.sh

  • Wrapper of the SICE toolchain modified to run Near Real-Time (NRT) over the 11 implemented arctic regions (Greenland, Iceland, Svalbard, Novaya Zemlya, Severnaya Zemlya, Frans Josef Land, Northern Arctic Canada, Southern Arctic Canada, Jan Mayen, Norway, Beaufort).
  • Example of a Cron job:
    # m h  dom mon dow   command
    00 12 * * * /bin/bash -c "/path/to/wrapper/S3_NRT.sh" > /path/to/log/log_NRT.txt
        

SICE_processing.py

About

Tools developed as part of the SICE project at GEUS (Geological Survey of Denmark and Greenland)

Resources

Stars

Watchers

Forks

Packages

No packages published