-
Notifications
You must be signed in to change notification settings - Fork 164
feat: Crocolake observation converter #974
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
Conversation
Co-authored-by: Marlena Smith <[email protected]>
Need to add Crocolake to this doc page - https://github.com/NCAR/DART/tree/crocolake/observations/obs_converters Side note, we have two separate places in the docs where we list the available converters |
Nice catch Marlee, side note: we write this same side note a lot. |
I think we should add some information about the arguments that can be passed into ObsSequence either to the examples or the CrocoLake doc page, so our users don't have to go into the source code to get that information This is the info in the source code: DART/observations/obs_converters/CrocoLake/convert_crocolake_obs.py Lines 27 to 35 in 3d8e7e1
|
DART/observations/obs_converters/CrocoLake/convert_crocolake_obs.py Lines 97 to 106 in 3d8e7e1
There are several more variables in the CrocoLake docs: I'm guessing these are the only obs types that DART can work with? |
Hi @mjs2369 -- correct, that's the overlap that I found between DART's obs types and CrocoLake's variables. |
fixed in ff0758e |
added in d667a00 |
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.
DART/observations/obs_converters/CrocoLake/convert_crocolake_obs.py
Lines 155 to 156 in 3d8e7e1
# Convert lat and lon to radians | |
ddf = ddf.rename(columns={"LONGITUDE": "LONGITUDE_DEG", "LATITUDE": "LATITUDE_DEG"}) |
Move this comment down to where the lon and lat are actually converted to radians (lines 167-8)
DART/observations/obs_converters/CrocoLake/convert_crocolake_obs.py
Lines 167 to 168 in 3d8e7e1
ddf['LONGITUDE'] = np.deg2rad(ddf['LONGITUDE_DEG']) | |
ddf['LATITUDE'] = np.deg2rad(ddf['LATITUDE_DEG']) |
Also doesn't line 156 change the name of this column from LONGITUDE to LONGITUDE_DEG (and the same for lat), so LONGITUDE and LATITUDE no longer exists as columns in the dataframe? Or does it create a duplicate columns in the dataframe with the new names?
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.
DART/observations/obs_converters/CrocoLake/convert_crocolake_obs.py
Lines 175 to 176 in 3d8e7e1
# Convert pressure from dbar to Pascals | |
#ddf['PRES'] = ddf['PRES']*1e4 |
remove if not actually needed?
e639add
to
d667a00
Compare
removed commented out conversion of pressure
removed in 2b7e6dd |
Moved comment in |
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.
Ready to merge
Description:
This is an observation converter for CrocoLake part of the CROCODILE project, contributed by Enrico Milanese, Woods Hole Oceanographic Institution (WHOI)
This converter has been on the CROCODILE-CESM/DART fork. It takes the parquet format data of CrocoLake and converts to observation sequence format.
Note the commits are flattened into one commit here, because we have a bunch of MOM6 assimilate.sh for crocodile that are not ready for DART. If you want more detail see #603 original closed pull request or #920 for details on cesm-hybrid issue, but this pull request is only concerned with the CrocoLake converter.
Fixes issue
Fixes #884
Types of changes
Documentation changes needed?
Tests
Please describe any tests you ran to verify your changes.
Run the converter on Derecho, ingest with obs_sequence_tool
Checklist for merging
Checklist for release
Testing Datasets