-
Notifications
You must be signed in to change notification settings - Fork 14
move the winmsk after thinning section #1729
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
base: develop
Are you sure you want to change the base?
Conversation
|
Shouldn't you want to thin after the time window reduction? What if the user gives it a days worth of data, thins 99% and then clips based on the window? Wouldn't that result in fewer obs than clipping the window and then thinning by 99%? |
|
Thank you, @CoryMartin-NOAA It makes me wonder which way makes more sense.
|
|
The current design is probably cheaper computationally, as it will not require as much memory? |
|
I see, let me try. |
|
I tried several ways and found that thinning is not a big deal.
Thinning inside or outside the for-loop doesn't change the obs amount too much. |
BenjaminRuston
left a comment
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.
thanks @weiwilliam this looks reasonable did not exercise heavily so if more is needed please let me know
|
@BenjaminRuston Thank you. Do you want me to change the use of np.append? |
|
@rajichidamb please have a look,, @CoryMartin-NOAA any objections to moving this forward |
my feeling is to move forward and enter new issue if this is desired, a priority and resources are available to execute removal is to reduce memory usage? hoping |
mer-a-o
left a comment
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.
Changes look good to me. A minor suggestion: It would be helpful to fix the typo here https://github.com/JCSDA-internal/ioda-converters/pull/1729/files#diff-91d7dfb5a3c9fb1ed8371be1c7ee0d8260574ed3aa60c812eaa207e690c82697L374 and explain that thinning is done after time clipping.
| self.obs_time = self.obs_time[mask_thin] | ||
|
|
||
| # Write out data | ||
| # create the final mask for output based on time window |
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.
| # create the final mask for output based on time window | |
| # after the thinning above apply a mask based on time window |
@mer-a-o is this the line you were referring to and did I interpret correctly please correct as needed @weiwilliam nothing else is needed correct
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.
ok, now not confused,,, looks like can commit please @weiwilliam or @mer-a-o do so if this looks like the change desired and we'll move this forward
Description
This PR fixed the bug of inconsistent dimension of
winmskwhen--thinoption is activated.Issue(s) addressed
Resolves #1727
Dependencies
No dependency.
Impact
No impact.
Checklist