-
Notifications
You must be signed in to change notification settings - Fork 16
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
Initial CoDICE L1A Processing Algorithm #288
Initial CoDICE L1A Processing Algorithm #288
Conversation
…d some docstrings as well
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.
Nice, this looks great
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.
This looks great! I will have to re-base but I think all of your updates and naming conventions are great!
…d some docstrings as well
2b2ecf4
to
049e293
Compare
…ng into initial-codice-l1a
@GFMoraga Yeah, this will likely cause you some merge conflicts, but I can help resolve those since they will be my fault! |
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.
Nice, looks great! Just minor comments from me, but would prefer the test cleanup one to be added if possible.
I also personally like this structure better, I find the multiple nested modules a little harder to follow. If you're working on naming I might even suggest dropping the codice
from the filenames within your codice
module since that is repetitive. Something like this with a flatter instrument structure. (But, that is just my personal preference, no need to take it if you disagree)
codice/
cdf_attrs.py
level0.py
level1a.py
decommutation.py
utils.py
validmin=0, | ||
validmax=GlobalConstants.INT_MAXVAL, | ||
format="I12", |
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.
Out of curiosity, do we care that the maxval is a 64-bit signed integer, but we have only 12 digits of representation in the format?
INT_MAXVAL = np.iinfo(np.int64).max |
…st tmp_path for temporary directory, and added some logging
I can't for the life of me figure out why the doc build is failing. There are tons of WARNINGs (which is its own problem) but I don't think those should cause the entire build to fail. I don't see any actual ERRORs. |
I think warnings do cause the check to fail. You can try updating the config.py file like what I have in my currently open glows PR, and I think you will also need a |
Thanks @maxinelasp! |
…need to specify them when building docs; made some other minor doc changes
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.
Nice work!
…rsion, as that will be done in l1b
…itial-codice-l1a Initial CoDICE L1A Processing Algorithm
Change Summary
Overview
This PR includes an initial pass at CoDICE L1A processing. Currently it only supports/works on CoDICE housekeeping packets, and does not yet do any analog to EU conversions (that work will be in a future PR and is currently being done by @GFMoraga in #274). The code is heavily inspired by @tech3371's SWE processing code.
The PR also includes a re-organization of the CoDICE code as a whole. Basically I moved all processing code to be directly under the
codice/
directory instead of having separatel0/
andl1a/
directories. This organization makes most sense to me in my head, but I'm definitely open to other ideas. I also tried renaming some files so that they are a bit less repetitive.Lastly, I added/updated some module and function docstrings, and updated the CoDICE API reference docs.
New Dependencies
None
New Files
/cdf/utils.py
file_start_date
for CoDICE files/codice/__init__.py
/codice/codice_cdf_attrs.py
/codice/codice_l1.py
/codice/tests/test_codice_l1a.py
Deleted Files
None
Updated Files
/docs/source/reference/codice.rst
/codice/codice_l0.py
imap_processing/codice/l0/decom_codice.py
/codice/utils/decompress.py
imap_processing/codice/l0/decompress_codice.py
/codice/tests/test_codice_l0.py
/codice/utils/codice_utils.py
Testing
I added unit tests for L1A processing, but currently only tests on housekeeping packets.