diff --git a/duck/db.py b/duck/db.py index fb7ba2b..ad3ae5f 100644 --- a/duck/db.py +++ b/duck/db.py @@ -3,8 +3,8 @@ # from pywps import configuration # Provide the path to the SQLite database in the local folder -# DB_URL = "sqlite:////var/lib/pywps/db/provenance.sqlite" -DB_URL = "sqlite:////tmp/provenance.sqlite" +DB_URL = "sqlite:////var/lib/pywps/db/provenance.sqlite" +# DB_URL = "sqlite:////tmp/provenance.sqlite" # DB_URL = configuration.get_config_value('provenance', 'db_url') diff --git a/duck/processes/wps_clintai.py b/duck/processes/wps_clintai.py index f4cfaee..639a560 100644 --- a/duck/processes/wps_clintai.py +++ b/duck/processes/wps_clintai.py @@ -32,7 +32,48 @@ models_list = list(craimodels.info_models().keys()) info_models = yaml.safe_load(craimodels.raw_text()) -info_models_string = json.dumps(info_models, separators=(',', ':')) + +dummy_models = { + "HadCRUT4": [ + { + "name": "dataset_name", + "value": "HadCRUT4", + "title": "HadCRUT4 Training dataset: 82133 samples of near surface temperature anomalies from the 20th century reanalysis dataset (https://psl.noaa.gov/data/20thC_Rean/) spanning the period 1870-2009. \nMask dataset: masks of missing values extracted from the HadCRUT4 dataset for the period 1850-2014." + + }, + { + "name": "file", + "value": "https://www.metoffice.gov.uk/hadobs/hadcrut4/data/current/gridded_fields/HadCRUT.4.6.0.0.median_netcdf.zip", + "title": "Enter a URL to your HadCRUT4 netcdf file." + }, + { + "name": "variable_name", + "value": "temperature_anomaly", + "title": "temperature_anomaly" + } + ], + "HadCRUT5": [ + { + "name": "dataset_name", + "value": "HadCRUT5", + "title": "HadCRUT5 Training dataset: 82133 samples of near surface temperature anomalies from the 20th century reanalysis dataset (https://psl.noaa.gov/data/20thC_Rean/) spanning the period 1870-2009. \nMask dataset: masks of missing values extracted from the HadCRUT4 dataset for the period 1850-2014." + + }, + { + "name": "file", + "value": "https://www.metoffice.gov.uk/hadobs/hadcrut5/data/current/non-infilled/HadCRUT.5.0.1.0.anomalies.ensemble_mean.nc", + "title": "Enter a URL to your HadCRUT5 netcdf file." + }, + { + "name": "variable_name", + "value": "tas_mean", + "title": "tas_mean" + } + ] +} + +# info_models_string = json.dumps(info_models, separators=(',', ':')) +info_models_string = json.dumps(dummy_models, separators=(',', ':')) class ClintAI(Process):