Description Usage Arguments Details Value Note Author(s)
compute_s2_paths
is an internal function
(to be used within theia2r()
)
which computes the names of the required output image files
(see details).
The function was splitted from theia2r()
because this code
is called twice (and to shorten the main function).
list_sen2r_paths
is a wrapper of sen2r, which runs
sen2r until compute_s2_paths is called, returning the same list.
It is a simple way to call compute_s2_paths with the same arguments
if sen2r.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | compute_s2_paths(pm, s2_list_l1c, s2_list_l2a, paths, list_prods, out_ext,
index_ext, tiles_ext, merged_ext, warped_ext, rgb_ext, sr_masked_ext,
force_tiles = FALSE, check_tmp = TRUE, ignorelist)
list_sen2r_paths(param_list = NULL, gui = NA, preprocess = TRUE,
s2_levels = c("l1c", "l2a"), sel_sensor = c("s2a", "s2b"),
online = TRUE, apihub = NA, downloader = "wget",
overwrite_safe = FALSE, rm_safe = "no", step_atmcorr = "auto",
timewindow = NA, timeperiod = "full", extent = NA,
extent_name = "", s2tiles_selected = NA, s2orbits_selected = NA,
list_prods = c("BOA"), list_indices = NA, index_source = "BOA",
mask_type = NA, max_mask = 100, mask_smooth = 0, mask_buffer = 0,
clip_on_extent = TRUE, extent_as_mask = FALSE, reference_path = NA,
res = NA, res_s2 = "10m", unit = "Meter", proj = NA,
resampling = "near", resampling_scl = "near", outformat = "GTiff",
index_datatype = "Int16", compression = "DEFLATE",
overwrite = FALSE, path_l1c = NA, path_l2a = NA, path_tiles = NA,
path_merged = NA, path_out = NA, path_indices = NA,
path_subdirs = TRUE, thumbnails = TRUE, parallel = TRUE,
use_python = TRUE, tmpdir = NA, rmtmp = TRUE, log = NA)
|
pm |
List of input parameters. |
s2_list_l1c |
Names and paths of input SAFE level-1C products. |
s2_list_l2a |
Names and paths of input SAFE level-2A products. |
paths |
Named vector of required paths. It must contain elements
named |
list_prods |
Character vector with the values of the products to be processed (accepted values: "TOA", "BOA", "SCL", "TCI"). |
out_ext |
Extension (character) of output products. |
index_ext |
Extension (character) of index products. |
tiles_ext |
Extension (character) of tiled products. |
merged_ext |
Extension (character) of merged products. |
warped_ext |
Extension (character) of warped products. |
rgb_ext |
Extension (character) of RGB products. |
sr_masked_ext |
Extension (character) of masked products of SR products. |
force_tiles |
(optional) Logical: passed to safe_shortname (default: FALSE). |
check_tmp |
(optional) Logical: if TRUE (default), temporary files
are also searched when |
ignorelist |
Vector of output files to be ignored. |
param_list |
|
gui |
|
preprocess |
|
s2_levels |
|
sel_sensor |
|
online |
|
apihub |
|
downloader |
|
overwrite_safe |
|
rm_safe |
|
step_atmcorr |
|
timewindow |
|
timeperiod |
|
extent |
|
extent_name |
|
s2tiles_selected |
|
s2orbits_selected |
|
list_indices |
|
index_source |
|
mask_type |
|
max_mask |
|
mask_smooth |
|
mask_buffer |
|
clip_on_extent |
|
extent_as_mask |
|
reference_path |
|
res |
|
res_s2 |
|
unit |
|
proj |
|
resampling |
|
resampling_scl |
|
outformat |
|
index_datatype |
|
compression |
|
overwrite |
|
path_l1c |
|
path_l2a |
|
path_tiles |
|
path_merged |
|
path_out |
|
path_indices |
|
path_subdirs |
|
thumbnails |
|
parallel |
|
use_python |
|
tmpdir |
|
rmtmp |
|
log |
|
compute_s2_paths
is structured in the following way:
Retrieve the file names expected to be present at the
end of the processing chain (suffix _exp
):
tiles_names_
merged_names_
warped_names_
masked_names_
out_names_
(= warped_names_
or subset(warped_names_)+masked_names_
)
indices_names_
Compute the file names expected to be created
(suffixes _req
and _new
, see below)
(this operation is done in reverse order).
Meaning of the suffixes _exp
, _req
and _new
(here and for all the script):
_exp
: full names of the files expected to be present at the
end of the processing chain (already existing or not);
_req
: names of the files required for the next step
(e.g. tiles_names_req are required to perform s2_merge())
_new
: names of the required files not existing yet (expected
to be created).
With overwrite=TRUE
, all these vectors are equal
(e.g. merged_names_exp = merged_names_req = merged_names_new
),
because all is overwritten.
A list, containing the following vectors:
tiles_names_exp
, merged_names_exp
, warped_names_exp
,
masked_names_exp
, out_names_exp
, indices_names_exp
,
indices_names_new
, out_names_req
, out_names_new
,
masked_names_new
, warped_names_req
, warped_names_reqforrgb
,
warped_names_new
, merged_names_req
, merged_names_reqforrgb
,
merged_names_new
, tiles_names_req
, tiles_names_new
,
safe_names_l1c_req
, safe_names_l2a_req
.
License: GPL 3.0
Luigi Ranghetti, phD (2018) ranghetti.l@irea.cnr.it
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.