Skip to content

Commit

Permalink
remove unused lib in preprocessing and make some small changes in Mak…
Browse files Browse the repository at this point in the history
…efile
  • Loading branch information
elpamart authored and alexeh committed Oct 9, 2023
1 parent 687bbd8 commit cb2866d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions data/preprocessing/nutrient_load_reduction/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ checksums_dir=../../../../h3_data_importer/data_checksums
AWS_S3_BUCKET_URL=s3://landgriffon-raw-data

# Targets
.PHONY: unzip-limiting-nutrient
.PHONY: unzip-limiting-nutrient process-limiting-nutrients zip-shapefile upload_results write_checksum:

all: unzip-limiting-nutrient
all: unzip-limiting-nutrient process-limiting-nutrients zip-shapefile upload_results write_checksum:

# First you need to download the data manually from https://figshare.com/articles/figure/DRP_NO3_TN_TP_rasters/14527638/1?file=31154728 and save it in nutrient_load_reduction/data
unzip-limiting-nutrient:
Expand Down
6 changes: 3 additions & 3 deletions data/preprocessing/nutrient_load_reduction/process_data.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
""" Reads the limiting nutrients equal area vector file, reporjects the file to EPSG4326 and estimates the percentage of reduction needed to meet a good water quality conditions.
Usage:
process_data.py <folder>
process_data.py <input_folder> <output_folder>
Arguments:
<folder> Folder containing the limiting nutrients shapefile
<input_folder> Input folder containing the limiting nutrients shapefile
<output_folder> Output folder to export the required percentage reduction
"""
import os
import logging
from pathlib import Path
import argparse
Expand Down

0 comments on commit cb2866d

Please sign in to comment.