snowpack-model / snowpack

SNOWPACK model
GNU Lesser General Public License v3.0
10 stars 5 forks source link

Add firn air content (FAC) and surface mass balance (SMB) to SNOPWACK *.smet output #15

Open EricKeenan opened 3 years ago

EricKeenan commented 3 years ago

To make analysis easier, it would be nice to have FAC and SMB built into SNOWPACK output. This way we don't have to calculate it ourselves (and possibly screw it up)!

SMB would look something like this (right?)

smet['SMB'] = smet['MS_Snow'] - smet['MS_Wind'] + smet['rainfall'] + smet['sublimation'] + smet['evap'] + smet['runoff']

Firn air content could be calculated by vertically integrating element air content.

EricKeenan commented 3 years ago

Per @nwever smb should be

smet['SMB'] = smet['MS_Snow'] - smet['MS_Wind'] + smet['rainfall'] + smet['sublimation'] + smet['evap'] + smet['runoff']