There are 3 main preprocessing scripts
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
More info on the final dataset can be found in the dataset_readme
phileo-dataset's Introduction
phileo-dataset's People
Forkers
esa-philabRecommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.