MAJA icon indicating copy to clipboard operation
MAJA copied to clipboard

Error of file path in lib_mnt.py (extracting .zip in DTMCreation.py)

Open EkicierNico opened this issue 6 years ago • 2 comments

There is an error on the building of path during extraction of .zip file. Actually, the extraction create a folder with the same name of the .zip, and when you make a merge (line 486 for example), this folder is forgotten. Thus, the script does not find the right file.

You can see below the console return :

ERROR : /mnt/data_netapp/raster/monde/Perou/SRTM/srtm_21_14.tif Archive: /mnt/data_netapp/raster/monde/Perou/SRTM/srtm_21_14.zip creating: /tmp/18MUSp0z_hpbk/tmp063det8b/srtm_21_14/ inflating: /tmp/18MUSp0z_hpbk/tmp063det8b/srtm_21_14/srtm_21_14.tif.aux.xml
inflating: /tmp/18MUSp0z_hpbk/tmp063det8b/srtm_21_14/readme.txt
inflating: /tmp/18MUSp0z_hpbk/tmp063det8b/srtm_21_14/srtm_21_14.hdr
inflating: /tmp/18MUSp0z_hpbk/tmp063det8b/srtm_21_14/srtm_21_14.tfw
inflating: /tmp/18MUSp0z_hpbk/tmp063det8b/srtm_21_14/srtm_21_14.tif
gdalwarp -r cubic -srcnodata -32767 -dstnodata 0 /tmp/18MUSp0z_hpbk/tmp063det8b/srtm_21_14.tif /tmp/18MUSp0z_hpbk/tmp063det8b/srtm_21_14nodata0.tif

ERROR 4: /tmp/18MUSp0z_hpbk/tmp063det8b/srtm_21_14.tif: No such file or directory ERROR 4: /tmp/18MUSp0z_hpbk/tmp063det8b/srtm_21_14.tif: No such file or directory

EkicierNico avatar Jun 04 '19 14:06 EkicierNico

Hi, I guess I have taken too long to reply, but did you keep the command line that generates this error ? So that I can test ? Olivier

olivierhagolle avatar Jul 02 '19 16:07 olivierhagolle

Hi, I use MAJA in a docker so the history is not kept, but the command line was something like this :

python3 start_maja.py -z -f folders.txt -g GIPP_S2AS2B_xxx -l LUT_S2AS2B_xxx -t 18MUS -s 18MUS -d 20180101 -e 20190601

I made a correction on my pull request in lib_mnt.py to manage the error, you can see it.

Thanks a lot Nicolas

EkicierNico avatar Jul 03 '19 07:07 EkicierNico