File tree Expand file tree Collapse file tree 1 file changed +1
-25
lines changed Expand file tree Collapse file tree 1 file changed +1
-25
lines changed Original file line number Diff line number Diff line change @@ -30,30 +30,6 @@ let dark = false;
30
30
let domain : Domain ;
31
31
let variable : Variable ;
32
32
33
- const vList = [
34
- 'cape' ,
35
- 'cloud_base' ,
36
- 'cloud_cover' ,
37
- 'cloud_cover_high' ,
38
- 'cloud_cover_low' ,
39
- 'cloud_cover_mid' ,
40
- 'convective_inhibition' ,
41
- 'direct_radiation' ,
42
- 'freezing_level_height' ,
43
- 'precipitation' ,
44
- 'pressure_msl' ,
45
- 'relative_humidity_2m' ,
46
- 'shortwave_radiation' ,
47
- 'snow_depth' ,
48
- 'snowfall_height' ,
49
- 'sunshine_duration' ,
50
- 'surface_temperature' ,
51
- 'temperature_2m' ,
52
- 'wind_gusts_10m' ,
53
- 'wind_u_component_10m' ,
54
- 'wind_v_component_10m'
55
- ] ;
56
-
57
33
let projection : Projection ;
58
34
let projectionGrid : ProjectionGrid ;
59
35
let projectionName : string ;
@@ -269,7 +245,6 @@ const initOMFile = async (url: string) => {
269
245
const urlParams = new URLSearchParams ( omParams ) ;
270
246
dark = urlParams . get ( 'dark' ) === 'true' ;
271
247
variable = variables . find ( ( v ) => urlParams . get ( 'variable' ) === v . value ) ?? variables [ 0 ] ;
272
- index = vList . indexOf ( variable . value ) ;
273
248
274
249
if ( fileReader . reader ) {
275
250
fileReader . reader . dispose ( ) ;
@@ -413,6 +388,7 @@ const initOMFile = async (url: string) => {
413
388
414
389
for ( const i of [ ...Array ( fileReader . reader . numberOfChildren ( ) ) ] . map ( ( _ , i ) => i ) ) {
415
390
const child = await fileReader . reader . getChild ( i ) ;
391
+ console . log ( child . getName ( ) ) ;
416
392
if ( child . getName ( ) === variable . value ) {
417
393
const dimensions = child . getDimensions ( ) ;
418
394
You can’t perform that action at this time.
0 commit comments