Hi,s
I am trying to run a custom job for L4A Crop type. I have the L3B products and they seem OK.
I need help with the following error, at the “S4CCropType” step. I am using version 2.0 of sen4cap.
Usage: merge-statistics mean.csv dev.csv mean-1.csv dev-1.csv count-1.csv […]
cut: sar-merged/mean-sar.csv: No such file or directory
cut: sar-merged/mean-sar.csv: No such file or directory
cut: sar-merged/dev-sar.csv: No such file or directory
cut: sar-merged/dev-sar.csv: No such file or directory
Attaching package: ‘arrow’
The following object is masked from ‘package:utils’:
timestamp
Attaching package: ‘dplyr’
The following objects are masked from ‘package:stats’:
filter, lag
The following objects are masked from ‘package:base’:
intersect, setdiff, setequal, union
Loading required package: lattice
Loading required package: ggplot2
Loading required package: proto
Warning message:
no DISPLAY variable so Tk is not available
– Attaching packages --------------------------------------- tidyverse 1.3.0 –
v tibble 3.0.6 v stringr 1.4.0
v tidyr 1.1.2 v forcats 0.5.1
v purrr 0.3.4
– Conflicts ------------------------------------------ tidyverse_conflicts() –
x dplyr::filter() masks stats::filter()
x dplyr::lag() masks stats::lag()
x purrr::lift() masks caret::lift()
Attaching package: ‘data.table’
The following object is masked from ‘package:purrr’:
transpose
The following objects are masked from ‘package:dplyr’:
between, first, last
Error: size
must be less or equal than 537 (size of data), set replace
= TRUE to use sampling with replacement.
Backtrace:
x
- ±data_strategy2 %>% group_by(CTnumL4A) %>% sample_n(smotesize)
- ±dplyr::sample_n(., smotesize)
- ±dplyr:::sample_n.data.frame(., smotesize)
- | ±dplyr::slice(…)
- | -dplyr:::slice.data.frame(…)
- | -dplyr:::slice_rows(.data, …)
- | -mask$eval_all(quo)
- ±rlang:::sample.int(…)
- ±base::sample.int(…)
- -dplyr:::check_size(smotesize, n(), replace = replace)
- -dplyr:::bad_args(…)
-
\-dplyr:::glubort(fmt_args(args), ..., .envir = .envir)
Execution halted
Traceback (most recent call last):
File “/usr/bin/crop-type-wrapper.py”, line 364, in
main()
File “/usr/bin/crop-type-wrapper.py”, line 328, in main
run_command(command)
File “/usr/bin/crop-type-wrapper.py”, line 24, in run_command
raise RuntimeError(“Command {}
failed with exit code {}”.format(cmd_line, result))
RuntimeError: Command crop_type.R /mnt/archive/orchestrator_temp/s4c_l4a/2595/21404-product-formatter// 0 /mnt/archive/orchestrator_temp/s4c_l4a/2595/21403-s4c-crop-type/features/optical-features.ipc /mnt/archive/orchestrator_temp/s4c_l4a/2595/21403-s4c-crop-type/features/optical-features-re.ipc 0 /mnt/archive/orchestrator_temp/s4c_l4a/2595/21402-s4c-l4a-extract-parcels/parcels.csv CTnumL4A 1234 Area_meters 3 1 30 10 1500 500 0.25 0.75 Smote 1000 5 300 10 /mnt/archive/orchestrator_temp/s4c_l4a/2595/21402-s4c-l4a-extract-parcels/lut.csv
failed with exit code 1
Thank you!
Stefan