Skip to content

Commit

Permalink
Merge branch 'release_2023'
Browse files Browse the repository at this point in the history
Closes #41
Closes #40
Closes #39
Closes #38
Closes #37
Closes #36
Closes #33
  • Loading branch information
mankoff committed Aug 6, 2023
2 parents 570824a + 37f2a19 commit 6f20551
Show file tree
Hide file tree
Showing 8 changed files with 381 additions and 555 deletions.
158 changes: 79 additions & 79 deletions README.org

Large diffs are not rendered by default.

Binary file modified fig/api_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions freshwater.bib
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
@article{li_2022,
author = {Ya Li and Kang Yang and Shuai Gao and Laurence C. Smith and Xavier Fettweis and
Manchun Li},
title = {Surface meltwater runoff routing through a coupled supraglacial-proglacial drainage
system, Inglefield Land, northwest Greenland},
journal = {International Journal of Applied Earth Observation and Geoinformation},
year = 2022,
volume = 106,
pages = 102647,
doi = {10.1016/j.jag.2021.102647},
publisher = {Elsevier {BV}}}

@article{ESSD_reviewer1,
doi = {10.5194/essd-2020-47-rc1},
url = {https://doi.org/10.5194/essd-2020-47-rc1},
Expand Down Expand Up @@ -1048,6 +1060,23 @@ @misc{NSIDC_BedMachine_GL_v4
doi = {10.5067/VLJ5YXKCNGXO}
}

@misc{NSIDC_BedMachine_GL_v5,
author = {Morlighem, M. and Williams, C. and Rignot, E. and An, L. and Arndt, J. E. and Bamber,
J. and Catania, G. and Chauché, N. and Dowdeswell, J. A. and Dorschel, B. and
Fenty, I. and Hogan, K. and Howat, I. and Hubbard, A. and Jakobsson, M. and
Jordan, T. M. and Kjeldsen, K. K. and Millan, R. and Mayer, L. and Mouginot, J.
and Noël, B. and O'Cofaigh, C. and Palmer, S. J. and Rysgaard, S. and Seroussi, H.
and Siegert, M. J. and Slabon, P. and Straneo, F. and van den Broeke, M. R. and
Weinrebe, W. and Wood, M. and Zinglersen, K.},
year = {2022},
title = {{IceBridge} {BedMachine} {G}reenland, Version 5},
note = {Updated 2022. Accessed 2023-07-19},
address = {{NASA} National Snow and Ice Data Center Distributed Active Archive Center. Boulder,
Colorado USA},
publisher = {{NASA} National Snow and Ice Data Center Distributed Active Archive Center},
doi = {10.5067/GMEVBWFLWA7X}
}

@article{citterio_2013,
author = {Citterio, M. and Ahlstr{\o}m, A. P.},
journal = {The Cryosphere},
Expand Down
642 changes: 166 additions & 476 deletions freshwater.org

Large diffs are not rendered by default.

107 changes: 107 additions & 0 deletions update_2023.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@

#+PROPERTY: header-args:jupyter-python+ :kernel freshwater :session fw :exports both
#+PROPERTY: :header-args:bash+ :session "*freshwater.update-shell*" :results verbatim :exports both

* Table of contents :toc_5:noexport:
- [[#introduction][Introduction]]
- [[#summary-of-differences][Summary of differences]]
- [[#release_2022-vs-release_2023-discharge][release_2022 vs release_2023 discharge]]
- [[#extract-time-series][Extract time series]]
- [[#graphics][Graphics]]
- [[#r2023][r2023]]
- [[#compare-using-upstream-basins][Compare using upstream basins]]
- [[#recreate-using-old-data][Recreate using 'old' data]]
- [[#recreate-using-new-data][Recreate using 'new' data]]

* Introduction

This document shows changes between the [[https://github.com/GEUS-Glaciology-and-Climate/freshwater/tree/release_2022][release_2022]] and [[https://github.com/GEUS-Glaciology-and-Climate/freshwater/tree/release_2023][release_2023]] freshwater discharge product.

Changes to the code and manuscript can be seen at https://github.com/GEUS-Glaciology-and-Climate/freshwater/compare/release_2022...release_2023

* Summary of differences

+ Added 2022 RACMO data
+ Added 2022 MAR data
+ Updated MAR data from 3.12 to 3.13
+ Updated BedMachine from v4 to v5
+ Updated ArcticDEM from v3.0 to v4.1

* release_2022 vs release_2023 discharge

** Extract time series
#+BEGIN_SRC bash :results verbatim :exports results :wrap xml :exports both
mamba activate freshwater_user

python ./discharge.py --base="/home/kdm/data/Mankoff_2020/water/release_2022" --roi="-51.50,66.93 -51.21,66.74 -49.44,66.91 -49.84,67.18" -d -u > ./dat/r2022_roi.csv

python ./discharge.py --base="/home/kdm/data/Mankoff_2020/water/release_2023" --roi="-51.50,66.93 -51.21,66.74 -49.44,66.91 -49.84,67.18" -d -u > ./dat/r2023_roi.csv
#+END_SRC

** Graphics

#+BEGIN_SRC jupyter-python :kernel ds :exports both
df_r2022 = pd.read_csv('./dat/r2022_roi.csv', index_col=0)
df_r2023 = pd.read_csv('./dat/r2023_roi.csv', index_col=0)

df_r2022 = df_r2022[['MAR_ice','RACMO_ice']]\
.rename(columns={'MAR_ice':'MAR_ice_2022',
'RACMO_ice':'RACMO_ice_2022'})

df_r2023 = df_r2023[['MAR_ice','RACMO_ice']]\
.rename(columns={'MAR_ice':'MAR_ice_2023',
'RACMO_ice':'RACMO_ice_2023'})

df = df_r2022.merge(df_r2023, left_index=True, right_index=True)

p = df.loc['2012-04-01':'2012-11-15']\
.rolling(5)\
.mean()\
.plot(drawstyle='steps')
#+END_SRC

#+RESULTS:
[[file:./figs_tmp/14cac59c0cfaacfa5fcacdf5901b79d47e8870a5.png]]

*** r2023

#+BEGIN_SRC jupyter-python :display plain :kernel ds :exports both
df = pd.read_csv('./dat/r2023_roi.csv', index_col=0)
df[['MAR_ice','RACMO_ice']]\
.loc['2012-04-01':'2012-11-15']\
.rolling(5)\
.mean()\
.plot(drawstyle='steps')
#+END_SRC


+ Note :: graphics appear roughly the same, but the x-axis has nearly doubled.

* Compare using upstream basins

** Recreate using 'old' data

#+BEGIN_SRC jupyter-python :kernel ds :exports both
df = pd.read_csv('./dat/r2022_roi.csv', index_col=0)
p = df.loc['2012-04-01':'2012-11-15']\
.rolling(5)\
.mean()\
.plot(drawstyle='steps')
#+END_SRC

#+RESULTS:
[[file:./figs_tmp/8e2135ab547341c90acc76e179fe45f340dc432b.png]]

** Recreate using 'new' data

#+BEGIN_SRC jupyter-python :kernel ds :exports both
df = pd.read_csv('./dat/r2023_roi.csv', index_col=0)
p = df.loc['2012-04-01':'2012-11-15']\
.rolling(5)\
.mean()\
.plot(drawstyle='steps')
#+END_SRC

#+RESULTS:
[[file:./figs_tmp/398db525122cda3d47e02e93fa4d1fcf60b6b0d9.png]]

0 comments on commit 6f20551

Please sign in to comment.