diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..38c8204b017f26fd2ea18bba34215c2b3af0ca30 --- /dev/null +++ b/__init__.py @@ -0,0 +1 @@ +__version__ = 0.3.0 diff --git a/assets/geojsons/NOA b/assets/geojsons/NOA new file mode 120000 index 0000000000000000000000000000000000000000..77890a48847295c774c59713726a188c86e6755c --- /dev/null +++ b/assets/geojsons/NOA @@ -0,0 +1 @@ +/data/products/NOA \ No newline at end of file diff --git a/assets/sidebar.css b/assets/sidebar.css index f12becb875bec556a143c12dc51c4bcc44388fec..839d9db28ff447dac9623fb8f1a744a7ded668c2 100644 --- a/assets/sidebar.css +++ b/assets/sidebar.css @@ -209,7 +209,7 @@ /* Info button on the sidebar bottom */ .sidebar-bottom #info-button { - background-image: url("assets/images/Icon_Info.png"); + background-image: url("/daily_dashboard/assets/images/Icon_Info.png"); background-position: center; width: 52px !important; height: 52px !important; @@ -217,7 +217,7 @@ /* Download button on the sidebar bottom */ .sidebar-bottom #download-button { - background-image: url("assets/images/Icon_Download.png"); + background-image: url("/daily_dashboard/assets/images/Icon_Download.png"); background-position: 1rem; background-color: #2B383E; padding-left: 2rem; @@ -272,7 +272,7 @@ span>#was-apply { */ .sidebar-bottom .card-text>.download-section { - background-image: url("assets/images/download.svg"); + background-image: url("/daily_dashboard/assets/images/download.svg"); background-repeat: no-repeat; background-position: 0.5rem; background-color: lightgrey; diff --git a/bin/nc_checker.py b/bin/nc_checker.py index 43c0ebd43a9228b5afb453592fed3c90408850bb..185895200851a669de529772b16387e3ec83a6b4 100755 --- a/bin/nc_checker.py +++ b/bin/nc_checker.py @@ -176,7 +176,7 @@ class NCChecker(object): if varname not in NO_CHECK_VARS: var = self.nc_file.variables[varname] mvalname = hasattr(var, 'missing_value') and 'missing_value' or '_FillValue' - VALID_RANGES[varname]['mvalname'] = mvalname + VALID_RANGES[varname.lower()]['mvalname'] = mvalname if self.var_proc(varname) != 0: self.nc_file.close() diff --git a/conf/dates.json b/conf/dates.json index a1a3b832c5be99717f2fd663d01a0d053d244771..8fb17c452774d49d07d8155c3173cfc70c477eb4 120000 --- a/conf/dates.json +++ b/conf/dates.json @@ -1 +1 @@ -dates_dev.json \ No newline at end of file +dates_prod.json \ No newline at end of file diff --git a/dash_server.py b/dash_server.py index 44f082e072bb2965fe1e1391657ed0b404e62490..ef20b0598ee91656f7a6bb941daaccdae2f75f95 100755 --- a/dash_server.py +++ b/dash_server.py @@ -41,7 +41,7 @@ import socket HOSTNAME = socket.gethostbyname_ex(socket.gethostname())[0] -if HOSTNAME in ('bscesdust03.bsc.es', 'pre-sds-was'): +if HOSTNAME in ('bscesdust03.bsc.es', 'dust.hqads.aemet.es'): pathname = '/daily_dashboard/' else: pathname = '/dashboard/' @@ -143,7 +143,7 @@ app.layout = html.Div( tab_forecast(), tab_evaluation(), tab_observations(), - go_fullscreen(pathname), + # go_fullscreen(pathname), ]), ], className="content", diff --git a/data_handler.py b/data_handler.py index da3b67af223fc8fc637fcd5d9a051ee54599eb8e..0d1cdd7421c8af2ff4c7ec10075b70b34ed5444d 100644 --- a/data_handler.py +++ b/data_handler.py @@ -32,7 +32,7 @@ from utils import get_colorscale DIR_PATH = os.path.dirname(os.path.realpath(__file__)) -DEBUG = True # False +DEBUG = False COLORS = ['#ffffff', '#a1ede3', '#5ce3ba', '#fcd775', '#da7230', '#9e6226', '#714921', '#392511', '#1d1309'] diff --git a/js/create_model_loop.js b/js/create_model_loop.js index 6bf71afc25cefd20a045c09073481f332e2f6f7d..18dd5363a60973b2f51a769ffacb289389c0165e 100644 --- a/js/create_model_loop.js +++ b/js/create_model_loop.js @@ -1,6 +1,6 @@ const { Cluster } = require('puppeteer-cluster'); const util = require('util'); -const url = 'http://127.0.0.1:9000/dashboard/' +const url = 'http://127.0.0.1:9000/daily_dashboard/' //const uniqueId = Date.now().toString(36) + Math.random().toString(36).substring(2); // const imageTemplate = '/data/daily_dashboard/comparison/'; // + uniqueId + '_image'; const modelDict = {'od550_dust':'AOD',