ConvertAmdaToTaoLike.ipynb
1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
"cells": [
{
"cell_type": "markdown",
"id": "b742582b-17be-4f87-a154-02f49de1f4d4",
"metadata": {},
"source": [
"# Convert Amda parameters to build dataset as in tao-datasets\n",
"\n",
"We would like to plot the Solar Orbiter source. But we need some dataset formated as expected, with following parameters:\n",
"\n",
" ncdump -h file.nc\n",
" \n",
" float V(Time) ; V:units = \"km/s\" ;\n",
" float B(Time) ; B:units = \"nT\" ;\n",
" float N(Time) ; N:units = \"cm-3\" ;\n",
" float T(Time) ; T:units = \"eV\" ;\n",
" float Delta_angle(Time) ; Delta_angle:units = \"degrees\" ;\n",
" float P_dyn(Time) ; P_dyn:units = \"nPa\" ;\n",
" \n",
"\n",
"For the solar obiter data set found on amda, this is like:\n",
"|Expected parama |Amda Param|\n",
"|--- |------|\n",
"|V |pas_momgr1_v_rtn|\n",
"|B|solo_b_rtn_tot|\n",
"|N|pas_momgr_n|\n",
"|T|pas_mom_tav|\n",
"|Delta_angle|None|\n",
"|P_dyn|None|"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "b2ad3c08-2795-4419-b5b2-71e4b579a2ab",
"metadata": {},
"outputs": [],
"source": [
"\n",
"from speasy import amda"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"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.10.12"
}
},
"nbformat": 4,
"nbformat_minor": 5
}