Skip to content

Commit c7fce49

Browse files
author
Vincent van der Wal
committed
rm index
1 parent fcd5752 commit c7fce49

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

src/om-protocol.ts

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -30,30 +30,6 @@ let dark = false;
3030
let domain: Domain;
3131
let variable: Variable;
3232

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-
5733
let projection: Projection;
5834
let projectionGrid: ProjectionGrid;
5935
let projectionName: string;
@@ -269,7 +245,6 @@ const initOMFile = async (url: string) => {
269245
const urlParams = new URLSearchParams(omParams);
270246
dark = urlParams.get('dark') === 'true';
271247
variable = variables.find((v) => urlParams.get('variable') === v.value) ?? variables[0];
272-
index = vList.indexOf(variable.value);
273248

274249
if (fileReader.reader) {
275250
fileReader.reader.dispose();
@@ -413,6 +388,7 @@ const initOMFile = async (url: string) => {
413388

414389
for (const i of [...Array(fileReader.reader.numberOfChildren())].map((_, i) => i)) {
415390
const child = await fileReader.reader.getChild(i);
391+
console.log(child.getName());
416392
if (child.getName() === variable.value) {
417393
const dimensions = child.getDimensions();
418394

0 commit comments

Comments
 (0)