Runoff from Greenland's Firn Area - Why do MODIS, RCMs and a Firn Model disagree? - Code and Data
<h1>README – Overview code and data for obtaining MODIS runoff limits and comparison to and between MAR and RACMO / IMAU-FDM</h1> <p> </p> <h2>Basic workflow</h2> <p>Table 1 lists the projects, the pieces of code in the projects and the key output of each piece of code. This serves at illustrating the basic workflow. More detailed information on required input is provided below. The README files of the various projects provide details on how to use the code.</p> <p> </p> <p><strong><em>Table 1:</em></strong><em> This <strong>table might not display properly, please refer to the file _README_overview.pdf.</strong> General project overview. The projects and code are shown in the order they are intended to be used. In italic are parts of code that were not used for Machguth et al. (in review) but instead for Machguth et al. (2022). They might not be fully compatible anymore with runoff limits Y<sub>r</sub> calculated along flowline-polygons.</em></p> <table> <tbody> <tr> <td> <p><strong>Project</strong></p> </td> <td> <p><strong>Code</strong></p> </td> <td> <p><strong>Output</strong></p> </td> </tr> <tr> <td> <p>flowlines</p> </td> <td> <p>crop_gdalwarp.py</p> </td> <td> <p>DEM, cropped and reprojected to required size and grid (identical to the MODIS files)</p> </td> </tr> <tr> <td> <p>flowline_seedpoints.py</p> </td> <td> <p>Seedpoints to calculate flowlines</p> </td> </tr> <tr> <td> <p>flowline.py</p> </td> <td> <p>Flowlines and flowline- polygons</p> </td> </tr> <tr> <td> <p>MODIS_Greenland</p> </td> <td> <p>MODIS_array_filter.py</p> </td> <td> <p>Daily MODIS grids filtered for outliers</p> </td> </tr> <tr> <td> <p>MODIS_stddev_spatial.py</p> </td> <td> <p>Daily grids of MODIS spatial standard deviation</p> </td> </tr> <tr> <td> <p>MODIS_mean_stddev.py</p> </td> <td> <p>Greenland-wide map of background MODIS spatial standard deviation</p> </td> </tr> <tr> <td> <p>MODIS_NDWI_tiff_to_nc.py</p> </td> <td> <p>MODIS NDWI converted from tiff to netCDF</p> </td> </tr> <tr> <td> <p>MODIS_find_slush_limit.py</p> </td> <td> <p>Table of all detected daily <em>Y<sub>r</sub></em></p> </td> </tr> <tr> <td> <p>Greenland_RCM_analysis_prep</p> </td> <td> <p>modis_vs_mar.py</p> </td> <td> <p>Tables of daily MAR <em>Y<sub>r</sub></em> for all flowline-polygons</p> </td> </tr> <tr> <td> <p>modis_vs_racmo.py</p> </td> <td> <p>Table of daily RACMO <em>Y<sub>r</sub></em> for all flowline-polygons</p> </td> </tr> <tr> <td> <p>MODIS_Greenland_analysis</p> </td> <td> <p>MODIS_A_SLmax.py</p> </td> <td> <p>Calculates annual maxima of the Yr, written into table. C<em>reates plots visualizing MODIS Y<sub>r</sub> spatial and temporal distribution – only used in Machguth et al. (2022)</em></p> </td> </tr> <tr> <td> <p><em>MODIS_A_SLanalyis.py</em></p> </td> <td> <p><em>Plots that visualize progression and forcing behind MODIS Y<sub>r</sub> – only used in Machguth et al. (2022)</em></p> </td> </tr> <tr> <td> <p>MODIS_comp_RCM_maxYs.py</p> </td> <td> <p>For all of Greenland: Plots that compare RCM and MODIS max<em>Y<sub>r</sub></em></p> </td> </tr> <tr> <td> <p>MODIS_comp_RCM_Ys.py</p> </td> <td> <p>For all of Greenland: Plots that compare RCM and MODIS daily <em>Y<sub>r</sub></em></p> </td> </tr> <tr> <td> <p>Greenland_RCM_analysis</p> </td> <td> <p>RCM_analysis_comp_Ktransect.py</p> </td> <td> <p>For the K-transect: Plots/tables that compare RACMO/FDM and MAR Yr as well as various RCM parameters</p> </td> </tr> <tr> <td> <p>Jupyter notebooks</p> </td> <td> <p>K-transect_MAR_Greenland-wide_to_K-transect.ipynb</p> </td> <td> <p>Writes MAR .nc files that contain data only for the K-Transect</p> </td> </tr> <tr> <td> <p>K-transect_RACMO-MAR_depth-data-plot.ipynb</p> </td> <td> <p>For the K-transect: Plots to compare depth information of MAR and RACMO/FDM</p> </td> </tr> </tbody> </table> <p> </p> <p> </p> <h2>Input and output data</h2> <p>Unless mentioned otherwise, all input data required is provided in this repository. Input files for one piece of code are at the same time the output of a piece of code that needs to be run before.</p> <p><em>Note 1:</em> due to space constraints only the so called “test” data set for runoff limit detection is provided. The full input data to Greenland-wide runoff limit detection are too large in volume but can be obtained from the authors.</p> <p>Note 2: While we only provide the test data for the MODIS runoff limit detection, we provide the full output of the Greenland-wide runoff limit detection (these data are small in volume).</p> <h3>Input to flowlines/crop_gdalwarp.py</h3> <p>arcticdem_mosaic_100m_v30_greenland_icesheet_geoidCorr.tif</p> <h3> </h3> <h3>Input to <em>flowlines/flowline_seedpoints.py</em></h3> <p>seedline_v2.1.shp</p> <h3> </h3> <h3>Input to <em>flowlines/flowline.py</em></h3> <p>è In the case of using the test data, no seed file exists. Do not provide one, seed points will be calculated along a north-south line as specified.</p> <p>greenland_vel_mosaic200_2015-2018_vx_v02-composite-crop.tif</p> <p>greenland_vel_mosaic200_2015-2018_vy_v02-composite-crop.tif</p> <p>dem_test_gapfilled.tif</p> <p><em>or for Greenland-wide:</em></p> <p>greenland_vel_mosaic500_2015-2018_vx_v02-composite-crop.tif</p> <p>greenland_vel_mosaic500_2015-2018_vy_v02-composite-crop.tif</p> <p>arcticdem_mosaic_500m_v30_greenland_icesheet_geoidCorr_GapFilled.tif</p> <p>seedpoints_v3.4.shp</p> <h3> </h3> <h3>Input to <em>MODIS_Greenland/MODIS_array_filter.py</em></h3> <p>/sat_modis_proc_GR_l1test/*</p> <p> </p> <h3>Input to <em>MODIS_Greenland/MODIS_stddev_spatial.py</em></h3> <p>/sat_modis_proc_test_l2/*</p> <p> </p> <h3>Input to <em>MODIS_Greenland/MODIS_mean_stddev.py</em></h3> <p>/sat_modis_proc_test_l3/*</p> <p>dem_test_gapfilled.tif</p> <p> </p> <h3>Input to <em>MODIS_Greenland/ MODIS_NDWI_tiff_to_nc.py</em></h3> <p>è Input data were computed directly on Google Earth Engine, they have not been preserved, only output data exist</p> <p> </p> <h3>Input to <em>MODIS_Greenland/MODIS_find_slush_limit.py</em></h3> <p>/sat_modis_proc_test_l3/*</p> <p>/sat_modis_proc_test_l2_NDWI/*</p> <p>mask_greenland_icesheet/dem_test_gapfilled.tif</p> <p>Ys_polygons__test_W20km.shp</p> <p>flowlines__test_W20km.shp</p> <p>test_MOD10A1.l3.v4_yrs2000-2021_doy126-136_stddev_median.tif</p> <p> </p> <h3>Input to <em>Greenland_RCM_analysis_prep/modis_vs_mar.py</em></h3> <p>/flash/tedstona/MARv.HorstRCMStudy_20240624/*</p> <p>what is the DEM, probably the same as used elsewhere?</p> <p>flowline Polygons</p> <p>/flash/tedstona/_list_PolyIDs.xlsx</p> <p>Why output still to 'MAR-v3.12.1-rlim-slush.nc'? Probably simply not changed without any effect?</p> <h3> </h3> <h3>Input to <em>Greenland_RCM_analysis_prep/modis_vs_racmo.py</em></h3> <p>/flash/tedstona/RACMO/1km/runoff/*</p> <p>arcticdem_mosaic_500m_v30_greenland_icesheet_GeoidCorr_GapFilled_RACMO1km.tif</p> <p>racmo_polys.nc</p> <p> </p> <h3>Input to <em>MODIS_Greenland_analysis/MODIS_A_SLmax.py</em></h3> <p>_test_slush-limit_output_table.xlsx</p> <p><em>or the Greenland-wide output data:</em></p> <p>_GR_slush-limit_output_table.xlsx</p> <p> </p> <h3>Input to <em>MODIS_Greenland_analysis/MODIS_A_SLanalyis.py</em></h3> <p>KAN_U_hourly_v3_fewer_columns.xlsx</p> <p>KAN_M_hourly_v3_fewer_columns.xlsx</p> <p>(selected_SL_years_and_stripes_20km.xlsx: <em>not found and was also only used in Machguth et al., 2022)</em></p> <p>__test_table_complete_annual_max_SL.xlsx</p> <p>__test_slush-limit_output_table_OnlyValidEntries.xlsx</p> <p><em>or the Greenland-wide output data:</em></p> <p>__GR_table_complete_annual_max_SL.xlsx</p> <p>__GR_test_slush-limit_output_table_OnlyValidEntries.xlsx</p> <p> </p> <h3>Input to <em>MODIS_Greenland_analysis/MODIS_comp_RCM_maxYs.py</em></h3> <p>è This file has not been tested whether it also works with the “test” data</p> <p>RACMO2.3p2_ERA5_3h_FGRN055.1km-rlim-RUa1mm.xlsx</p> <p>MAR-v.20240624-rlim-RUa1mm.xlsx</p> <p>_stripes_with_aquifers.xlsx</p> <p>__test_table_simple_annual_max_SL.xlsx</p> <p>__test_table_complete_annual_max_SL.xlsx</p> <p><em>or the Greenland-wide output data:</em></p> <p>__GR_table_simple_annual_max_SL.xlsx</p> <p>__GR_table_complete_annual_max_SL.xlsx</p> <p> </p> <h3>Input to <em>MODIS_Greenland_analysis/MODIS_comp_RCM_Ys.py</em></h3> <p>è This file has not been tested whether it also works with the “test” data</p> <p>__GR_slush-limit_output_table_OnlyValidEntries.xlsx</p> <p>flowlines_daily_rlims_RACMO_1mmEvents_10mmAnnual_2000_2021.xlsx</p> <p>flowlines_daily_rlims_MAR-v.20240624_1mmEvents_10mmAnnual_2000_2021.xlsx</p> <p> </p> <h3>Input to <em>Greenland_RCM_analysis/RCM_analysis_comp_Ktransect.py</em></h3> <p>è Certain data sets (indicated below) are not provided as they would exceed the available space in the repository. They can be obtained at no conditions from the authors</p> <p>è This file has not been tested whether it would also works with the “test” data</p> <p><em>Too large: /FDM_Greenland-wide/* </em></p> <p><em>Too large: /RACMO-FDM_K-Transect_updated/* </em></p> <p><em>Too large: /RACMO_Greenland-wide/* </em></p> <p><em>Too large: /MARv3.14_K-transect_continuous/*</em></p> <p><em>Too large: FGRN055_Masks.nc</em></p> <p>__GR_slush-limit_output_table_OnlyValidEntries.xlsx</p> <p>__GR_table_simple_annual_max_SL.xlsx</p> <p>__GR_table_complete_annual_max_SL.xlsx</p> <p> </p> <h3>Input to <em>_notebooks\K-transect_MAR_Greenland-wide_to_K-transect.ipynb</em></h3> <p> </p> <h3>Input to <em>_notebooks\K-transect_RACMO-MAR_depth-data-plot.ipynb</em></h3> <p> </p> <h2>Output data</h2> <p>The basic output files of the runoff limit detection for all of Greenland are:</p> <p>_GR_slush-limit_output_table.xlsx (written by MODIS_Greenland/MODIS_find_slush_limit.py)</p> <p>__GR_slush-limit_output_table_OnlyValidEntries.xlsx (by MODIS_Greenland_analysis/MODIS_A_SLmax.py)</p> <p>__GR_table_simple_annual_max_SL.xlsx (by MODIS_Greenland_analysis/MODIS_A_SLmax.py)</p> <p>__GR_table_complete_annual_max_SL.xlsx (by MODIS_Greenland_analysis/MODIS_A_SLmax.py)</p> <p> </p> <p>The basic output files of the runoff limit detection for the “test” data set are:</p> <p>_test_slush-limit_output_table.xlsx (written by MODIS_Greenland/MODIS_find_slush_limit.py)</p> <p>__test_slush-limit_output_table_OnlyValidEntries.xlsx (by MODIS_Greenland_analysis/MODIS_A_SLmax.py)</p> <p>__test_table_simple_annual_max_SL.xlsx (by MODIS_Greenland_analysis/MODIS_A_SLmax.py)</p> <p>__test_table_complete_annual_max_SL.xlsx (by MODIS_Greenland_analysis/MODIS_A_SLmax.py)</p> <p> </p> <p> </p> <p> </p>
ShareScore
40/100
Overall dataset sharing score
Score breakdown
These five areas show where the dataset supports — or may limit — practical reuse.
- Stewardship
- 4
- Harmonization
- 4
- Access
- 20
- Reuse readiness
- 8
- Engagement
- 4