Skip to content

Commit

Permalink
Add chla deep learning module
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Dec 8, 2024
1 parent 546bcba commit 16f6b29
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/chla.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# chla module

::: hypercoast.chla
16 changes: 16 additions & 0 deletions hypercoast/chla.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import torch
import torch.nn as nn
import numpy as np
from torch.utils.data import DataLoader, TensorDataset, random_split
import torch.nn.functional as F
from sklearn.preprocessing import MinMaxScaler, StandardScaler
import matplotlib.pyplot as plt
import seaborn as sns
import os
import scipy.io
import pandas as pd
import netCDF4 as nc
import rasterio
from rasterio.transform import from_origin
from rasterio.warp import reproject, Resampling
from scipy.interpolate import griddata
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ nav:
- workshops/pace.ipynb
- API Reference:
- aviris module: aviris.md
- chla module: chla.md
- common module: common.md
- desis module: desis.md
- emit module: emit.md
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ hypercoast = "hypercoast.cli:main"
[project.optional-dependencies]
all = [
"HyperCoast[extra]",
"HyperCoast[torch]",
]

extra = [
Expand All @@ -41,6 +42,7 @@ extra = [
"scikit-learn",
]

torch = ["pytorch", "seaborn"]

[tool]
[tool.setuptools.packages.find]
Expand Down

0 comments on commit 16f6b29

Please # to comment.