Skip to content

Commit 0c09a87

Browse files
Merge pull request #12 from supathdhitalGEO/main
Sphinx documentation and Preprint Citation
2 parents 0f7ac59 + 20ee2e6 commit 0c09a87

12 files changed

+543
-3
lines changed

Makefile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?=
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = source
9+
BUILDDIR = build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

README.md

+20-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ This FIMserv framework is published as python package and published on [PyPI](ht
3131
```bash
3232
FIMserv/
3333
├── docs/ # Documentation (contains 'FIMserv' Tool usage sample codes)
34+
│ ├── source/ #Contains sphinx documentation (under development)
35+
│ ├──code_usage.ipynb #Contains the detailed documentation
36+
│ └── FIMin3Steps.ipynb #Focusing only on FIM generation within 3 steps
3437
├── GeoGLOWS/ # Streamflow download using GeoGLOWS hydrofabrics
3538
├── src/
3639
│ └── fimserve/
@@ -118,7 +121,23 @@ Use Google Colab. Here is **Detailed code Usage of FIMserv in Google Colab**: [!
118121

119122
**Different HUC8 IDs, USGS gauge stations and flowline information that might be required to further understand/running this framework can be found in this <a href="https://ualabama.maps.arcgis.com/apps/instant/basic/index.html?appid=88789b151b50430d8e840d573225b36b" target="_blank">ArcGIS Instant App</a>.**
120123

121-
124+
### **Citing This Tool**
125+
**Using BibTex Citation**
126+
```
127+
@article{Baruah2025FIMserv,
128+
author = {Anupal Baruah and Supath Dhital and Sagy Cohen and others},
129+
title = {{FIMserv v.1.0: A Tool for Streamlining Flood Inundation Mapping (FIM) Using the United States Operational Hydrological Forecasting Framework}},
130+
journal = {ESS Open Archive},
131+
year = {2025},
132+
month = {February 18},
133+
doi = {10.22541/essoar.173991613.37443127/v1}
134+
}
135+
```
136+
**OR for other format**,
137+
```
138+
Anupal Baruah, Supath Dhital, Sagy Cohen, et al. FIMserv v.1.0: A Tool for Streamlining Flood Inundation Mapping (FIM) Using the United States Operational Hydrological Forecasting Framework. ESS Open Archive . February 18, 2025.
139+
DOI: 10.22541/essoar.173991613.37443127/v1
140+
```
122141
### **Acknowledgements**
123142
<hr style="border: 1px solid black; margin: 0;">
124143

docs/source/FIMin3Steps.rst

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FIM in a 3 Steps
2+
====================================
3+
It takes only three steps to generate flood inundation maps using the NOAA OWP framework. First, get the HUC8 level data, get streamflow data and run the framework.
91.7 KB
Loading

docs/source/conf.py

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Configuration file for the Sphinx documentation builder.
2+
#
3+
# This file only contains a selection of the most common options. For a full
4+
# list see the documentation:
5+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
6+
7+
# -- Path setup --------------------------------------------------------------
8+
9+
# If extensions (or modules to document with autodoc) are in another directory,
10+
# add these directories to sys.path here. If the directory is relative to the
11+
# documentation root, use os.path.abspath to make it absolute, like shown here.
12+
#
13+
# import os
14+
# import sys
15+
# sys.path.insert(0, os.path.abspath('.'))
16+
17+
18+
# -- Project information -----------------------------------------------------
19+
20+
project = 'FIMserv'
21+
copyright = '2025, Surface Dynamics Modeling Lab (SDML)'
22+
author = 'Surface Dynamics Modeling Lab (SDML)'
23+
24+
25+
# -- General configuration ---------------------------------------------------
26+
27+
# Add any Sphinx extension module names here, as strings. They can be
28+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
29+
# ones.
30+
extensions = [
31+
]
32+
33+
# Add any paths that contain templates here, relative to this directory.
34+
templates_path = ['_templates']
35+
36+
# The language for content autogenerated by Sphinx. Refer to documentation
37+
# for a list of supported languages.
38+
#
39+
# This is also used if you do content translation via gettext catalogs.
40+
# Usually you set "language" from the command line for these cases.
41+
language = 'python'
42+
43+
# List of patterns, relative to source directory, that match files and
44+
# directories to ignore when looking for source files.
45+
# This pattern also affects html_static_path and html_extra_path.
46+
exclude_patterns = []
47+
48+
49+
# -- Options for HTML output -------------------------------------------------
50+
51+
# The theme to use for HTML and HTML Help pages. See the documentation for
52+
# a list of builtin themes.
53+
#
54+
html_theme = 'alabaster'
55+
56+
# Add any paths that contain custom static files (such as style sheets) here,
57+
# relative to this directory. They are copied after the builtin static files,
58+
# so a file named "default.css" will overwrite the builtin "default.css".
59+
html_static_path = ['_static']
60+
61+
# Remove the "Powered by Sphinx" footer
62+
html_show_sphinx = False
63+
64+
# Customize the copyright footer
65+
html_theme_options = {
66+
"footer_text": "© 2025, Surface Dynamics Modeling Lab (SDML)."
67+
}
68+
# Remove "Page source" link from the footer
69+
html_show_sourcelink = False

docs/source/detailedusage.rst

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Detailed functionality
2+
====================================
3+
It contains each functionality of the FIMserv framework in detail.

docs/source/getting_started.rst

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Getting Started
2+
====================================
3+
Contains the basic information to get you started with fimserve.

docs/source/index.rst

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Welcome to FIMserv's documentation!
2+
====================================
3+
4+
This framework presents a streamlined, user-friendly, and cloud-enabled pipeline
5+
to generate operational flood inundation maps using the NOAA Office of Water Prediction (OWP)
6+
Height Above Nearest Drainage (HAND) Flood Inundation Mapping (FIM) framework.
7+
It is developed under the Surface Dynamics Modeling Lab (SDML) as part of a project funded
8+
by the Cooperative Institute for Research to Operations in Hydrology (CIROH).
9+
10+
.. image:: _static/graphicaloverview.png
11+
:alt: Project Logo
12+
:align: center
13+
:width: 1000px
14+
15+
.. toctree::
16+
:maxdepth: 2
17+
:caption: Contents:
18+
19+
getting_started
20+
installation
21+
FIMin3Steps
22+
detailedusage

docs/source/installation.rst

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Installation guide
2+
====================================
3+
It contains the installation guide for the FIMserv framework in local, cloud as well as for the workfolows using poetry.

make.bat

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
@ECHO OFF
2+
3+
pushd %~dp0
4+
5+
REM Command file for Sphinx documentation
6+
7+
if "%SPHINXBUILD%" == "" (
8+
set SPHINXBUILD=sphinx-build
9+
)
10+
set SOURCEDIR=source
11+
set BUILDDIR=build
12+
13+
%SPHINXBUILD% >NUL 2>NUL
14+
if errorlevel 9009 (
15+
echo.
16+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
17+
echo.installed, then set the SPHINXBUILD environment variable to point
18+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
19+
echo.may add the Sphinx directory to PATH.
20+
echo.
21+
echo.If you don't have Sphinx installed, grab it from
22+
echo.https://www.sphinx-doc.org/
23+
exit /b 1
24+
)
25+
26+
if "%1" == "" goto help
27+
28+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
29+
goto end
30+
31+
:help
32+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
33+
34+
:end
35+
popd

0 commit comments

Comments
 (0)