-
Notifications
You must be signed in to change notification settings - Fork 318
/
neon_surf_wrapper
executable file
·37 lines (30 loc) · 1.1 KB
/
neon_surf_wrapper
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env python3
"""
This is a just top-level skeleton script that calls
neon_surf_wrapper.py.
The original code (neon_surf_wrapper.py) is located under
python/ctsm/site_and_regional folder.
For full instructions on how to run the code and different options,
please check python/ctsm/site_and_regional/neon_surf_wrapper.py file.
This script is a simple wrapper for neon sites that performs the
following:
1) For neon sites, subset surface dataset from global dataset
(i.e. ./subset_data.py )
2) Download neon and update the created surface dataset
based on the downloaded neon data.
(i.e. modify_singlept_site_neon.py)
----------------------------------------------------------------
Instructions for running using conda python environments:
../../py_env_create
conda activate ctsm_pylib
"""
import os
import sys
# -- add python/ctsm to path
_CTSM_PYTHON = os.path.join(
os.path.dirname(os.path.realpath(__file__)), os.pardir, os.pardir, "python"
)
sys.path.insert(1, _CTSM_PYTHON)
from ctsm.site_and_regional.neon_surf_wrapper import main
if __name__ == "__main__":
main()