Skip to content
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

ifm_sentinal.py always picks the older file as reference, and newer file as secondary. #269

Open
cirrusasf opened this issue Jun 11, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@cirrusasf
Copy link
Contributor

Describe the bug
A clear and concise description of what the bug is.
I also found that even if we choose the file with later date time as the reference in the pair of files, the ifm_sentinal.py always picks the file with earlier date time as reference one, I suppose ifm-sentinal.py should produce the ifm with reference file is later than the secondary file.

For example,
Case1 (forward):
ref=S1A_IW_SLC__1SSV_20160112T205113_20160112T205140_009466_00DBA8_C430
sec=S1A_IW_SLC__1SSV_20160628T205108_20160628T205136_011916_01259C_EE11
output:S1AA_20160112T205113_20160628T205108_VVP168_INT80_G_ueF_5027.zip
Slant range near: 800208.3153
Slant range center: 879343.5365
Slant range far: 958478.7576
Case2 (backward):
Ref=S1A_IW_SLC__1SSV_20160628T205108_20160628T205136_011916_01259C_EE11
sec=S1A_IW_SLC__1SSV_20160112T205113_20160112T205140_009466_00DBA8_C430
Output: S1AA_20160112T205113_20160628T205108_VVP168_INT80_G_ueF_7E78.zip
Slant range near: 800208.3153
Slant range center: 879343.5365
Slant range far: 958478.7576

Actually, the metadata.txt in two cases are the same. Furthermore, I found in both cases, no matter if you reverse the ref and sec, ifm_snetinal.py always produces the same result which always uses a file with earlier time as a ref file.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
Add any other context about the problem here.

@cirrusasf cirrusasf added the bug Something isn't working label Jun 11, 2021
@jhkennedy
Copy link
Contributor

jhkennedy commented Jun 11, 2021

I'm not sure this is a bug -- we intentionally order products this way as your stack needs to be consistently processed in time (you can go earlier first always, or latest first always, but not a mix).

Do you want an option to select which direction? Or do you want us to invert the ordering?

@cirrusasf
Copy link
Contributor Author

cirrusasf commented Jun 11, 2021 via email

@jhkennedy
Copy link
Contributor

That means we can not choose the later date time file as the
ref in the ifm_sentinal.py.

Yes. I'm saying that's intentional. Do you need oldest first, and if so why? Do you want ordering as an option, or the enforced ordering inverted?

@cirrusasf
Copy link
Contributor Author

cirrusasf commented Jun 11, 2021 via email

@jhkennedy jhkennedy added enhancement New feature or request and removed bug Something isn't working labels Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants