Comments (2)
It needs to include surfaceFlux.mass[MS_EVAPORATION] as well. There is not (yet) a snowdrift sublimation term. There is a snow drift term, though (Sdata.mass[SurfaceFluxes::MS_WIND]/cos_sl). Maybe it's also good to use Sdata.mass[SurfaceFluxes::MS_HNW] (for snow) and Sdata.mass[SurfaceFluxes::MS_RAIN] (for rain), instead of PSUM.
from snowpack.
Thanks for helping me get on track. A few things to still figure out:
- Still need to determine which variables to divide by cos(slope)
- Difference between Sdata.mass and surfaceFlux.mass?
- Synchronize rates and mass contributions in order to have a consistent SMB variable.
- Is the timestep used in accumulated variables (e.g. MS_EVAPORATION) from SNOWPACK or Alpine-3D?
Confirm flux and rate directions (components signs) are correct.
/*
Calculates Surface Mass Balance (SMB) as a function of snowfall, rain, wind erosion, surface sublimation,
evaporation, and meltwater runoff. Note that SNOWPACK does not yet account for drifting snow sublimation.
Components:
Snow rate: MS_HNW (kg/m2/hr)
Rain rate: MS_RAIN (kg/m2/hr)
Wind erosion rate: MS_WIND (kg/m2/hr)
Sublimation: MS_SUBLIMATION (kg/m2, presumably over the timestep)
Evaporation: MS_EVAPORATION (kg/m2, presumably over the timestep)
Meltwater runoff: MS_SNOWPACK_RUNOFF (kg/m2, presumably over the timestep)
*/
case SnGrids::SMB:
value = Sdata.mass[SurfaceFluxes::MS_HNW]
+ Sdata.mass[SurfaceFluxes::MS_RAIN]
+ Sdata.mass[SurfaceFluxes::MS_WIND]
+ (surfaceFlux.mass[SurfaceFluxes::MS_SUBLIMATION] / snowPixel.cos_sl)
+ (surfaceFlux.mass[SurfaceFluxes::MS_EVAPORATION] / snowPixel.cos_sl)
- (surfaceFlux.mass[SurfaceFluxes::MS_SNOWPACK_RUNOFF] / snowPixel.cos_sl); break;
from snowpack.
Related Issues (20)
- Alpine-3D writes SWE to netCDF, but units are off. HOT 3
- Alpine-3D netCDF time invariant fields
- Alpine-3D netCDF time variable fields
- Top row of netcdf field consistently contains nodata HOT 1
- MS_WIND variable not supported by Alpine3D HOT 1
- Wind direction is calculated inconsistently HOT 2
- Alpine3D albedo is 0.3 in some circumstances. HOT 1
- Optimized SNOWPACK / Alpine3D HOT 1
- Add age of layer to *pro file HOT 1
- Calculating SMB from WINDEROSIONDEPOSITION field HOT 1
- Feedback HS to DEM HOT 1
- Add firn air content (FAC) and surface mass balance (SMB) to SNOPWACK *.smet output HOT 1
- Implement temperature-dependent roughness length HOT 1
- Alpine-3D: Write grids to variable specific NetCDF file HOT 2
- CFL adaptive time step overly conservative
- Liston wind speed and direction downscaling algorithm does not include a curvature length scale HOT 2
- Numerical precision problem - expression evaluates to zero. HOT 2
- Branch divergenceSnowDrift: Mismatch between WINDEROSIONDEPOSITION and delta SWE HOT 3
- Incorrect parameter dimensionality in saltation mass flux formulation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snowpack.