Skip to content

Convert Sentinel-2 imagery to spatial resolution of 10 m

License

Notifications You must be signed in to change notification settings

sjliu68/sen2to10

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sen2to10

Convert Sentinel-2 imagery to spatial resolution of 10 m.

Overview

This repo aims to convert Sentinel-2 imagery to spatial resolution of 10 m for further processing.

Feel free to contact me: liushengjie0756 [AT] gmail.com

How to use

python sen2to10.py --wdir=imageDir --outdir=saveDir

Read the 'jp2' images in 'F:\data' and subdirectories, and then convert them to 10 m GSD and save them in 'F:\data0603'
python sen2to10.py --wdir=F:\data --outdir=F:\data0603

Features

  • You can choose to convert 20 m bands only or both 10 and 20 m bands
  • You can import each function individually to your scripts

Updates

  • Merge images to a single tif

To do

  • Subset function

Issues

Mar 24, 2021: If you encounter "ERROR 1: PROJ: proj_create_from_database: Cannot find proj.db", please downgrade gdal to version 2.4.1. Or try to set the environment variable manually based on discussion on stackoverflow or the gdal repo.

About

Convert Sentinel-2 imagery to spatial resolution of 10 m

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages