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

New readers from MM satellite group #112

Open
wants to merge 50 commits into
base: develop
Choose a base branch
from

Conversation

rrbuchholz
Copy link

@rrbuchholz rrbuchholz commented May 4, 2023

Adding in:
Tropomi L2 reader
OMPS L3 reader
MOPITT L3 reader
and adding to __init__.py file

* Update raqms.py

tracking problems in colab

* Update __init__.py

* Update __init__.py

* Update __init__.py

* trying to make Kaggle import work

* Update __init__.py

* Update __init__.py

* Update __init__.py

* Update __init__.py

* Update __init__.py

* Update __init__.py

* Update __init__.py

* Update __init__.py

* Update __init__.py

* Update __init__.py

* Update __init__.py

* Update __init__.py

* Update setup.cfg

* Update setup.cfg

* Update __init__.py

* Update raqms.py

adjusting timestamp. Needed for pairing. Unsure if this was a temporary fix sort of thing

* Update raqms.py

* Update raqms.py

* Update raqms.py

* Update omps_nadir.py

* Update omps_nadir.py

* data handling issue fix

* Update omps_nadir.py

* Update omps_nadir.py

* add trimmed file reader for earthcube notebook

* Update raqms.py

* Update raqms.py

* Update raqms.py

* merge fixes

* trying to fix for merge

* Adding MOPITT read

* tropomi no2 reader

* rename

* adding hdf close file

* omps level 3 reader

* Update raqms.py

remove double of _fix_pres

---------

Co-authored-by: mebruckner <48494069+mebruckner@users.noreply.github.com>
Co-authored-by: Maggie Bruckner <mbruckner@raqms-ops.ssec.wisc.edu>
Co-authored-by: Meng Li <mengli@MengM1.local>
@zmoon zmoon self-requested a review May 8, 2023 17:07
@zmoon
Copy link
Member

zmoon commented May 8, 2023

@dwfncar @rrbuchholz do you have/want any tests for any of these?

@zmoon
Copy link
Member

zmoon commented May 8, 2023

3.6 failing due to #114 , but there are also some comments from flake8 to address, and some formatting stuff.
Also looks like we need to add h5py to the docs env.

@rrbuchholz
Copy link
Author

rrbuchholz commented May 10, 2023

I have an example Jupyter notebook for MOPITT in the MELODIES MONET develop_satellite branch that needs to be pulled.
I also think Meng has added a Tropomi example and Maggie has added the OMPS L3 example in MELODIES MONET.

@zmoon
Copy link
Member

zmoon commented May 10, 2023

@rrbuchholz that'll be great to have those MM examples, but I was referring here to smaller test cases for the MONETIO readers to add to the MONETIO test suite. It's ok if we don't have, just thought I would ask.

@zmoon
Copy link
Member

zmoon commented Jun 5, 2023

Copy link
Member

@zmoon zmoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some initial comments.

monetio/sat/_mopitt_l3_mm.py Outdated Show resolved Hide resolved
monetio/sat/_mopitt_l3_mm.py Outdated Show resolved Hide resolved
monetio/sat/_mopitt_l3_mm.py Outdated Show resolved Hide resolved
monetio/sat/_mopitt_l3_mm.py Outdated Show resolved Hide resolved
monetio/sat/_mopitt_l3_mm.py Outdated Show resolved Hide resolved
monetio/sat/_mopitt_l3_mm.py Outdated Show resolved Hide resolved
monetio/sat/_omps_l3_mm.py Outdated Show resolved Hide resolved
monetio/sat/_omps_l3_mm.py Outdated Show resolved Hide resolved
monetio/sat/_omps_l3_mm.py Outdated Show resolved Hide resolved
monetio/sat/_tropomi_l2_no2_mm.py Outdated Show resolved Hide resolved
zmoon and others added 10 commits June 5, 2023 16:00
text formatting differences

Co-authored-by: Zachary Moon <zmoon92@gmail.com>
text formatting using consistent language

Co-authored-by: Zachary Moon <zmoon92@gmail.com>
using consistent language in text descriptions

Co-authored-by: Zachary Moon <zmoon92@gmail.com>
Code semantics

Co-authored-by: Zachary Moon <zmoon92@gmail.com>
Remove development debugging

Co-authored-by: Zachary Moon <zmoon92@gmail.com>
Remove development debugging

Co-authored-by: Zachary Moon <zmoon92@gmail.com>
Comment on lines +68 to +69
ds.attrs["quality_flag"] = varname
ds.attrs["quality_thresh_min"] = variable_dict[varname]["quality_flag_min"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are dataset attrs so they will be overwritten if there is more than one variable in variable_dict.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True. This is an old version of the TROPOMI reader. I add a new dataset attribute 'var_applied' to define the variables list for each quality flag in the new reader

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mlirenzhenmayi I don't see this in the current version of the code.

values[quality_flag <= quality_thresh_min] = np.nan


def open_dataset(fnames, variable_dict, debug=False):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable_dict is necessary for the fn to be useful. Is this something that will always be the same? If so, could include in the code sort of like in the MOPITT one.

and/or document in the docstring the format

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fn always change with the date and vary one by one. It seems that there's no string always the same.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By the way, by "fn" I meant function, not filename. I was wondering if we could set it up so you could pass varnames like the MOPITT one, instead of the variable dict. The variable dict info could be embedded in the module, if it is fixed for a certain variable.

rrbuchholz and others added 4 commits February 22, 2024 13:14
* Update raqms.py

tracking problems in colab

* Update __init__.py

* Update __init__.py

* Update __init__.py

* trying to make Kaggle import work

* Update __init__.py

* Update __init__.py

* Update __init__.py

* Update __init__.py

* Update __init__.py

* Update __init__.py

* Update __init__.py

* Update __init__.py

* Update __init__.py

* Update __init__.py

* Update __init__.py

* Update __init__.py

* Update setup.cfg

* Update setup.cfg

* Update __init__.py

* Update raqms.py

adjusting timestamp. Needed for pairing. Unsure if this was a temporary fix sort of thing

* Update raqms.py

* Update raqms.py

* Update raqms.py

* Update omps_nadir.py

* Update omps_nadir.py

* data handling issue fix

* Update omps_nadir.py

* Update omps_nadir.py

* add trimmed file reader for earthcube notebook

* Update raqms.py

* Update raqms.py

* Update raqms.py

* merge fixes

* trying to fix for merge

* Adding MOPITT read

* tropomi no2 reader

* rename

* adding hdf close file

* omps level 3 reader

* Update raqms.py

remove double of _fix_pres

* personal changes for using wisc wrf-chem output

* Update _mopitt_l3_mm.py

updating to read multiple variables in rather than just 1

* Update _mopitt_l3_mm.py

fixing small error

* Update _mopitt_l3_mm.py

Removing loading of multiple variables in read_mopittdataset to figure out why apriori_col isn't loading right

* Update _mopitt_l3_mm.py

Fix consistency error in naming for apriori_prof, adding  back in initial update for reading in many variables from file in one go

* correct merge conflicts

* add updated version to correct merge conflicts

* fix merge conflicts

* finish merge conflict fixes

* typo

* forgot a comma

* fix merge conflicts by copying newer version of reader in

* updated mopitt reader to add all variables needed for pairing and column calculation

* remove reference to a reader not included

Removed call to a reader that is only in personal branch

---------

Co-authored-by: R Buchholz <rrbuchholz@users.noreply.github.com>
Co-authored-by: Maggie Bruckner <mbruckner@raqms-ops.ssec.wisc.edu>
Co-authored-by: rrbuchholz <buchholz@ucar.edu>
Co-authored-by: Meng Li <mengli@MengM1.local>
@rrbuchholz
Copy link
Author

rrbuchholz commented May 2, 2024

Hi @zmoon! Just wondering what you need from us in the satellite team to get this pull request merged? Would be great to try and have it done before the summer release of MELODIES MONET. (It's been a year since we opened this!)

@zmoon
Copy link
Member

zmoon commented May 3, 2024

Hi @rrbuchholz , very sorry, it's been on my list to get back to @mlirenzhenmayi

@zmoon
Copy link
Member

zmoon commented May 5, 2024

@rrbuchholz and @mlirenzhenmayi I added some basic tests for the other two. I also made a few changes here and there (e.g. adding attributes to variables), maybe you can check that your workflows still work and/or review.

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.

None yet

4 participants