Code Monkey home page Code Monkey logo

phileo-dataset's Introduction

phileo-dataset

There are 3 main preprocessing scripts in this GitHub repository:

1.  preprocess_SAFE2TIF: takes the level 2A S2 files (.SAFE), merges the bands and saves the results as a .tif file.
    In the datafolder this is the step mini_foundation_SAFE --> mini_foundation_tifs

2.  preprocess TIF2NPY: takes the raster files (.tif) and creates numpy arrays of shape (n_patches, tile_size, tile_size, channels)
    In the process cloudy patches will be discarded. If raster labels are available, numpy arrays of the corresponding labels are created as well.
    if dataset = mini_foundation, this is the step mini_foundation_tifs --> mini_foundation_patches_np
    if dataset = downstream, this is the step downstream_dataset_tifs --> downstream_dataset_patches_np

3.  preprocess_raster2labels: create raster labels for terrain, encoded coordinates or Koppen-Geiger climate zones.
    labels for images are created by cropping from a global raster. Global rasters are found under aux_data
    Terrain: aux_data/copdem30.vrt
    Koppen-Geiger: aux_data/beck_kg_map_masked.tif
    encoded coordinates: encoded_coordinates_global.tif
    In the datafolder this is the step aux_data --> **label_kg.tif, **label_coords.tif, **label_terrain.tif

Additional information can be found in dataset_README

phileo-dataset's People

Contributors

nikolaosdionelis2023 avatar luytsa avatar 91097luke avatar

Stargazers

Bertrand Le Saux avatar  avatar Nikolaos Dionelis avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.