Commit 025726c6 authored by Roelofsen, Hans's avatar Roelofsen, Hans
Browse files

pointing to new XLS for EUNIS info

parent c654d67f
......@@ -20,4 +20,4 @@ echo $SLURM_ARRAY_TASK_ID
# Run
cd /home/WUR/roelo008/projs/doren_2019
python run_species.py $SLURM_ARRAY_TASK_ID 50 doren_20201208.pkl
\ No newline at end of file
python run_species.py $SLURM_ARRAY_TASK_ID 50 doren_20201209.pkl
\ No newline at end of file
......@@ -570,16 +570,16 @@ class Doren:
"""
# Read naming conventions and downstream classifcation of EUNIS types
eunis_new_cats = pd.read_excel(r'c:\Users\roelo008\Wageningen University & Research\DOREN - General\EUNIS\EUNIS-classification.xlsx',
sheet_name='eindlijst opgeschoond')
eunis_old_cats = pd.read_excel(r'c:\Users\roelo008\Wageningen University & Research\DOREN - General\EUNIS\Selectie_oude_EUNIS_typecodes.xlsx',
sheet_name='eindlijst opgeschoond')
eunis_new_cats = pd.read_excel(r'c:\Users\roelo008\Wageningen University & Research\DOREN - General\DOREN-2020-12-02.xlsx',
sheet_name='EUNIS_structuur')
eunis_old_cats = pd.read_excel(r'c:\Users\roelo008\Wageningen University & Research\DOREN - General\DOREN-2020-12-02.xlsx',
sheet_name='oude_EUNIS_structuur')
eunis_new_cats.fillna(value='?', inplace=True)
eunis_old_cats.fillna(value='?', inplace=True)
# mappings from old/new eunis types to Wieger Wamelink categories. Also include "?" as key
eunis_new2structuur = {**dict(zip(eunis_new_cats.eunis_code, eunis_new_cats.type)), **{'?': '?'}}
eunis_new2bos = {**dict(zip(eunis_new_cats.eunis_code, eunis_new_cats.hoog_laag)), **{'?': '?'}}
eunis_new2structuur = {**dict(zip(eunis_new_cats.eunis, eunis_new_cats.type)), **{'?': '?'}}
eunis_new2bos = {**dict(zip(eunis_new_cats.eunis, eunis_new_cats.hoog_laag)), **{'?': '?'}}
eunis_old2structuur = {**dict(zip(eunis_old_cats.EUNIS_OLD, eunis_old_cats.type)), **{'?': '?'}}
eunis_old2bos = {**dict(zip(eunis_old_cats.EUNIS_OLD, eunis_old_cats.hoog_laag)), **{'?': '?'}}
......@@ -622,6 +622,9 @@ class Doren:
# Append unique structuurtypes as a list
self.structuurtypes = [x for x in set(self.eva.structuurtype) if x != '?']
self.report += 'De structuurtypes zijn: \n'
self.report += '\n'.join(self.structuurtypes)
def select_plts_w_species(self, species_name):
"""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment