-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
82 changed files
with
2,609 additions
and
2,362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,9 @@ scipy | |
shapely | ||
shapely-geojson | ||
tqdm | ||
xarray-leaflet | ||
GDAL==$GDAL_VERSION | ||
bqplot | ||
numpy==$NUMPY_VERSION | ||
numpy | ||
geopandas | ||
matplotlib | ||
pandas | ||
|
@@ -20,36 +19,33 @@ geeadd | |
######## Google Earthengine ######## | ||
oauth2client | ||
google-api-python-client==1.12.8 | ||
git+https://github.com/openforis/[email protected].343#egg=earthengine-api&subdirectory=python | ||
git+https://github.com/openforis/[email protected].374#egg=earthengine-api&subdirectory=python | ||
oeel | ||
|
||
######## BFAST dependencies ######## | ||
wget | ||
Sphinx==2.2.0 | ||
sphinx-bootstrap-theme==0.7.1 | ||
Sphinx | ||
sphinx-bootstrap-theme | ||
numpydoc | ||
git+https://github.com/12rambau/bfast.git | ||
|
||
######## sepal modules ######## | ||
geemap | ||
Unidecode | ||
pyperclip | ||
python-dateutil | ||
pytesmo | ||
Wand | ||
PyPDF2 # more recent version are available (PyPDF4) | ||
PyPDF2 # more recent version are avaiable (PyPDF4) | ||
rasterio | ||
openpyxl | ||
pre-commit | ||
ipywidgets==7.7.2 | ||
ipyvuetify==1.8.2 | ||
|
||
|
||
######## web api ######## | ||
falcon | ||
gunicorn | ||
pyCrypto | ||
awscli | ||
awscli==1.11.18 # Pinned to prevent backtracking | ||
|
||
######## other deps ######## | ||
xarray | ||
|
@@ -58,8 +54,14 @@ dask-geopandas | |
nrt | ||
seaborn | ||
requests | ||
llvmlite | ||
coverage | ||
geetools | ||
geeadd | ||
geeup | ||
cogee | ||
xee | ||
torch | ||
torchvision | ||
|
||
######## OSK requirements ######## | ||
descartes | ||
|
@@ -70,12 +72,13 @@ imageio | |
rtree | ||
retrying | ||
Cython | ||
pyproj==2.6.1 # Require proj update before 3.0.0 can be installed | ||
pyproj | ||
|
||
######## Early Warning System for Canopy Disturbances in Ecuador (SATA) ######## | ||
nose | ||
nosexcover | ||
pylint | ||
click | ||
dateutils | ||
boto3 | ||
boto3==1.4.3 # Pinned to prevent backtracking | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import os | ||
import sys | ||
|
||
from docutils import ApplicationError | ||
|
||
|
||
def process_file(file_path): | ||
"""Process a single .rst file, checking for validity and fixing whitespace.""" | ||
try: | ||
with open(file_path, "r") as f: | ||
content = f.read() | ||
# publish_string(source=content, writer_name="null") # Validate RST | ||
with open(file_path, "w") as f: | ||
f.writelines([line.rstrip() + "\n" for line in content.splitlines()]) | ||
print("done") | ||
except (IOError, ApplicationError) as e: | ||
print(f"Skipping file {file_path}: {e}") | ||
|
||
|
||
def process_directory(path): | ||
"""Process all .rst files in a directory.""" | ||
for root, dirs, files in os.walk(path): | ||
for file in files: | ||
if file.endswith(".rst"): | ||
process_file(os.path.join(root, file)) | ||
|
||
|
||
def main(): | ||
"""Main function for the script.""" | ||
if len(sys.argv) != 2: | ||
print(f"Usage: {sys.argv[0]} path_or_file") | ||
sys.exit(1) | ||
|
||
path_or_file = sys.argv[1] | ||
if os.path.exists(path_or_file): | ||
if os.path.isdir(path_or_file): | ||
process_directory(path_or_file) | ||
else: | ||
process_file(path_or_file) | ||
else: | ||
print(f"The path {path_or_file} does not exist.") | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<div class="community"> | ||
<a href="https://groups.google.com/g/sepal-users"> | ||
<span class="mr-1">ask the community</span> | ||
<span class="mr-1" | ||
>For general support, ask the Google Group community</span | ||
> | ||
<i class="fa-solid fa-comments"></i> | ||
</a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.. danger:: | ||
.. attention:: | ||
|
||
This section is intended for the Sepal team members only. If you ended up here there is no need to read this documentation, You'll not have access to the referred tools | ||
The **SEPAL team documentation** section was developed for SEPAL team members only. While contributors and collaborators are encouraged to review these articles, they are not mandatory for general SEPAL users. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<div class="e-learning"> | ||
<a href="https://www.fao.org/in-action/sepal/resources/certified-course/en"> | ||
<span class="mr-1">Register for the e-learning course</span> | ||
<span class="mr-1">For training, register for the e-learning course</span> | ||
<i class="fa-solid fa-book-open"></i> | ||
</a> | ||
</div> |
Oops, something went wrong.