weatherProperties.sh: refactoring