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

ENH: Updated Glue Files - Encoding/Time offset corrections #38

Merged
merged 4 commits into from
Feb 22, 2024

Conversation

jrobrien91
Copy link
Collaborator

Currently, the .a1 xprecipradar datastream has mismatched netcdf encodings for missing value codes (i.e. the encoding on the file does not match the MVC used within the arrays and does not match our CMAC product DOD). Additionally, the .a1 datastream uses integer times, which results in ~36-37 azimuths angles (depending on elevation scan) (and thus roughly 784k gates) containing the same exact time.

To conform to ARM standards, two functions are written to correct and create a .b1 level "glue file" which corrects the encodings and adds an offset (in nanoseconds) to each specific gate within the merged volume.

To overcome writing to existing files, updated xarray datasets are first written to a temporary directory than moved to the data directory for the given month. This has been tested within this notebook to work with the Dask cluster on Cumulus.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@jrobrien91 jrobrien91 merged commit 310cecf into ARM-Development:main Feb 22, 2024
2 checks passed
@jrobrien91 jrobrien91 deleted the glue_fix branch February 23, 2024 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant