Skip to content
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

Along track views of height change over time #99

Merged
merged 4 commits into from
Jul 16, 2020
Merged

Conversation

weiji14
Copy link
Owner

@weiji14 weiji14 commented Jun 18, 2020

Towards making transect/cross-section plots, along a single reference ground track! For example, being able to make a scatter plot with x_atc on the x-axis and h_corr on the y-axis, and overlay different cycles on top of one another.

alongtrack_atl11_dh_whillans2_135

Also made an interactive dashboard map view plot to locate interesting reference ground tracks:

Panel Dashboard of ICESat-2 dhdt

TODO:

  • Get x_atc, y_atc variables (f30110c)
  • Get referencegroundtrack variable when loading ATL11 data (efe93e0)
  • Show how to do an along-track plot in atlxi_dhdt.ipynb (ee7685f)
  • Stretch goal: Make a 3D plot of a changing ice surface over time!

References:

Notes:
Currently using some 'hacks' to get this work, until upstream libraries like intake-xarray, xarray, zarr, et al. release some features to improve PyData interoperability (see #100).

Towards making transect/cross-section plots! Ensure that our ATL11 xarray dataset has the referencegroundtrack number in it, for easier tracking later on! Builds on f30110c. I've updated the Kamb subset for my friend, and it's good to see that hvplot works interactively when zooming in now if datashade is on (but rasterize shows up blank?).

Ideally we would be using intake.open_ndzarr for this, but there are too many missing pieces in the puzzle to get it to work seamlessly now. So I've reverse engineered the add_path_to_ds mechanism and used it to extract the reference ground track number from the filename when loading from the Zarr files! The coordinates are stored as int64 which seems overkill (int8 would suffice), but that can be amended properly at a later date, hopefully upstream at intake/xarray.
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

Review Jupyter notebook visual diffs & provide feedback on notebooks.


Powered by ReviewNB

weiji14 added 2 commits June 19, 2020 15:29
Getting closer to detecting subglacial lake drainage/filling events! With the referencegroundtrack variable available with efe93e0, and interactive hvplot working again (somewhat), we can finally do some fun exploratory data analysis on examining active subglacial lake movements in Antarctica. Made a small tweak to the `add_path_to_ds` format_string to exclude version and revision numbers, since they add little value.

Showed an example at Whillans Ice Stream (EPSG:3031, x: -444300, y: -537500) where a ~7 metre filling event occured. Probably spent a bit too much time perfecting the PyGMT plot, complete with the ReferenceGroundTrack number, legends for each cycle colour point, mean datetimes for those points, etc. Can't wait to go 3D soon!
Lots of updates across the PyViz stack to support Bokeh 2.1. HvPlot interactivity works great now too!
Made a cool ICESat-2 rate of height change over time (dhdt) dashboard using Panel and HvPlot! Has buttons to select variable to plot (dhdt_slope, referencegroundtrack or h_corr), sliders to filter datapoints by cycle_number and dhdt_range, and checkboxes to turn on/off rasterize/datashade! Actually my first time using Panel really, but quite pleased with the results.
@weiji14 weiji14 marked this pull request as ready for review July 16, 2020 21:36
@weiji14 weiji14 added the enhancement ✨ New feature or request label Jul 16, 2020
@weiji14 weiji14 added this to the v0.2.0 milestone Jul 16, 2020
@weiji14 weiji14 closed this in 7872c27 Jul 16, 2020
@weiji14 weiji14 merged commit 7872c27 into master Jul 16, 2020
@weiji14 weiji14 deleted the alongtrack_view branch July 16, 2020 21:41
weiji14 added a commit that referenced this pull request Jul 16, 2020
Closes #99 Along track views of height change over time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant