-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from bcgov/feat/37-update-fwx-pipe
Feat/37 update fwx pipe
- Loading branch information
Showing
15 changed files
with
1,724 additions
and
62 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
File renamed without changes.
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 |
---|---|---|
|
@@ -66,3 +66,5 @@ old_scripts/** | |
data/** | ||
scripts/python/tests/test_data/** | ||
|
||
venv_win/** | ||
|
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,83 @@ | ||
[tool.poetry] | ||
name = "climate-obs" | ||
version = "0.1.0" | ||
description = "scripts used to pull and transform climate observations related data" | ||
authors = ["Kevin Netherton <kevin.netherton@gov.bc.ca>"] | ||
license = "apache" | ||
readme = "README.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.11,<3.13" | ||
nr-objstore-util = "^0.10.0" | ||
requests = "^2.31.0" | ||
beautifulsoup4 = "^4.12.2" | ||
python-dotenv = "^1.0.0" | ||
pandas = "^2.1.1" | ||
|
||
|
||
[tool.poetry.group.dev.dependencies] | ||
black = "23.9.1" | ||
ruff = "^0.0.292" | ||
mypy = "^1.5.1" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.ruff] | ||
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default. | ||
select = ["E", "F"] | ||
ignore = [] | ||
|
||
# Allow fix for all enabled rules (when `--fix`) is provided. | ||
fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"] | ||
unfixable = [] | ||
|
||
# Exclude a variety of commonly ignored directories. | ||
exclude = [ | ||
".bzr", | ||
".direnv", | ||
".eggs", | ||
".git", | ||
".git-rewrite", | ||
".hg", | ||
".mypy_cache", | ||
".nox", | ||
".pants.d", | ||
".pytype", | ||
".ruff_cache", | ||
".svn", | ||
".tox", | ||
".venv", | ||
"__pypackages__", | ||
"_build", | ||
"buck-out", | ||
"build", | ||
"dist", | ||
"node_modules", | ||
"venv", | ||
"venv_win", | ||
"tmp", | ||
"data", | ||
"scripts/r", | ||
"renv", | ||
"old_scripts", | ||
"junk", | ||
"docs", | ||
"cicd", | ||
"virtualenvs", | ||
"usr/lib" | ||
] | ||
|
||
# Same as Black. | ||
line-length = 88 | ||
|
||
# Allow unused variables when underscore-prefixed. | ||
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" | ||
|
||
# Assume Python 3.8 | ||
target-version = "py38" | ||
|
||
[tool.ruff.mccabe] | ||
# Unlike Flake8, default to a complexity level of 10. | ||
max-complexity = 10 |
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,69 @@ | ||
# auto generated using: https://json2pyi.pages.dev/#Dataclass | ||
|
||
from __future__ import annotations | ||
|
||
from typing import Any, List, TypedDict, Union | ||
|
||
|
||
class WeatherStation(TypedDict): | ||
type: str | ||
elevation: float | ||
fineFuelMoistureCode: float | ||
fireCentre: str | ||
fireWeatherIndex: float | ||
geometry: Geometry | ||
initialSpreadIndex: float | ||
links: List[Any] | ||
precipPluvio1Status: float | ||
precipPluvio1Total: float | ||
precipPluvio2Status: float | ||
precipPluvio2Total: float | ||
precipRitTotalPrecipRGT: float | ||
precipitation: float | ||
recordType: str | ||
relativeHumidity: float | ||
rn1Pluvio1: None | ||
rn1Pluviop2: float | ||
rn1RitPrecipRitStatus: float | ||
snowDepth: float | ||
snowDepthQuality: None | ||
solarRadiationCM3: None | ||
solarRadiationLicor: float | ||
stationAcronym: str | ||
stationCode: str | ||
stationName: str | ||
temperature: float | ||
weatherTimestamp: str | ||
windDirection: float | ||
windGust: float | ||
windSpeed: float | ||
|
||
class Geometry(TypedDict): | ||
coordinates: List[float] | ||
crs: Crs | ||
type: str | ||
|
||
class Crs(TypedDict): | ||
properties: Properties | ||
type: str | ||
|
||
class Properties(TypedDict): | ||
name: str | ||
|
||
|
||
class Station(TypedDict): | ||
type: str | ||
aspect: Union[str, None] | ||
elevation: float | ||
fireCentre: str | ||
fireZone: str | ||
geometry: Geometry | ||
latitude: float | ||
links: List[Any] | ||
longitude: float | ||
overwinterPrecipInd: bool | ||
pluvioSnowGaugeInd: bool | ||
slope: Union[None, float] | ||
stationAcronym: Union[str, None] | ||
stationCode: str | ||
stationName: str |
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
Oops, something went wrong.