Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nitrogen Scripts #1

Merged
merged 7 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Data prep
"""
from loone.loone_q import LOONE_Q
from loone.loone_nut import LOONE_NUT
from loone.loone_wq import LOONE_Constituent_SimQ


LOONE_Q(
Expand All @@ -40,6 +41,8 @@ LOONE_NUT(
flow_df_filename="flow_df.csv",
forecast_mode=True,
)

LOONE_Constituent_SimQ(workspace="/path/to/workspace")
```


Expand Down Expand Up @@ -184,6 +187,7 @@ may_1st_lake_stage_below_11ft: "Chance of May 1st Lake stage falling below 11.0f
estuary_needs_water_input: "Estuary_needs_water_Input.csv"
eaa_mia_ro_inputs: "EAA_MIA_RUNOFF_Inputs.csv"
storage_deviation: "Storage_Dev.csv"
calibration_parameters: "Cal_Par.csv"

# tp variables regions
z_sed: 0.05 # m
Expand Down
4 changes: 4 additions & 0 deletions loone/data/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,7 @@ def __init__(self, working_path: str):
self.Stroage_dev_df = pd.read_csv(
os.path.join(self.data_dir, config["storage_deviation"])
)
# Read calibration parameters
self.Cal_Par = pd.read_csv(
os.path.join(self.data_dir, config["calibration_parameters"])
)
3 changes: 2 additions & 1 deletion loone/loone_nut/LOONE_NUT.py
Original file line number Diff line number Diff line change
Expand Up @@ -1196,8 +1196,9 @@ def LOONE_NUT(
pd.to_numeric(p_load_south) / MILLIGRAMS_IN_TON
) # tons

# Add total phosphorus (in southern region) and average phosphorus in the lake
# Add total phosphorus (in north and south regions) and average phosphorus in the lake
p_lake_df["P_Lake"] = pd.to_numeric(tp_lake_mean)
p_lake_df["TP_Lake_N"] = pd.to_numeric(tp_lake_n)
p_lake_df["TP_Lake_S"] = pd.to_numeric(tp_lake_s)

# Set the date as the index for the dataframe
Expand Down
Loading