Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions .classpath

This file was deleted.

36 changes: 34 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
/bin/

/.gradle/
/build/
build/

# Eclipse IDE files
.settings/
.project
.classpath

# Eclipse working directories
.metadata/
bin/
tmp/
*.tmp

# Gradle files
.gradle/
build/

# Logs
*.log

# OS generated files
.DS_Store
Thumbs.db

# IntelliJ IDEA files (opzionale, se lavori anche con altri IDE)
.idea/
*.iml

# Optional: escludi altri file temporanei
*.swp
*.swo
*.bak
*.orig
2 changes: 0 additions & 2 deletions .settings/org.eclipse.buildship.core.prefs

This file was deleted.

4 changes: 0 additions & 4 deletions .settings/org.eclipse.jdt.core.prefs

This file was deleted.

42 changes: 42 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@




## Model detail

To separate rain and snow this model implemets the method reported in Formetta et al. (2014)

$$
\begin{cases}
P_r(t) = \alpha_r \left( \dfrac{P(t)}{\pi}\,\arctan\!\left( \dfrac{T - T_s}{m_1} \right) + \dfrac{P}{2} \right) \\
\\
P_s(t) = \alpha_s \left( P(t) - P_r(t) \right)
\end{cases}
$$

| Symbol | Meaning | Unit |
|-------------|----------------------------------------------|-------------------------------|
| $$P(t) $$ | Precipitation at time *t* | [LT⁻¹] |
| $$P_r(t)$$ | Rainfall at time *t* | [LT⁻¹] |
| $$P_s(t)$$ | Snowfall at time *t* | [LT⁻¹] |
| $$α_r$$ | Adjustment coefficient for rain measurements | – |
| $$α_s$$ | Adjustment coefficient for snow measurements | – |
| $$m_1$$ | Smoothing degree parameter | – |
| $$T_s$$ | Threshold air temperature | [Θ] |
| $$T$$ | Temperature | [Θ] |


| Symbol | Meaning | Examples |
| ------ | ------------------------- | --------------------------------- |
| **L** | Length | mm, m, km, water depth, elevation |
| **T** | Time | seconds, hours, days |
| **M** | Mass | kg |
| **Θ** | Thermodynamic temperature | °C, K |
| **–** | Dimensionless quantity | coefficients, ratios, fractions |



Formetta, G., Kampf, S. K., David, O., & Rigon, R. (2014, 6 May). Snow water
equivalent modeling components in NewAge-JGrass. Geosci. Model Dev., 7 (3),
725–736.

21 changes: 13 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ if (project.hasProperty('projVersion')) {

// name with versioning of the jar file
jar {
manifest {
attributes 'Implementation-Title' : 'Gradle Quickstart',
'Implementation-Version': version
}

archiveBaseName = prj_name + "-${new Date().format('yyyy-dd-MM')}"
archiveVersion = version_number

// manifest {
// attributes 'Implementation-Title' : 'Gradle Quickstart',
// 'Implementation-Version': version
// }
}

repositories {
Expand All @@ -27,11 +31,12 @@ repositories {
// jai_core 1.1.3
// jai_codec 1.1.3
url 'https://repo.osgeo.org/repository/release'

}

maven {
// hatbox 1.0.b7
url 'http://maven.geo-solutions.it/'
url 'https://maven.geo-solutions.it/'
}

mavenCentral() //jgt
Expand All @@ -48,11 +53,11 @@ dependencies {
implementation group: 'javax.media', name: 'jai_imageio', version: '1.1'

// https://mvnrepository.com/artifact/org.hortonmachine/hm-hmachine
implementation group: 'org.hortonmachine', name: 'hm-hmachine', version: '0.10.4'
implementation group: 'org.hortonmachine', name: 'hm-hmachine', version: '0.10.7'
// https://mvnrepository.com/artifact/org.hortonmachine/hm-gears
implementation group: 'org.hortonmachine', name: 'hm-gears', version: '0.10.4'
implementation group: 'org.hortonmachine', name: 'hm-gears', version: '0.10.7'
// https://mvnrepository.com/artifact/org.hortonmachine/hm-modules
implementation group: 'org.hortonmachine', name: 'hm-modules', version: '0.10.4'
implementation group: 'org.hortonmachine', name: 'hm-modules', version: '0.10.7'

implementation group: 'net.sourceforge.hatbox', name: 'hatbox', version: '1.0.b7'

Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
prj_name = RainSnowSeparation
version_number= 0.0.9
Loading