-
Notifications
You must be signed in to change notification settings - Fork 16
1121 subsetretrieve observations add gtsmip c3s locations and data #1153
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
1121 subsetretrieve observations add gtsmip c3s locations and data #1153
Conversation
Subsetting the data is implemented, but saving data for individual stations is not yet implemented.
…c3s-locations-and-data
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 for this valuable contribution, including the very clear description with discussion points. Very neat! It looks like it will work well (have not tested it yet, I will do that after your changes), but I do have added some suggestions to specific parts of the code. Please let me know of any of these review comments are annoying to you. I realize I am micro-managing (for a good cause, but still), so you can drop any of the tasks back at my desk.
For the notebook (too large diff to comment inline):
- maybe skip downloading (and plotting subset) just like gesla, this avoids all issues you encountered. But of course do keep them in the global overview. I am also planning to update the modelbuilder notebook to include GTSM as model obspoints, so there will be exposure nevertheless.
- remove the new gtsm source from the TODO comment again (see other review points)
…c3s-locations-and-data
…ns-and-data' of https://github.com/Deltares/dfm_tools into 1121-subsetretrieve-observations-add-gtsmip-c3s-locations-and-data
…s for surge and 10min time resolution
I have submitted a new version of the scripts, with adjustments based on the discussion we had. In summary:
|
|
Some minor things added:
|
GTSM reanalysis data from CDS was added to the observations.py to enable retrieving a dataframe of GTSM output locations and downloading GTSM-ERA5 data from CDS.
The GTSM obs points are read from the .csv file in the GTSM-ERA5 repository. Please note that the station names are not always identical to the station names handled by the model, because some names included special characters which I have removed in postprocessing (this was causing issues when using the station name in filenames when saving individual observations) (example: 'currents_l��staviken' vs. 'currents_lstaviken').
The GTSM data cannot be subset by station when downloading from CDS, therefore the data is downloaded once to a cache folder, and then accessed to retrieve data for individual stations.
Possible further improvements: