Skip to content
Snippets Groups Projects
Commit c1810dc6 authored by Mostafa Hadizadeh's avatar Mostafa Hadizadeh
Browse files

fixed the event select param

parent 3a3cb999
No related branches found
No related tags found
1 merge request!1Migration to plugin template and add climpact functionality
Pipeline #92811 passed
......@@ -41,10 +41,10 @@ prod-test:
- make mamba-dep-install
- export EVALUATION_SYSTEM_PLUGINS=$CI_PROJECT_DIR,wrapper
- freva-plugin --list
- freva-plugin heat2urbanimpact region=Hamburg experiment=ssp245-gwl2k models=ec-earth-consortium-ec-earth3-veg-clmcom-btu-icon-2-6-5-rc-nukleus-x2yn2-v1 output_units=true output_file_type=nc mask_type=none mask_method=centres plot_map=true pre_process_function=pre_proc caption="Heat2UrbanImpact production test from CI piepline https://gitlab.dkrz.de/ch1187/plugins4freva/heat2urbanimpact/-/jobs/$CI_JOB_ID" -vvv
- freva-plugin heat2urbanimpact_do_not_use region=Hamburg experiment=ssp245-gwl2k models=ec-earth-consortium-ec-earth3-veg-clmcom-btu-icon-2-6-5-rc-nukleus-x2yn2-v1 output_units=true output_file_type=nc mask_type=none mask_method=centres plot_map=true pre_process_function=pre_proc caption="Heat2UrbanImpact production test from CI piepline https://gitlab.dkrz.de/ch1187/plugins4freva/heat2urbanimpact/-/jobs/$CI_JOB_ID" -vvv
- mkdir -p build/prod_test
- REGIKLIM_JOB_ID=$(ls -t /work/$ACCOUNT/regiklim-work/$GITLAB_USER_LOGIN/regiklim-ces/output/heat2urbanimpact/ | head -n 1)
- cd /work/$ACCOUNT/regiklim-work/$GITLAB_USER_LOGIN/regiklim-ces/output/heat2urbanimpact/$REGIKLIM_JOB_ID
- REGIKLIM_JOB_ID=$(ls -t /work/$ACCOUNT/regiklim-work/$GITLAB_USER_LOGIN/regiklim-ces/output/heat2urbanimpact_do_not_use/ | head -n 1)
- cd /work/$ACCOUNT/regiklim-work/$GITLAB_USER_LOGIN/regiklim-ces/output/heat2urbanimpact_do_not_use/$REGIKLIM_JOB_ID
- echo "<!DOCTYPE html><html><head>" >> index.html
- echo "<meta http-equiv=\"refresh\" content=\"0; url=https://www-regiklim.dkrz.de/history/$REGIKLIM_JOB_ID/results/\">" >> index.html
- echo "<title>Redirecting...</title>" >> index.html
......
......@@ -29,7 +29,7 @@ from evaluation_system.misc import config, logger
from evaluation_system.model.solr import SolrFindFiles
class Heat2UrbanImpact(plugin.PluginAbstract):
class Heat2UrbanImpact_DO_NOT_USE(plugin.PluginAbstract):
######################################################
# Define the details for the plugin
######################################################
......@@ -37,7 +37,7 @@ class Heat2UrbanImpact(plugin.PluginAbstract):
# Version of the Heat2UrbanImpact plugin (major, minor, patch) * Mandatory
__version__ = (2024, 11, 0)
# Short Description of the Heat2UrbanImpact plugin * Mandatory
__short_description__: str = "Preprocessed time series of heat periods from RCM data for urban impact models."
__short_description__: str = "ATTENTION: THIS PLUGIN IS LOCATED HERE ONLY FOR DEVELOPMENT PURPOSES. PLEASE DON'T USE IT FOR THE RESEARCH AIMS. \n\n Preprocessed time series of heat periods from RCM data for urban impact models."
# Optional category this plugin belongs to
__category__: Optional[str] = "Time Series"
# Optional tags, that are the plugin can be described with and found by
......@@ -50,7 +50,7 @@ class Heat2UrbanImpact(plugin.PluginAbstract):
# Optional long description of the author of the plugin
__long_description__: Optional[
str
] = "This plugin extracts the development of the atmospheric temperature stratification during a specified heat/warm period from regional climate model data and tailors the data for the usage in urban impact models. For a selectable region of interest and period of time this plugin returns hourly temperature data at different layers/hights in a directly usable format (format specification). This plugin is based on the NUKLEUS ensemble of 3km horizontal grid."
] = "ATTENTION: THIS PLUGIN IS LOCATED HERE ONLY FOR DEVELOPMENT PURPOSES. PLEASE DON'T USE IT FOR THE RESEARCH AIMS. \n\n This plugin extracts the development of the atmospheric temperature stratification during a specified heat/warm period from regional climate model data and tailors the data for the usage in urban impact models. For a selectable region of interest and period of time this plugin returns hourly temperature data at different layers/hights in a directly usable format (format specification). This plugin is based on the NUKLEUS ensemble of 3km horizontal grid."
######################################################
# Define the parameters for the plugin * Mandatory
......@@ -113,7 +113,7 @@ class Heat2UrbanImpact(plugin.PluginAbstract):
SelectField(
name="event",
default="95",
options={"75": "75th percentile", "85": "85th percentile", "95": "95th percentile"},
options={"75th percentil": "75", "85th percentile": "85", "95th percentile": "95"},
help="Select the exceptionality of the heat/warm period by selecting percentiles of temperature probability distribution. Default is the 95th percentile. IT'S NOT IMPLEMENTED YET.",
),
Integer(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment