From 8e80532b3733b522afa95a57fc025017bd0ebfec Mon Sep 17 00:00:00 2001 From: Martin Schobben Date: Fri, 19 Jul 2024 14:09:40 +0200 Subject: [PATCH] ignore data --- .gitignore | 3 +++ notebooks/Makefile | 45 --------------------------------------------- 2 files changed, 3 insertions(+), 45 deletions(-) delete mode 100644 notebooks/Makefile diff --git a/.gitignore b/.gitignore index 5a98549..ba8f9d7 100644 --- a/.gitignore +++ b/.gitignore @@ -134,3 +134,6 @@ dmypy.json # Ephemeral .nfs files .nfs* +data/s1_parameters/S1_CSAR_IWGRDH/PLIA-TAG/V01R03/EQUI7_EU020M/E054N006T3/PLIA-TAG-MEAN_20200101T000000_20201231T235959__D080_E054N006T3_EU020M_V01R03_S1IWGRDH.nc +data/s1_parameters/S1_CSAR_IWGRDH/SIG0/V1M1R1/EQUI7_EU020M/E054N006T3/SIG0_20180228T043908__VV_D080_E054N006T3_EU020M_V1M1R1_S1AIWGRDH_TUWIEN.nc +data/tuw_s1_harpar/S1_CSAR_IWGRDH/SIG0-HPAR/V0M2R3/EQUI7_EU020M/E054N006T3/D080.nc diff --git a/notebooks/Makefile b/notebooks/Makefile deleted file mode 100644 index a50f195..0000000 --- a/notebooks/Makefile +++ /dev/null @@ -1,45 +0,0 @@ -.ONESHELL: -SHELL = /bin/bash -.PHONY: help clean environment kernel post-render data -YML = $(wildcard chapters/*.yml) -QMD = $(wildcard chapters/*.qmd) -REQ = $(basename $(notdir $(YML))) -CONDA_ENV_DIR := $(foreach i,$(REQ),$(shell conda info --base)/envs/$(i)) -KERNEL_DIR := $(foreach i,$(REQ),$(shell jupyter --data-dir)/kernels/$(i)) -CONDA_ACTIVATE = source $$(conda info --base)/etc/profile.d/conda.sh ; conda activate ; conda activate - -help: - @echo "make clean" - @echo " clean all jupyter checkpoints" - @echo "make environment" - @echo " create a conda environment" - @echo "make kernel" - @echo " make ipykernel based on conda lock file" - -clean: - rm --force --recursive .ipynb_checkpoints/ - for i in $(REQ); do conda remove -n $$i --all -y ; jupyter kernelspec uninstall -y $$i ; done - -$(CONDA_ENV_DIR): - for i in $(YML); do conda env create -f $$i; done - -environment: $(CONDA_ENV_DIR) - @echo -e "conda environments are ready." - -$(KERNEL_DIR): $(CONDA_ENV_DIR) - pip install --upgrade pip - pip install jupyter - for i in $(REQ); do $(CONDA_ACTIVATE) $$i ; python -m ipykernel install --user --name $$i --display-name $$i ; conda deactivate; done - -kernel: $(KERNEL_DIR) - @echo -e "conda jupyter kernel is ready." - -post-render: - for i in $(QMD); do quarto convert $$i; done - - mv chapters/*.ipynb notebooks/ >/dev/null 2>&1 - - for f in chapters/*.quarto_ipynb ; do mv -- "$f" "${f%.quarto_ipynb}.ipynb" >/dev/null 2>&1; done - cp Makefile notebooks/ - -data: - wget -q -P ./data https://cloud.geo.tuwien.ac.at/s/AezWMFwmFQJsKyr/download/floodmap.zip - cd data && unzip -n floodmap.zip && rm floodmap.zip \ No newline at end of file