bjoesa / cosipy-fecmo

COSIPY-FecMo: A coupled glacier surface SEB + SMB and glacier subsurface firn elevation change model

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

COSIPY-FecMo: A coupled glacier surface SEB + SMB and glacier subsurface firn elevation change model

Author: @bjoesa

License: Reuse only with reference to the creators.

The dry_densification scheme is based on Herron and Langway (1980)[1], you find the PDF e.g. on cambridge.org.

VERY IMPORTANT

The fdm is written in python 3 and tested with Anaconda3 on the Python 3.6.3 Shell on Windows10 and Ubuntu 16.04 LTS. THE MODEL IST IN DEVELOPMENT.

Logging control

Set debug_level in config.py.

Which level should be saved to logfile?

Level Numeric value Behaviour
CRITICAL 50 Crash info
ERROR **40 ** Still running but erroneus results
WARNING 30 Potentially harmful processing
INFO 20 Coarse-grained info (excluding variables)
DEBUG 10 Fine-grained info (including variables and levels 10-50)
NOTSET 0 No logging

Structure

/

  • cosipy: Main file, execute me!

    • Contains main function, logging and debug initialization
  • config: Make your changes/adaptions here!

  • constants: Contains variable you usually not change

core/

  • cosima: Model framework

  • init_layers: Module to generate initial layering

    • init_layers: inititalize layer properties: layer heights, density, temperature at surface, temperature gradient, liquid water content
  • var_init: Module to initialize (varInit) and to append to 2D time series arrays

    • varInit: initialize arrays
    • varStore: append vars to arrays
  • grid: Contains the code to setup and manipulate the vertical node structure

  • node: Contains the code to access and manipulate individual nodes

  • inout: i/o script

modules/

  • dry_densification: Physical heart of the model

  • visualization: Plot functions

  • albedo:

postprocessing, input and output

  • input data is MAR 3.5.2 data for a test point in Vestfonna Ice Cap (Svalbard) (courtesy by Xavier Fettweis) DO NOT DISTRIBUTE THIS DATA, ITS NOT VALIDATED.
  • postprocessing contains the result output stuff

[1]: Herron, M., & Langway, C. (1980). Firn Densification: An Empirical Model. Journal of Glaciology, 25(93), 373-385. doi:10.3189/S0022143000015239

Hints:

The markdown for this REAME is taken from https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet.

About

COSIPY-FecMo: A coupled glacier surface SEB + SMB and glacier subsurface firn elevation change model

License:MIT License


Languages

Language:Python 100.0%