"Here we briefly show how `pymagglobal` can be used to generate synthetic data. We first set up the model we want to use to generate the synthetic data:"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "5380320c",
"metadata": {},
"outputs": [],
"source": [
"from pymagglobal import Model\n",
"\n",
"myModel = Model('CALS10k.2')"
]
},
{
"cell_type": "markdown",
"id": "98302e49",
"metadata": {},
"source": [
"Next we have to generate a data distribution. We use `pymagglobal`s `get_z_at` routine, to generate `n_at` random locations, that are uniformly distributed on the sphere. Times are drawn uniformly as well."
Here we briefly show how `pymagglobal` can be used to generate synthetic data. We first set up the model we want to use to generate the synthetic data:
%% Cell type:code id:5380320c tags:
``` python
frompymagglobalimportModel
myModel=Model('CALS10k.2')
```
%% Cell type:markdown id:98302e49 tags:
Next we have to generate a data distribution. We use `pymagglobal`s `get_z_at` routine, to generate `n_at` random locations, that are uniformly distributed on the sphere. Times are drawn uniformly as well.