L4A results errors

Hi Sen4CAP team,

I have run a custom job for L4A and the results are error. Here are the screen capture and the error messages.

Error from ProductFormatter - there is no error output

Error from S4CCropType -

Traceback (most recent call last):
File “/usr/bin/crop-type-parcels.py”, line 1406, in
main()
File “/usr/bin/crop-type-parcels.py”, line 1402, in main
process_radar(config, conn, pool)
File “/usr/bin/crop-type-parcels.py”, line 1125, in process_radar
geom.Transform(transform)
File “/usr/lib64/python2.7/site-packages/osgeo/ogr.py”, line 4882, in Transform
return _ogr.Geometry_Transform(self, *args)
TypeError: in method ‘Geometry_Transform’, argument 2 of type ‘OSRCoordinateTransformationShadow *’
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
Traceback (most recent call last):
File “/usr/bin/extract-parcels.py”, line 212, in
main()
File “/usr/bin/extract-parcels.py”, line 200, in main
extract_parcels(config, args, lpis_table, lut_table, None, None)
File “/usr/bin/extract-parcels.py”, line 113, in extract_parcels
cursor.execute(query)
psycopg2.ProgrammingError: JOIN/USING types text and integer cannot be matched

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 ──
:heavy_check_mark: tibble 3.0.3 :heavy_check_mark: stringr 1.4.0
:heavy_check_mark: tidyr 1.1.0 :heavy_check_mark: forcats 0.5.0
:heavy_check_mark: purrr 0.3.4
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
:heavy_multiplication_x: dplyr::filter() masks stats::filter()
:heavy_multiplication_x: dplyr::lag() masks stats::lag()
:heavy_multiplication_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: ‘/mnt/archive/orchestrator_temp/s4c_l4a/639/2373-s4c-crop-type/parcels.csv’ does not exist.
Execution halted


Error from export-product-launcher -

ERROR 1: ERROR: JOIN/USING types text and integer cannot be matched

Traceback (most recent call last):
File “/usr/bin/export-product.py”, line 405, in
sys.exit(main())
File “/usr/bin/export-product.py”, line 401, in main
shutil.move(f, dest)
File “/usr/lib64/python2.7/shutil.py”, line 301, in move
copy2(src, real_dst)
File “/usr/lib64/python2.7/shutil.py”, line 130, in copy2
copyfile(src, dst)
File “/usr/lib64/python2.7/shutil.py”, line 82, in copyfile
with open(src, ‘rb’) as fsrc:
IOError: [Errno 2] No such file or directory: ‘/tmp/tmpDH7vR6/CropType.csv’
Traceback (most recent call last):
File “/usr/bin/export-product-launcher.py”, line 225, in
sys.exit(main())
File “/usr/bin/export-product-launcher.py”, line 212, in main
run_export_product_cmd(config.ogr2ogr_path, prdId, vectDataPath)
File “/usr/bin/export-product-launcher.py”, line 147, in run_export_product_cmd
os.removedirs(temp_directory)
File “/usr/lib64/python2.7/os.py”, line 170, in removedirs
rmdir(name)
OSError: [Errno 39] Directory not empty: ‘/tmp/tmpDH7vR6’


What are the causes? How to fix them?

Regards,
Ant

Hello,

The error is due to the fact that the crop code from the parcels shp is in text format, while the Ori_crop field from the LUT is recognized as integer by the system. You should transform the crop code from the parcels shp in integer before importing again the parcels declaration in the system. Let me know if it solves the problem.

Best regards,

Philippe

@Philippe_Malcorps

Thank you for your reply. Currently we see Predicted Crop Type. There are some changes including the one you mentioned here. :slight_smile: We will wait for a while and see how things are going.

Regards,
Ant