Skip to content

Commit 82f5bef

Browse files
authored
Plot more observation vars (#188)
* See if ?preset works to load experiment remotely * Only hide toast on success + allow toast of failure to be closed manually * Load experiment from remote URL via `?e=<remote-url>` Fixes #158 * Embed json file into README * Do not try to parse non-200 responses * Plot pressure, temperature and relative humidity from observations Fixes #184 * If shareable link is too large give hosting state file as alternative * Always clear adress bar from `?s=...` * more e to s replacements + spelling
1 parent 91d3d37 commit 82f5bef

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

apps/class-solid/src/lib/profiles.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,15 @@ export function observationsForProfile(obs: Observation, variable = "theta") {
108108
return { y: h, x: u };
109109
case "v":
110110
return { y: h, x: v };
111+
case "rh":
112+
return { y: h, x: rh };
113+
case "T":
114+
return { y: h, x: T };
115+
case "p":
116+
return { y: h, x: p };
111117
default:
112118
console.warn(
113-
"Unknown variable '${variable}' for observation profile.",
119+
`Unknown variable '${variable}' for observation profile.`,
114120
);
115121
return { y: Number.NaN, x: Number.NaN };
116122
}

0 commit comments

Comments
 (0)