-
Notifications
You must be signed in to change notification settings - Fork 39
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
HRRR Availability and Related Metadata #593
Conversation
For relevant GUNWs where weather models are not available here is the new output from the PR (the GUNW is from #584) and the same will be true for #587.
and for S3 buckets
|
@@ -76,7 +77,7 @@ def read_template_file(fname): | |||
params[key] = {} | |||
|
|||
# Parse the user-provided arguments | |||
template = DEFAULT_DICT | |||
template = DEFAULT_DICT.copy() |
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 is an extremely important piece that @jhkennedy help me add. The change ensures tests pass with updates to this PR. The DEFAULT_DICT
is mutable and if its changed during runtime (i.e. during tests) there are mind boggling consequences (might be worth changing default dict to a constructor e.g. a frozen dataclass
so the dict is constant). For now, this resolves this issue with random tests not passing after above changes made. There is a fixture in test/test_checkArgs.py
that loads this dictionary. After adding this copy
, the few tests that were failing that had nothing to do with modified files, passed. It's unclear except in raider.py how this dictionary gets modified during tests. Might also have to do with how pytest and pytest-mock work. Again, for another time.
Remove the decimal reduction of almost equal in HRRR_ztd
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.
if ds_list_filt_0: | ||
ds_out = ds_list_filt_0[0] | ||
coord = 'hybrid' | ||
# I do not think that this coord name will result in successful processing nominally as variables are |
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.
Change this comment to "TODO: check whether isobaricInhPa
workflow will result in successfull processing"
@@ -410,12 +416,18 @@ def calcDelays(iargs=None): | |||
else: | |||
out_filename = w | |||
|
|||
# A dataset was returned by the above | |||
# Dataset returned: Cube e.g. GUNW workflow |
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.
Are these comments needed?
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.
tropo_delay
has the two different return types and I was trying to figure out which of these two options the GUNW was using so I could add a breakpoint - would be nice to have a sign post.
Can change language so long as going back it's clear that GUNW uses a particular branch.
@cmarshak I'm going to go ahead and merge this and will modify the comments in the next PR. |
Fixes
ValueError
Removed
update
option (eitherTrue
orFalse
) from calcGUNW workflow which asks whether the GUNW should be updated or not. In existing code, it was not being used/applied, i.e. previous workflow always updated GUNW. Removed input arguments related from respective functions so that it can be updated later.Added
azimuth-time-grid
interpolation (which is default interpolatin method) are not available when using bucket inputs (i.e. only on the cloud)get_inverse_weights_for_dates
ins1_azimuth_timing.py
calcDelays
including:model_times_used
- the weather models used and interpolated for the delay calculationinterpolation_method
- whethernone
,center_time
, orazimuth_time_grid
methods were used - see description incalcDelayGUNW
scene_center_time
- the center time in which the associated SAR image was acquiredtest_GUNW_dataset_update
.test_HRRR_ztd
test.Changed
test_GUNW.py
more descriptivehybrid
coordinate is obtained regardless how herbie returns datacubes and ensures test_HRRR_ztd passes consistentlytest_HRRR_ztd.py
and call using the python mock up of CLI for better error handling and data mocking.