Spaces:
Build error
Build error
jordancaraballo
commited on
Commit
•
b94f997
1
Parent(s):
2460703
Adding initial documentation and resources
Browse files- CONTRIBUTING.md +165 -0
- README.md +13 -0
- docs/TEM.md +5 -0
- requirements/Dockerfile +1 -0
CONTRIBUTING.md
ADDED
@@ -0,0 +1,165 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Contributing
|
2 |
+
|
3 |
+
When contributing to this repository, please first discuss the change you wish to make via issue,
|
4 |
+
email, or any other method with the owners of this repository before making a change.
|
5 |
+
|
6 |
+
Please note we have a code of conduct, please follow it in all your interactions with the project.
|
7 |
+
|
8 |
+
## Pull Request Process
|
9 |
+
|
10 |
+
1. Ensure any install or build dependencies are removed before the end of the layer when doing a
|
11 |
+
build.
|
12 |
+
2. Update the README.md with details of changes to the interface, this includes new environment
|
13 |
+
variables, exposed ports, useful file locations and container parameters.
|
14 |
+
3. Increase the version numbers in any examples files and the README.md to the new version that this
|
15 |
+
Pull Request would represent. The versioning scheme we use is [SemVer](http://semver.org/).
|
16 |
+
4. Regenerate any additional documentation using PDOC (usage details listed below).
|
17 |
+
5. Document the proposed changes in the CHANGELOG.md file.
|
18 |
+
6. You may submit your merge request for review and the change will be reviewed.
|
19 |
+
|
20 |
+
## Code of Conduct
|
21 |
+
|
22 |
+
### Our Pledge
|
23 |
+
|
24 |
+
In the interest of fostering an open and welcoming environment, we as
|
25 |
+
contributors and maintainers pledge to making participation in our project and
|
26 |
+
our community a harassment-free experience for everyone, regardless of age, body
|
27 |
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
28 |
+
nationality, personal appearance, race, religion, or sexual identity and
|
29 |
+
orientation.
|
30 |
+
|
31 |
+
### Our Standards
|
32 |
+
|
33 |
+
Examples of behavior that contributes to creating a positive environment
|
34 |
+
include:
|
35 |
+
|
36 |
+
* Using welcoming and inclusive language
|
37 |
+
* Being respectful of differing viewpoints and experiences
|
38 |
+
* Gracefully accepting constructive criticism
|
39 |
+
* Focusing on what is best for the community
|
40 |
+
* Showing empathy towards other community members
|
41 |
+
|
42 |
+
Examples of unacceptable behavior by participants include:
|
43 |
+
|
44 |
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
45 |
+
advances
|
46 |
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
47 |
+
* Public or private harassment
|
48 |
+
* Publishing others' private information, such as a physical or electronic
|
49 |
+
address, without explicit permission
|
50 |
+
* Other conduct which could reasonably be considered inappropriate in a
|
51 |
+
professional setting
|
52 |
+
|
53 |
+
### Our Responsibilities
|
54 |
+
|
55 |
+
Project maintainers are responsible for clarifying the standards of acceptable
|
56 |
+
behavior and are expected to take appropriate and fair corrective action in
|
57 |
+
response to any instances of unacceptable behavior.
|
58 |
+
|
59 |
+
Project maintainers have the right and responsibility to remove, edit, or
|
60 |
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
61 |
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
62 |
+
permanently any contributor for other behaviors that they deem inappropriate,
|
63 |
+
threatening, offensive, or harmful.
|
64 |
+
|
65 |
+
### Scope
|
66 |
+
|
67 |
+
This Code of Conduct applies both within project spaces and in public spaces
|
68 |
+
when an individual is representing the project or its community. Examples of
|
69 |
+
representing a project or community include using an official project e-mail
|
70 |
+
address, posting via an official social media account, or acting as an appointed
|
71 |
+
representative at an online or offline event. Representation of a project may be
|
72 |
+
further defined and clarified by project maintainers.
|
73 |
+
|
74 |
+
### Enforcement
|
75 |
+
|
76 |
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
77 |
+
reported by contacting the project team at [INSERT EMAIL ADDRESS]. All
|
78 |
+
complaints will be reviewed and investigated and will result in a response that
|
79 |
+
is deemed necessary and appropriate to the circumstances. The project team is
|
80 |
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
81 |
+
Further details of specific enforcement policies may be posted separately.
|
82 |
+
|
83 |
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
84 |
+
faith may face temporary or permanent repercussions as determined by other
|
85 |
+
members of the project's leadership.
|
86 |
+
|
87 |
+
### Attribution
|
88 |
+
|
89 |
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
90 |
+
available at [http://contributor-covenant.org/version/1/4][version]
|
91 |
+
|
92 |
+
[homepage]: http://contributor-covenant.org
|
93 |
+
[version]: http://contributor-covenant.org/version/1/4/
|
94 |
+
|
95 |
+
## Appendix
|
96 |
+
|
97 |
+
### Generating Documentation
|
98 |
+
|
99 |
+
This repository follows semi-automatic documentation generation. The following
|
100 |
+
is an example of how to generate documentation for a single module.
|
101 |
+
|
102 |
+
```bash
|
103 |
+
conda activate terragpu
|
104 |
+
pdoc --html terragpu/raster.py --force
|
105 |
+
```
|
106 |
+
|
107 |
+
### Linting
|
108 |
+
|
109 |
+
This project uses flake8 for PREP8 linting and format. Every submodule should include
|
110 |
+
a test section in the tests directory. Refer to the text directory for more examples.
|
111 |
+
The Python unittests library is used for these purposes.
|
112 |
+
|
113 |
+
### Documenting Methods
|
114 |
+
|
115 |
+
The following documentation format should be followed below each method to allow for
|
116 |
+
explicit semi-automatic documentation generation.
|
117 |
+
|
118 |
+
```bash
|
119 |
+
"""
|
120 |
+
Read raster and append data to existing Raster object
|
121 |
+
Args:
|
122 |
+
filename (str): raster filename to read from
|
123 |
+
bands (str list): list of bands to append to object, e.g ['Red']
|
124 |
+
chunks_band (int): integer to map object to memory, z
|
125 |
+
chunks_x (int): integer to map object to memory, x
|
126 |
+
chunks_y (int): integer to map object to memory, y
|
127 |
+
Return:
|
128 |
+
raster (raster object): raster object to manipulate rasters
|
129 |
+
----------
|
130 |
+
Example
|
131 |
+
----------
|
132 |
+
raster.readraster(filename, bands)
|
133 |
+
"""
|
134 |
+
```
|
135 |
+
|
136 |
+
### Format of CHANGELOG
|
137 |
+
|
138 |
+
The following describes the format for each CHANGELOG release. If there are no contributions
|
139 |
+
in any of the sections, they are removed from the description.
|
140 |
+
|
141 |
+
```bash
|
142 |
+
## [0.0.3] - 2020-12-14
|
143 |
+
|
144 |
+
### Added
|
145 |
+
- Short description
|
146 |
+
|
147 |
+
### Fixed
|
148 |
+
- Short description
|
149 |
+
|
150 |
+
### Changed
|
151 |
+
- Short description
|
152 |
+
|
153 |
+
### Removed
|
154 |
+
- Short description
|
155 |
+
|
156 |
+
### Approved
|
157 |
+
Approver Name, Email
|
158 |
+
```
|
159 |
+
|
160 |
+
### Example Using Container in ADAPT
|
161 |
+
|
162 |
+
```bash
|
163 |
+
module load singularity
|
164 |
+
singularity shell -B /att,/lscratch/jacaraba,/lscratch/jacaraba/singularity_tmp:/tmp,/adapt/nobackup/projects/ilab --nv terragpu/
|
165 |
+
```
|
README.md
CHANGED
@@ -1,2 +1,15 @@
|
|
1 |
# wildfire-occurrence
|
|
|
2 |
Wildfire occurrence modeling using Terrestrial Ecosystem Models and Artificial Intelligence
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# wildfire-occurrence
|
2 |
+
|
3 |
Wildfire occurrence modeling using Terrestrial Ecosystem Models and Artificial Intelligence
|
4 |
+
|
5 |
+
## Objectives
|
6 |
+
|
7 |
+
- Probabilistic wildfire occurrence model
|
8 |
+
- Model both occurrence, spread and risk of fire
|
9 |
+
- Create data pipeline between UAF TEM and NCCS/SMCE resources
|
10 |
+
- 30m local Alaska models, 1km circumpolar models
|
11 |
+
- Integration of precipitation, temperature and lightning datasets
|
12 |
+
|
13 |
+
## Contributors
|
14 |
+
|
15 |
+
- Jordan Alexis Caraballo-Vega, [email protected]
|
docs/TEM.md
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Terrestrial Ecosystem Model (TEM)
|
2 |
+
|
3 |
+
We leverage the TEM model from UAF, [ua-snap/dvm-dos-tem](https://github.com/ua-snap/dvm-dos-tem).
|
4 |
+
The first step to support this project is to build a GitHub pipeline for them to automatically
|
5 |
+
build their Docker containers and publish them.
|
requirements/Dockerfile
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
# main from tensorflow-caney or pytorch-caney
|