Skip to content

Commit

Permalink
a-selecte-habitat-spiros-koulouzis-lifewatch-eu update
Browse files Browse the repository at this point in the history
  • Loading branch information
qcdis-bot committed Feb 27, 2025
1 parent f4f4524 commit 4843e75
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions a-selecte-habitat-spiros-koulouzis-lifewatch-eu/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,27 @@
url = "http://opendap.biodt.eu/ias-pdt/0/outputs/key.csv"
df_hab = pd.read_csv(url)

print("Select a habitat type from the dropdown list:")


selected_hab_abb = '1'
param_habitat_type = 'human_maintained_grasslands'
conf_data_path = '/tmp/data/'
selected_hab_abb = str(df_hab[df_hab["hab_name"] == param_habitat_type]["hab_abb"].values[0])

print(f"Selected Habitat Abbreviation: {selected_hab_abb}")


param_habitat_name = 'Human maintained grasslands'
param_climate_model = 'Current'
param_climate_scenario = 'Current'
param_time_period = '1981-2010'
param_species_name = 'Agave americana'
folder_path = None
tif_url = None
download_path = None


param_habitat_name = 'Ruderal habitats'
habitat_type = param_habitat_name.replace(' ','_').lower()
selected_hab_abb = str(df_hab[df_hab["hab_name"] == habitat_type]["hab_abb"].values[0])
param_climate_model = 'IPSL-CM6A-LR'
param_species_class = 'Liliopsida'


conf_x = 0.95
conf_y = 0.95
conf_arrow_length = 0.1
print(f"Selected Habitat Abbreviation: {selected_hab_abb}")

file_selected_hab_abb = open("/tmp/selected_hab_abb_" + id + ".json", "w")
file_selected_hab_abb.write(json.dumps(selected_hab_abb))
Expand Down

0 comments on commit 4843e75

Please sign in to comment.