Comments (3)
FYI, i was able to run Sen2Cor with Docker (i have created my own Sen2Cor docker image) with the output of getSentinel_data()
and run prepSentinel()
. The output of running Sen2Cor on Sentinel-2 L1C imagery + running prepSentinel()
is equivalent to getting L2A imagery with getSentinel_data()
+ running `prepSentinel(). Note that L2A seems to be only available in the servers in Europe, so outside Europe one has to run Sen2Cor to generate L2A imagery. The steps i do to generate L2A imagery from L1C are:
- use
getSentinel_data()
to download L1C imagery - unzip the .zip file to make the
.SAFE
folder available - use the Docker image
atavares\sen2cor
to convert L1C to L2A imagery. An example usage command isdocker run --rm -ti -v {/host/machine/mapped/folder/where/the/.SAFE/folder/is/located}:/data atavares/sen2cor /data/{name_of_SAFE_folder.SAFE}
- zip the generated output L2A
.SAFE
folder - Run
prepSentinel()
on the L2A .zip file
Maybe some improvements to add to prepSentinel()
are:
- add somehow the names of the bands to the output .tif files. The L2A outputs are available with the names below in the original .SAFE data, but with
prepSentinel()
the band names get lost:
band.order <- list("aux" = c("AOT", "CLD", "SCL", "TCI", "WVP", "SNW"), "refl" = c("B01", "B02", "B03", "B04", "B05", "B06", "B07", "B08", "B8A", "B09", "B10", "B11", "B12"))
- add a function input variable
SAFE = true
to avoid step 4 above (create a .zip file)
from getspatialdata.
Good idea, will do so as soon as I find time to continue with the prep
functions. Will include a function that binds to a present sen2cor installation.
from getspatialdata.
In the sen2r package is a Sentinel-2 preprocessing function accessing the Sen2Cor
software.
It also installs the software if not yet on the machine.
https://github.com/ranghetti/sen2r/blob/master/R/sen2cor.R
from getspatialdata.
Related Issues (20)
- Retrieving Incidence angle of records
- getLandsat_records fails to connect to server (HTTP 500) HOT 1
- Missing values are not allowed in subscripted assignments of data frames.
- getLandsat_records - product group, *tmp* error HOT 2
- error with getLandsat_records HOT 4
- Got the error while trying to install package HOT 2
- dir.create(tmp_dir) : invalid 'path' argument HOT 1
- Error in getSentinel_records
- not able to fetch today.. it was working previously
- Error in getting sentinel records HOT 4
- Landsat download problem: error in evaluating the argument 'y' in selecting a method for function 'intersect': non-character object(s) HOT 1
- USGS EROS API 1.4.0 expired - requests invalid HOT 8
- Sentinel order_data() HOT 2
- get_records(): Some products invalid HOT 2
- Missing "summary" column of 'records' for Landsat products HOT 4
- Why does set_archive() add another string to my archive directory?
- view_previews() error
- login_earthdata() HOT 4
- No Sentinel-3 WFR/WRR data
- Problems with downloading Landsat data
Recommend 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.
from getspatialdata.