comparison med_environ.py @ 1:b79faea33a8a draft

planemo upload for repository https://github.com/jeremyfix/medenv commit 56fa523a7852e06962a05a05224ca193c25e20bc
author ecology
date Sat, 24 Feb 2024 18:12:18 +0000
parents f82f266381be
children
comparison
equal deleted inserted replaced
0:f82f266381be 1:b79faea33a8a
61 features = args.variables.split(",") 61 features = args.variables.split(",")
62 fetcher = medenv.Fetcher(features, reduction="mean") 62 fetcher = medenv.Fetcher(features, reduction="mean")
63 63
64 # Loads the input dataset 64 # Loads the input dataset
65 df = pd.read_csv(args.datafile, sep="\t") 65 df = pd.read_csv(args.datafile, sep="\t")
66 lat_key = df.columns[args.lat_key] 66 lat_key = df.columns[args.lat_key - 1]
67 long_key = df.columns[args.long_key] 67 long_key = df.columns[args.long_key - 1]
68 depth_key = df.columns[args.depth_key] 68 depth_key = df.columns[args.depth_key - 1]
69 date_key = df.columns[args.date_key] 69 date_key = df.columns[args.date_key - 1]
70 print(lat_key, long_key, depth_key, date_key)
71 70
72 df = df.apply( 71 df = df.apply(
73 environment_observation, 72 environment_observation,
74 args=( 73 args=(
75 fetcher, 74 fetcher,