-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Head metadata .xml makes reference to downloaded tile only. #5
Comments
It would be enough to put the two tile ids as argument of --tiles parameter. The already downloaded one will not be downloaded again, the second one will be downloaded and the product metadata will reflect both. |
As you mentioned, the new granules are downloaded and the already downloaded one remains as it is, but the general metadata .xml is not updated with the newly downloaded tiles and still only refers to the single tile which I had previously downloaded, meaning that only that tile shows when opened in SNAP or any other software. For the S-2 images which are newly downloaded (i.e. no previous tiles of that same image had been downloaded before), the general metadata .xml is created conform to the number of tiles referred to in the argument --tiles, which is great. However, the "updating" seems to be the issue if part of the image was previously downloaded in another instance. I have hundreds of images, and looking through all of them to see which .xml files are incorrect/corrupted would take forever. Looking for a smooth solution, but if there is no such thing I will do it the hard way, can't be that bad :) Thanks in advance |
What if you supply all the tileIDs you need for a product for which you have previously downloaded just a part of its tiles? |
I got the latest version from git, but now get the following error after packaging and assembling as described: Exception in thread "main" java.lang.NullPointerException The command line I use is the following: |
I have a feeling it is not accepting a linux syntax for the output folder: "--out /nas" |
I've traced the error up to ProductDownloader.java, where it seems to have issues reading the "download.properties" file. But it's weird because if the resource read was indeed Null, then an error should be thrown and printed as indicated by the "Catch (IOException e)" line, but instead i get this NullPointerException in "Main". Just trying to give some hints to where the problem could come from based on what I could find online, but still can't seem to find a solution. |
The last commit solved the issue. |
Glad to hear J Cheers. From: wouellette [mailto:notifications@github.com] The last commit solved the issue. — |
Hi,
I will post my question as a new issue, although I had initially replied to a closed post from Safalabolo:
Safalabolo:
"Unfortunately, the processing by SEN2COR of granule downloaded fails, contrary to what happens for the same granule selected from the entire acquisition (zip file) downloaded via a simple download manager."
Your answer: "I will modify the downloader to produce the same structure, with dummy files, so that Sen2Cor will process them."
The head .xml metadata file still doesn't match the same structure as it does would you download it from the esa hub directly. It's fine if you download only one tile and do the sen2cor and subsequent processing on that one and single tile, but if you download one tile, and then some time later another one of that same image, the .SAFE folder will be completed by the new granule(s), but the head metadata .xml file will be replaced by a metadata file referring to that new tile only. What you refer to as the "dummies" should be there to mimic the structure of the scihub data.
I am trying to see what needs be done in your code, but I am unfortunately not too handy in java.
Thanks for the effort in all cases and hope to hear back soon.
The text was updated successfully, but these errors were encountered: