Hi,
I added previously processed L2 to a new site, expecting they would not be downloaded and processed again. Unfortunately, that does not seem to be the case:
sudo -u postgres psql sen2agri -c "select product_name, status_id from downloader_history where product_name in(select REPLACE(name, 'MSIL2A', 'MSIL1C') as name from product);"
could not change directory to "/home/centos": Permission denied
product_name | status_id
-------------------------------------------------------------------+-----------
S2B_MSIL1C_20170709T075609_N0205_R035_T36NYM_20170709T081038.SAFE | 3
S2B_MSIL1C_20170709T075609_N0205_R035_T36NXK_20170709T081038.SAFE | 2
S2B_MSIL1C_20170709T075609_N0205_R035_T36NWK_20170709T081038.SAFE | 1
(3 rows)
Similarly for Landsat-8:
sudo -u postgres psql sen2agri -c "select product_name, status_id from downloader_history where product_name in(select REPLACE(name, 'L2A', 'L1TP') as name from product);"
could not change directory to "/home/centos": Permission denied
product_name | status_id
------------------------------------------+-----------
LC08_L1TP_171058_20161011_20170320_01_T1 | 1
The already processed products are properly inserted in the products
table to the respective site.
Is there any way to add these products to the downloader_history
table with status_id
5?
Also, is it possible to add already downloaded files to the downloader_history
table with status_id
2 ?
Many thanks.