Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Refactor hit_l1a.py to use packet_file_to_datasets function #828
Refactor hit_l1a.py to use packet_file_to_datasets function #828
Changes from all commits
112a26c
b5ef12c
cb6cc90
e6befe5
8dd4d18
6f5c63a
98a7852
ac78b25
197132e
86062ca
9a0debd
19fec46
1d77f36
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Should this be in the CDF 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.
The logical source variable is used to grab the HIT L1A instrument level attributes from imap_hit_global_cdf_attrs.yaml when updating the dataset attributes
dataset.attrs = attr_mgr.get_global_attributes(logical_source)
Attributes from imap_hit_global_cdf_attrs.yaml for L1A housekeeping:
Would it help to rename this variable or plug in the value directly into the line that updates the dataset attributes?
dataset.attrs = attr_mgr.get_global_attributes(imap_hit_l1a_hk)
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.
I forget, do the "labels" need to be defined as coordinates as well, or are those variables that are dependent on the coordinates?
i.e. should
adc_channels_label
actually be in thedata_vars
section?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.
I think it needs to be added to the coordinates as well because I initially didn't have it in there but then had to add it. I don't remember why though. I'll get clarification on this.
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.
I checked with Tenzin and she explained that cdflib updates requires this for data with greater than 1 dimensions