Skip to content

Commit 27686cd

Browse files
committed
update configuration and TODO files
1 parent 64f7f3c commit 27686cd

3 files changed

Lines changed: 63 additions & 4 deletions

File tree

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ It is compound by a list of subpackages that focus on:
88
|---------------------------------|----------------------------------------------------------|---------------|
99
| environmentaltools.data | Download environmental data from various sources (CMEMS) | Estable |
1010
| environmentaltools.estuaries | Saint-Venant equations for estuarine dynamics | En desarrollo |
11+
| environmentaltools.examples | Full catalog of examples of each package | Estable |
1112
| environmentaltools.graphics | Visualization tools for environmental data | Estable |
1213
| environmentaltools.processes | Wave modeling and environmental processes (SWAN, COPLA) | Estable |
1314
| environmentaltools.spatial | Geospatial analysis and topography/bathymetry processing | Estable |
@@ -16,12 +17,17 @@ It is compound by a list of subpackages that focus on:
1617
| environmentaltools.temporal | Time series processing and statistical characterization | En desarrollo |
1718
| environmentaltools.utils | Auxiliary utilities for data handling and processing | Estable |
1819

20+
The tool is developed by Manuel Cobos (https://github.es/mcobosb) as part of the **Environmental Fluid Dynamics (GDFA)** team of the University of Granada. The GDFA whishes a good experience in learning process. Enjoy it!
1921

2022
## Subpackages description
2123

2224
### **data** subpackage
2325
The *data* subpackage provides tools for downloading environmental data from various online sources. It includes automated functions to access and retrieve data from the **Marine Copernicus Service (CMEMS)**, allowing users to download oceanographic variables (sea surface temperature, currents, wave data, etc.) for specific spatial domains, depth ranges, and time periods. This module simplifies the process of obtaining high-quality environmental data for analysis and modeling purposes.
2426

27+
### **examples** subpackage
28+
In the *example** folder can be found a list of Jupyter Notebooks. Each one described how to run the code and how to use the main functions included in *environmentaltools*.
29+
30+
2531
### **estuaries** subpackage
2632
The *estuaries* subpackage implements numerical solutions for the **Saint-Venant equations** applied to estuarine dynamics. It provides tools to simulate hydrodynamic processes in estuaries, including water level variations, flow velocities, salinity transport, and density computations. The module is designed to study the consequences of natural and anthropogenic actions in estuarine environments, supporting management and decision-making processes for coastal water bodies.
2733

@@ -45,10 +51,6 @@ The subpackage *temporal* package aimed at providing users with a friendly, gene
4551

4652
The tools implemented in the package named *temporal* allow to capture the statistical properties of a **non stationary (NS) vector RP** by using **compound or piecewise parametric PMs** to properly describe all the range of values and to **simulate uni- or multivariate time series** with the same random behavior. The statistical parameters of the distributions are assumed to depend on time and are expanded into a Generalized Fourier Series (GFS) [["5"]](#5) in order to reproduce their NS behavior. The applicability of the present approach has been illustrated in several works with different purposes, among others: (i) the observed wave climate variability in the preceding century and expected changes in projections under a climate change scenario [["6"]](#6); (ii) the optimal design and management of an oscillating water column system [["7"]](#7) [["8"]](#8), (iii) the planning of maintenance strategies of coastal structures [["9"]](#9), (iv) the analysis of monthly Wolf sunspot number over a 22 year period [["5"]](#5), and (v) the simulation of estuarine water conditions for the management of the estuary [["10"]](#10).
4753

48-
In the **example folder** can be found a list of Jupyter Notebooks. Each one described how to run the code and how to use the main functions included in *environmentaltools*.
49-
50-
The **Environmental Fluid Dynamics** team of the University of Granada whishes a good experience in learning process. Enjoy it!
51-
5254
### **utils** subpackage
5355
The *utils* subpackage contains a collection of **auxiliary utilities** that support the functionality of other modules within the package. It includes functions for data loading and saving in various formats (NetCDF, CSV, pickle), file reading and writing operations, data manipulation and transformation, xarray dataset utilities, and miscellaneous helper functions. The module provides a consistent interface for common operations across the package, improving code reusability and maintainability.
5456

TODO.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
🧩 General
2+
- [ ] Define pyproject.toml with modular extras
3+
- [ ] Add installation instructions for partial environments on README.md
4+
- [ ] Include module table and usage examples in README.md
5+
- [ ] Prepare conda-forge recipe for staged-recipes submission
6+
7+
📦 pyproject.toml
8+
- [ ] Update common dependencies (os, time, pathlib, dotenv, typing, logging, datetime) - Line 34
9+
10+
🧪 Examples
11+
- [ ] Run examples and check that works fine
12+
- [ ] Revise examples, input data, results and output graphics
13+
14+
15+
## 📂 Module-specific TODOs
16+
17+
### spatiotemporal.raster.analysis
18+
- [ ] Check that level series files exist - Line 67
19+
- [ ] Validate that max_level has data for all months and years - Line 67
20+
- [ ] Implement additional pre-treatment steps as required - Line 227
21+
22+
### temporal
23+
- [ ] Update initialization message in analysis.py - Line 30
24+
- [ ] Update docstring for simulation function - Line 62 in simulation.py
25+
- [ ] Update docstring for _summary_ function - Line 441 in simulation.py
26+
- [ ] Implement non-normal multivariate analysis (currently only normal distribution) - Line 523 in simulation.py
27+
- [ ] Review value of 1e-6 subtraction in CDF to avoid 1.0 values - Line 355 in regimes.py
28+
- [ ] Review peaks selection function for POT analysis - Line 398 in regimes.py
29+
- [ ] Check groupby count with monthly average weights - Line 221 in analysis.py
30+
- [ ] Check logic that doesn't make much sense - Line 616 in analysis.py
31+
- [ ] Verify that True option works correctly - Line 621 in analysis.py
32+
- [ ] Implement handling for mixed functions - Line 959 in analysis.py
33+
- [ ] Modify function for storm separation (should not fill gaps) - Line 1025 in analysis.py
34+
- [ ] Remove temporary fix for calm period indices (waiting for Pedro's fix) - Line 1124 in analysis.py
35+
- [ ] Modify for more refined and understandable version - Line 1527 in statistical_fit.py
36+
37+
### utils
38+
- [ ] Implement nearest neighbor function separately - Line 361 in read.py
39+
- [ ] Change implementation for more than one variable in dataframe conversion - Line 362 in read.py
40+
- [ ] Enable multi-page reading - Line 707 in read.py
41+
- [ ] Include morphology options - Line 111 in load.py
42+
- [ ] Load paths from a file instead of hardcoding - Line 25 in cme.py
43+
- [ ] Improve parameter extraction for order 1 Fourier series - Line 396 and 1430 in auxiliar.py
44+
- [ ] Fix discontinuity limitation - Line 481 and 1515 in auxiliar.py
45+
- [ ] Separate by Fourier order - Line 504 and 1538 in auxiliar.py
46+
- [ ] Generalize for more than two functions - Line 606 and 1640 in auxiliar.py
47+
- [ ] Verify calculation - Line 864 in auxiliar.py
48+
- [ ] Change hardcoded value 51 to a target value - Line 1352 in auxiliar.py
49+
50+

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ classifiers = [
3131
]
3232
license = "GPL-3.0-or-later"
3333
license-files = ["LICENSE"]
34+
dependencies = ["os", "time", "pathlib", "dotenv", "typing", "logging", "datetime"] # TODO: update-comunes
35+
36+
[project.optional-dependencies]
37+
donwload = ["rioxarray", "matplotlib"]
38+
spatiotemporal-raster = ["scipy"]
39+
spectral = [""]
40+
temporal = ["scipy"]
3441

3542
[project.urls]
3643
Homepage = "https://example.com"

0 commit comments

Comments
 (0)