-
Notifications
You must be signed in to change notification settings - Fork 128
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
Feature/from netcdf fast #993
Conversation
fix self import
pylint
I haven't reviewed the changes, but I looked at this PR because it sounded like you implemented a faster way of reading NetCDF. It might be worthwhile to consider disobeying the naming scheme and uppercasing "FAST" in the method names (i.e., |
climada/hazard/tc_tracks.py
Outdated
track.time.data, unit="s", origin=reference_time | ||
).astype("datetime64[s]") | ||
# Define variables | ||
max_wind_kn = track.vmax_trks.data * 1.943844 |
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.
Prefer defining a constant somewhere and avoid hardcoded values
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.
Agree, I was trying to avoid the pylint: too many locals 😬
@@ -162,6 +162,7 @@ | |||
"SI": 1005, | |||
"WP": 1005, | |||
"SP": 1004, | |||
"AU": 1004, |
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.
It could be worth mentioning this addition to the changelog for track keeping!
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.
👍 Great work @NicolasColombi !
I suggested some very minor changes to make the code even better !
In addition, I am wondering if you could write a brief description in the tutorial on how this can be used (a few lines to exemplify how to run the FAST model, and use these functions on the folder). Not mandatory though.
Thank you Sam! Good point, I will add it! I am wondering whether it should be a short part of the current tropical cyclone tutorial or if I should create a new one, any thoughts on that ? because with #1003 we will be adding an other feature that probably should appear in some tutorial as well and I am hesitant to make it even longer. So I guess, either a short section in the current tutorial or a more descriptive in a new one ? |
Co-authored-by: Samuel Juhel <[email protected]>
Co-authored-by: Samuel Juhel <[email protected]>
I think a brief one is quite enough, it is mostly to show off your work a bit more :) |
Co-authored-by: Samuel Juhel <[email protected]>
Fine by me, I will add the documentation all at once in #1003 then. |
@spjuhel as discussed, I'll merge. |
Changes proposed in this PR:
This PR adds a method to import tropical cyclones tracks from an open source tc model called FAST.
from_FAST()
: Import model output in netcdf format, restructure it, compute missing central pressure and radious oftest_from_FAST()
PR Author Checklist
develop
)PR Reviewer Checklist