---
# System prepended metadata

title: Simple workflow

---

# Simple workflow

## Checkout the branch "dev" from NorESM_fates_platform

```
git clone -b platform_dev https://github.com/NorESMhub/NorESM_LandSites_Platform.git
```


## execute install.sh
```
./install.sh
```
- Automatically fetches sources (NorESM, conda)
- Differentiate between saga and fram (conda setting)
- Check (and install if not)
    - for conda environment (see issues)
    - for NorESM (check for .git)
- patch NorESM for Norwegian cluster and sites (copy config files) 

### Current issues / *enhancements*
- Problem with conda caching -> exeedance of file limit on saga! -> use of container
- *Print version and tag of the components*
- Conflict "clean state" if externals had already been checked out and have been patched
    - patching causes detached head state
    - Usual solution: 
        - create local git branches for each component which has been patched
        - do during patching process
    - Alternative: 
        - check if externals have been checked out ->folder exists/.git in folder (previous execution of install.sh)
        - revert (cime, clm) to master state recursively `git reset --.`
- patching (copy files)
- Smarter way for patching? 
    
## Option parser (interface)
Execute
```
./prepare_nlp_cases.py
```
- Read setup file
- Read site.json
- In case of interactive session, content is changed dynamically
- Write new file (through self.parser.set)
- Use to execute the model

# Complex workflow
## Create surface dataset

## Create surface dataset


## Create vegetation setup

