Skip to content

Commit 2f8510f

Browse files
Merge branch 'gridtree' into dev
2 parents 23a1a38 + 132d7bc commit 2f8510f

20 files changed

+11542
-25
lines changed

docs/notebooks/climate/12b_Exoplanet.ipynb

+46-1
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,22 @@
269269
"\n"
270270
]
271271
},
272+
{
273+
"cell_type": "markdown",
274+
"metadata": {},
275+
"source": [
276+
"## Save run with xarray"
277+
]
278+
},
279+
{
280+
"cell_type": "code",
281+
"execution_count": null,
282+
"metadata": {},
283+
"outputs": [],
284+
"source": [
285+
"preserve_clima = jdi.output_xarray(out, cl_run)#,savefile='output.nc')"
286+
]
287+
},
272288
{
273289
"cell_type": "markdown",
274290
"metadata": {},
@@ -325,6 +341,35 @@
325341
"source": [
326342
"cp, adiabat, dtdp, pressure = jpi.pt_adiabat(out, cl_run)"
327343
]
344+
},
345+
{
346+
"cell_type": "markdown",
347+
"metadata": {},
348+
"source": [
349+
"## Postprocess High-Res Spectra"
350+
]
351+
},
352+
{
353+
"cell_type": "code",
354+
"execution_count": null,
355+
"metadata": {},
356+
"outputs": [],
357+
"source": [
358+
"opa_mon = jdi.opannection()\n",
359+
"\n",
360+
"hi_res = jdi.input_xarray(preserve_clima,opa_mon, calculation='planet')\n",
361+
"\n",
362+
"df_spec = hi_res.spectrum(opa_mon, calculation='thermal+transmission', full_output=True)\n",
363+
"\n",
364+
"preserve_hires = jdi.output_xarray(df_spec, hi_res)"
365+
]
366+
},
367+
{
368+
"cell_type": "code",
369+
"execution_count": null,
370+
"metadata": {},
371+
"outputs": [],
372+
"source": []
328373
}
329374
],
330375
"metadata": {
@@ -343,7 +388,7 @@
343388
"name": "python",
344389
"nbconvert_exporter": "python",
345390
"pygments_lexer": "ipython3",
346-
"version": "3.11.5"
391+
"version": "3.11.8"
347392
},
348393
"toc": {
349394
"base_numbering": 1,

0 commit comments

Comments
 (0)