Commit d729e9cd845ff56bb1ccbcb50a9e6c7829e817d4
1 parent
a8ce269b
Exists in
master
and in
2 other branches
Cleanup.
Showing
5 changed files
with
34 additions
and
9 deletions
Show diff stats
CHANGELOG.md
... | ... | @@ -12,6 +12,20 @@ |
12 | 12 | - [ ] juno/rosetta doivent aussi bouger le long de leur orbite lorsque l'on parcourt à la souris les données de la série temporelle; pour les intervalles de temps où rosetta n'existe plus (crash à la surface de la comète) il faut qu'elle disparaisse; pour les intervalles de temps où juno est en orbite autour de jupiter il faut que juno suive jupiter |
13 | 13 | -> tout ceci est configurable dans le fichier de configuration, je n'ai pas les ids ! |
14 | 14 | |
15 | +- [ ] pour l'option jupiter thermospheric models dans l'onglet layer, une fois activée il faut que sur un tracé de la pression dynamique à jupiter tu fasses apparaître trois lignes horizontales en trois couleurs différentes pour les valeurs: | |
16 | + Model A compressed Pdyn=0.121 nPa | |
17 | + Model B baseline Pdyn=0.060 nPa | |
18 | + Model C expanded Pdyn=0.020 nPa | |
19 | + | |
20 | + | |
21 | +## CME Catalogs | |
22 | + | |
23 | +1) https://www.helcats-fp7.eu/catalogues/wp4_icmecat.html | |
24 | +et télécharger le catalogue en ASCII, JSON ou VOTAble XML | |
25 | +les traits verticaux à repérer sur les données Terre sont délimités par ICME_START_TIME et ICME_STOP_TIME, et il faut prendre le catalogue pour WIND uniquement (qui se trouver au point L1) | |
26 | +et prendre aussi | |
27 | +2) https://wind.nasa.gov/fullcatalogue.php | |
28 | + | |
15 | 29 | |
16 | 30 | ## Future ? |
17 | 31 | |
... | ... | @@ -27,6 +41,12 @@ |
27 | 41 | - [ ] Find a way to handle the huge amount of data files for Earth (thousands!) |
28 | 42 | |
29 | 43 | |
44 | +## 1.0.0 | |
45 | + | |
46 | +- [x] Fix a bug with data that is offset by one hour. | |
47 | +- [x] Use `git describe` as version number | |
48 | + | |
49 | + | |
30 | 50 | ## 1.0.0-rc8 |
31 | 51 | |
32 | 52 | - [x] Make the parameters' toogle buttons smaller | ... | ... |
config.yml
... | ... | @@ -98,6 +98,9 @@ inputs: |
98 | 98 | # `title` appears on mouse hover, and can be longer |
99 | 99 | # `locked` is for sources that are "coming soon" |
100 | 100 | # `default` sources are shown to incoming visitors, others need user activation |
101 | +# `orbit` holds the orbit configuration data | |
102 | +# `models` holds the configuration data for each model | |
103 | +# the slugs are ids for AMDA | |
101 | 104 | targets: |
102 | 105 | - type: 'planet' |
103 | 106 | slug: 'mercury' | ... | ... |
web/static/js/swapp.js
... | ... | @@ -163,9 +163,10 @@ |
163 | 163 | if ((ref$ = this.orbits) != null) { |
164 | 164 | ref$.resize(); |
165 | 165 | } |
166 | - return this.time_series.forEach(function(ts){ | |
166 | + this.time_series.forEach(function(ts){ | |
167 | 167 | return ts.resize(); |
168 | 168 | }); |
169 | + return this; | |
169 | 170 | }; |
170 | 171 | SpaceWeather.prototype.showLoader = function(){ |
171 | 172 | return $('#plots_loader').show(); |
... | ... | @@ -575,7 +576,7 @@ |
575 | 576 | this.cursorDate = this.focus.append("text").attr("class", "cursor-text cursor-date").attr("dx", dx).attr("dy", "1em"); |
576 | 577 | return this.resize(); |
577 | 578 | }; |
578 | - RATIO = GOLDEN_RATIO * GOLDEN_RATIO * GOLDEN_RATIO * GOLDEN_RATIO; | |
579 | + RATIO = Math.pow(GOLDEN_RATIO, 4); | |
579 | 580 | TimeSeries.prototype.resize = function(){ |
580 | 581 | var width, height, i$, ref$, len$, line, lineValue; |
581 | 582 | width = Math.ceil($(this.container).width() - this.margin.left - this.margin.right); | ... | ... |
web/static/js/swapp.ls
... | ... | @@ -18,7 +18,7 @@ |
18 | 18 | |
19 | 19 | ############################################################################### |
20 | 20 | |
21 | -const GOLDEN_RATIO = 2 / (1 + Math.sqrt(5)) # Between 0 and 1 (0.618...) | |
21 | +const GOLDEN_RATIO = 2 / (1 + Math.sqrt(5)) # Between 0 and 1 (0.618…) | |
22 | 22 | |
23 | 23 | ############################################################################### |
24 | 24 | |
... | ... | @@ -141,12 +141,13 @@ https://gitlab.irap.omp.eu/CDPP/SPACEWEATHERONLINE |
141 | 141 | resize: -> |
142 | 142 | @orbits?.resize(); |
143 | 143 | @time_series.forEach((ts) -> ts.resize()) |
144 | + this | |
144 | 145 | |
145 | 146 | showLoader: -> |
146 | - $('#plots_loader').show(); | |
147 | + $('#plots_loader').show() | |
147 | 148 | |
148 | 149 | hideLoader: -> |
149 | - $('#plots_loader').hide(); | |
150 | + $('#plots_loader').hide() | |
150 | 151 | |
151 | 152 | loadData: (target_slug, started_at, stopped_at) -> |
152 | 153 | """ |
... | ... | @@ -370,8 +371,8 @@ export class TimeSeries |
370 | 371 | init: -> |
371 | 372 | console.info "Initializing plot of #{@}…" |
372 | 373 | |
373 | - # pre-compute extents for performance when zooming | |
374 | - # those are final and always hold the biggest extent | |
374 | + # Pre-compute extents for performance when zooming. | |
375 | + # These are final and always hold the biggest extent. | |
375 | 376 | @xDataExtent = d3.extent(@data, (d) -> d.x) |
376 | 377 | @yDataExtent = d3.extent(@data, (d) -> d.y) |
377 | 378 | if @options['started_at'] then @xDataExtent[0] = @options['started_at'] |
... | ... | @@ -501,7 +502,7 @@ export class TimeSeries |
501 | 502 | |
502 | 503 | @resize() |
503 | 504 | |
504 | - RATIO = GOLDEN_RATIO * GOLDEN_RATIO * GOLDEN_RATIO * GOLDEN_RATIO | |
505 | + RATIO = Math.pow(GOLDEN_RATIO, 4) | |
505 | 506 | resize: -> |
506 | 507 | width = Math.ceil($(@container).width() - @margin.left - @margin.right) |
507 | 508 | height = Math.ceil(RATIO * width) | ... | ... |
web/view/layout.html.jinja2
... | ... | @@ -55,7 +55,7 @@ |
55 | 55 | <footer class="mdl-mini-footer"> |
56 | 56 | <div class="mdl-mini-footer__left-section"> |
57 | 57 | <p style="float: left; margin: 1.5em;"> |
58 | - <a class="mdl-mini-footer__link" href="https://gitlab.irap.omp.eu/CDPP/SPACEWEATHERONLINE">v{{ version }}</a> | |
58 | + <a class="mdl-mini-footer__link" href="https://gitlab.irap.omp.eu/CDPP/SPACEWEATHERONLINE">{{ version }}</a> | |
59 | 59 | <br /> |
60 | 60 | {{ visits }} visits since 2017 |
61 | 61 | </p> | ... | ... |