After a lot of trial and error, I could make a code that creates glacier csv file.
In the table generated as per the SPHY v2.2.1 manual,
1. Each row in the csv table represents a high resolution glacier grid (say 25mx25m), and given with unique ID (UID)
2. GLAC_ID column for Glacier ID string (or part of the string)
3. MOD_ID column for Model ID representing coarse resolution (say 250mx250m) model grid cell, inside which multiple glacier grids (can be upto 100) are present
4. MOD_H column represent the coarse resolution (250m) DEM elevation corresponding to each ModelID grid cell
5. GLAC_H column represents the fine resolution (25m) DEM elevation corresponding to each glacierID grid cell
6. DEBRIS column represents the flag for presence or absence of debris cover on a given glacierID grid cell
7. FRAC_GLAC column is by definition fraction of model ID grid cell that is covered by debris covered glacierID grid cells and debris-free glacierID cells (Need clarification in this, as explained in below query)
8. ICE-DEPTH column represents thickness of glacier in each glacier grid cell (
Need clarification in this, as explained in below query )
I need clarification on how to assign value for fraction of glacier which represents a group of glacier cells within a Model ID grid cell, while corresponding ice-depth is going to be unique for each of the glacierID grid cell.
I see two possible cases as stated below:
ii)Case1: Should ice-depth be averaged over each group of debris-free glacierID grid cells and group of debris covered glacierID grid cells within a given modelID grid cell? In this case, there can be variable glac_frac value for each glacierID grid cell.
i)Case2: Can I have unique ice-depth for each glacierID grid cell? In this case, glac_frac needs to be constant.
I am attaching a portion of glacier csv table generated for my study area generated using Case2 process, considering fraction of glacier as constant i.e., 0.01 (which is ratio of glacierID grid area & ModelID grid cell area), to ensure I can give unique icedepth for each glacierID grid cell.
Please let me know with some explanation, on which type of glacier csv table (Case1 or Case2) is as per SPHY v2.2.1 model requirements?