2024-02-07 10:11:49 +01:00
|
|
|
{
|
|
|
|
"cells": [
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 1,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"import numpy as np\n",
|
|
|
|
"import numpy\n",
|
|
|
|
"\n",
|
|
|
|
"import matplotlib.pyplot as plt\n",
|
|
|
|
"import h5py\n",
|
|
|
|
"%matplotlib inline\n",
|
|
|
|
"\n",
|
|
|
|
"\n",
|
|
|
|
"import csiborgtools\n",
|
|
|
|
"\n",
|
|
|
|
"%load_ext autoreload\n",
|
|
|
|
"%autoreload 2"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 2,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"paths = csiborgtools.read.Paths(**csiborgtools.paths_glamdring)\n"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2024-02-26 13:56:58 +01:00
|
|
|
"execution_count": 3,
|
2024-02-07 10:11:49 +01:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
2024-02-26 13:56:58 +01:00
|
|
|
"'/mnt/extraspace/rstiskalek/csiborg1/field/sph_ramses_07444_1024.hdf5'"
|
2024-02-07 10:11:49 +01:00
|
|
|
]
|
|
|
|
},
|
2024-02-26 13:56:58 +01:00
|
|
|
"execution_count": 3,
|
2024-02-07 10:11:49 +01:00
|
|
|
"metadata": {},
|
2024-02-26 13:56:58 +01:00
|
|
|
"output_type": "execute_result"
|
2024-02-07 10:11:49 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
2024-02-26 13:56:58 +01:00
|
|
|
"paths.field(\"density\", \"SPH\", 1024, 7444, \"csiborg1\")"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 4,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"field = csiborgtools.read.CSiBORG1Field(7444)"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 6,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"d = field.density_field(\"SPH\", 1024)"
|
2024-02-07 10:11:49 +01:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": null,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"metadata": {
|
|
|
|
"kernelspec": {
|
|
|
|
"display_name": "venv_csiborg",
|
|
|
|
"language": "python",
|
|
|
|
"name": "python3"
|
|
|
|
},
|
|
|
|
"language_info": {
|
|
|
|
"codemirror_mode": {
|
|
|
|
"name": "ipython",
|
|
|
|
"version": 3
|
|
|
|
},
|
|
|
|
"file_extension": ".py",
|
|
|
|
"mimetype": "text/x-python",
|
|
|
|
"name": "python",
|
|
|
|
"nbconvert_exporter": "python",
|
|
|
|
"pygments_lexer": "ipython3",
|
|
|
|
"version": "3.11.4"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"nbformat": 4,
|
|
|
|
"nbformat_minor": 2
|
|
|
|
}
|