diff --git a/web/run.py b/web/run.py index 0f537f0..8384eff 100755 --- a/web/run.py +++ b/web/run.py @@ -288,32 +288,38 @@ PARAMETERS = { 'pdyn': { 'slug': 'pdyn', 'name': 'Dyn. Pressure', - 'unit': 'nPa', + 'title': 'The dynamic pressure.', + 'units': 'nPa', }, 'vlen': { 'slug': 'vlen', 'name': 'Velocity', - 'unit': 'km/s', + 'title': 'The velocity of the particles.', + 'units': 'km/s', }, 'magn': { 'slug': 'magn', 'name': 'Magnetism', - 'unit': 'nT', + 'title': 'B Tangential.', + 'units': 'nT', }, 'temp': { 'slug': 'temp', 'name': 'Temperature', - 'unit': 'K', + 'title': 'The absolute temperature.', + 'units': 'K', }, 'dens': { 'slug': 'dens', 'name': 'Density', - 'unit': 'cm^-3', + 'title': 'The density N.', + 'units': 'cm^-3', }, 'angl': { 'slug': 'angl', 'name': 'Angle T-S-E', - 'unit': 'deg', + 'title': 'Angle Target-Sun-Earth.', + 'units': 'deg', }, } @@ -613,7 +619,7 @@ def download_targets_netcdf(targets, params, started_at, stopped_at): targets: string list of targets' slugs, separated by `-`. params: string list of targets' parameters, separated by `-`. """ - separator = '-' + separator = '-' # /!\ this char should never be in slugs targets = targets.split(separator) targets.sort() targets_configs = [] @@ -682,7 +688,7 @@ def download_targets_netcdf(targets, params, started_at, stopped_at): for param in params: indices.append(available_params.index(param)) nc_var = nc_group.createVariable(param, 'f8', (dimension,)) - nc_var.units = PARAMETERS[param]['unit'] + nc_var.units = PARAMETERS[param]['units'] nc_vars.append(nc_var) for i, nc_var in enumerate(nc_vars): index = indices[i] -- libgit2 0.21.2