Skip to content

Commit e1eae21

Browse files
initial commit
0 parents  commit e1eae21

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+8013
-0
lines changed

.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
venv/
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
*.so
6+
7+
.DS_Store
8+
9+
__pycache__/
10+
*.pyc
11+
12+
.pytest_cache/
13+
.idea
14+
15+
venv/
16+
__pycache__/
17+
*.py[cod]
18+
*$py.class
19+
*.so
20+
21+
.DS_Store
22+
23+
__pycache__/
24+
*.pyc
25+
26+
.pytest_cache/
27+
.idea
28+
29+
notebooks/.ipynb_checkpoints
30+
*.log
31+
32+
src/garpos_tools/garpos/
33+
src/garpos_tools/build/
34+
*.egg-info

.gitlab-ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
include:
2+
- project: earthscope/infrastructure/gitlab-ci
3+
ref: "latest"
4+
file: project-template-library-python.yml
5+
6+
variables:
7+
CONTAINER_REGISTRY_PLATFORM: "AWS-PUB"
8+
9+

LICENSE

Whitespace-only changes.

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# EarthScope Seafloor Geodesy Tools
2+
3+
This repo contains a python library `es_sfgtools` designed to enable users to preprocess raw GNSS-A data from SV2 and SV3 wavegliders, as well as run GNSS-A processing using [GARPOS](https://github.com/s-watanabe-jhod/garpos)
4+
5+
The library will be published on PyPi, and installable as follows
6+
7+
> pip install es_sfgtools

TODO.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
- SV2 processing
2+
--Change dfpo00 processing to use validation from SV1 processing
3+
--Adjust Ping/Return time units to be seconds of the day
4+
--Test garpos pipeline on SV2 data
5+
6+
- JupyterHub
7+
-- Create data-loader/catalogger class that handles merging/visuals
8+
-- Integrate intermediate file processing with the generalized data handler
9+
--- Test out intermediate to final processing with functions in dev_datahandler
10+
11+
- Make downloading multithreaded

pyproject.toml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[build-system]
2+
requires = ["setuptools>=62.6", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "es_sfgtools"
7+
version ="0.0.1"
8+
authors = [
9+
{ name="Mike Gottlieb", email="mike.gottlieb@earthscope.org" },
10+
{ name="Franklyn Dunbar",email="franklyn.dunbar@earthscope.org"},
11+
{ name="Rachel Terry", email="rachel.terry@earthscope.org"}
12+
]
13+
description = "Utilities for translating and processing Seafloor Geodesy data"
14+
readme = "README.md"
15+
license = { file="LICENSE" }
16+
requires-python = ">= 3.10"
17+
classifiers = [
18+
"Programming Language :: Python :: 3",
19+
"Operating System :: OS Independent",
20+
]
21+
dynamic = ["dependencies", "optional-dependencies"]
22+
23+
[tool.setuptools.dynamic]
24+
dependencies = {file = ["requirements.txt"]}
25+
optional-dependencies = {dev = { file = ["requirements-dev.txt"] }}
26+
27+
[project.urls]
28+
"Homepage" = "https://gitlab.com/earthscope/public/seafloor-geodesy"

requirements-dev.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
black==22.1.0
2+
build==0.7.0
3+
pytest==7.1.1
4+
twine==3.8.0
5+
pandera
6+
pydantic
7+
julian
8+
numpy

requirements.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
boto3
2+
botocore
3+
numpy
4+
pandas
5+
julian
6+
pyarrow
7+
pandera
8+
pydantic
9+
pyproj
10+
pymap3d
11+
tqdm
12+
earthscope-sdk
13+
earthscope-cli
14+
ipywidgets
15+
matplotlib
16+
seaborn
17+
folium

src/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from .es_sfgtools import schemas, utils
2+
from .env import get_env, get_env_required
3+
from .pipeline.temp import DataHandler

src/env.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import os
2+
3+
4+
def get_env(key: str, default: str = None) -> str:
5+
return os.environ.get(key, default=default)
6+
7+
8+
def get_env_required(key: str) -> str:
9+
try:
10+
return os.environ[key]
11+
except KeyError:
12+
raise KeyError(f"The required environment variable `{key}` is missing")

0 commit comments

Comments
 (0)