-
Notifications
You must be signed in to change notification settings - Fork 3
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
Update metadata with frame_id
, version
and temporal_baseline_days
#102
Conversation
frame_id
and Secondary datetimeframe_id
and temporal_baseline_days
@cmarshak Do you use the interferogram extents for the start/stop time or the derive it based of the SLC input lists. |
I was not as precise as I could have been start/stop time. Literally just updated so it is based on the earliest start time from all SLCs in reference pass using the metadata collected from ASF stored during workflow - should be identical to SLCs.
I think everything is in UTC so it's not an issue. That said, we can't process datelines because of Issue #78 (i.e. this comment with the relevant ISCE2 ticket). |
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
|
||
# We want the nearest day (dt.days takes a floor) so we use total seconds and then round | ||
temporal_baseline_seconds = (ref_start_time - sec_start_time).total_seconds() | ||
temporal_baseline_days = round(temporal_baseline_seconds / 60 / 60 / 24) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Providing some context for @dbekaert important comments about obtaining an accurate temporal baseline in days. We expect this temporal baseline in days to be a multiple of 6 based on S1's repeat pass frequency.
Suppose the temporal baseline (in days) is for example 5.999999. If delta
is a datetime.timedelta
object, then delta.days
will be 5 (not 6). Therefore, we want to do the rounding using total_seconds()
. This resolves David's concerns.
Here is an example:
import datetime
d0 = datetime.datetime(2021, 1, 1, 0, 0, 0)
d1 = datetime.datetime(2021, 1, 6, 23, 59, 59)
(d1 - d0).days
Will be 5
.
To be clear, this concern can occur anywhere and anytime, not just at pairs in which acquisitions are close to midnight in UTC.
…change frame_id to frame_number in metadata
@dbekaert - I updated the dataset version for the coming processing campaign to |
@asjohnston-asf - ready for review and to coordinate on ingest. |
@asjohnston-asf and @jhkennedy - should we also add
Let me know your thoughts. We already have |
I'd rather not duplicate the temporal information as an additional attribute when it's already available via the standard temporal fields in CMR. CMR is designed around searches by collection, temporal, and spatial searches first, and attribute searches second. We set the temporal values in CMR based on what you send in the finds all scenes with reference scene |
@asjohnston-asf and @jhkennedy - let's coordinate on next steps. |
"orbit_direction": ref_props['flightDirection'].lower(), | ||
"sensing_start": ref_start_time_formatted, | ||
"sensing_stop": ref_stop_time_formatted, | ||
"version": DATASET_VERSION, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are also adding this to the metadata.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
frame_id
and temporal_baseline_days
frame_id
, version
and temporal_baseline_days
@cmarshak Can you provide us an example command to run to get an output product with the latest and greatest meta.json file with the new attributes? @cirrusasf is running |
I am not sure... The I am checking the version with this test here: https://github.com/ACCESS-Cloud-Based-InSAR/DockerizedTopsApp/blob/frame-metadata/tests/test_packaging.py#L1-L16 I just ran the following from this branch too:
Is there a chance you are on |
Or am I misunderstanding the question entirely? |
Hi Charlie,
My fault. I was on the dev branch. I switched to the frame-metadata branch
now. Thank you for help.
Jiang
…On Thu, Apr 13, 2023 at 3:13 PM Charlie Marshak ***@***.***> wrote:
Or am I misunderstanding the question entirely?
—
Reply to this email directly, view it on GitHub
<#102 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO3CPWGMBQY5UDQ26Y7FJU3XBCCANANCNFSM6AAAAAAU24OOPQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
@cirrusasf @asjohnston-asf - I am going to merge this branch and run a single job using the operational user (should be published to UAT venue). We can hopefully discuss in the coming weeks how to finalize the metadata changes in person. Super appreciate your help on this. |
Updates CMR metadata to include:
Also, resolves #69 as we only use topsApp to process VV SLC (as noted in the ticket).