This code computes the 2D maps of the solar gyroresonance and free-free microwave emission using the models of active regions created by the GX Simulator.
Project description
This code computes the 2D maps of the solar gyroresonance and free-free microwave emission using the models of active regions created by the GX Simulator. The code is called from IDL (requires the SolarSoft package).
Quick start: see the file /examples/RenderExample.pro (the sample GX Simulator model and EBTEL data are not included).
To compute the emission maps, you firstly need to create the input data blocks by calling the following functions:
-
Load the GX Simulator model:
model=LoadGXmodel(modelfile)
where modelfile is the name of the GX Simulator model file (the model must contain the field line information and the chromospheric part). -
Load the EBTEL table:
ebtel=LoadEBTEL(ebtelfile [, DEM=DEM, DDM=DDM])
where ebtelfile is the name of the GX Simulator file containing the EBTEL table(s) that define the DEM and/or DDM.
If ebtelfile='' then the DEM, DDM, and coronal heating model are not used, and the coronal plasma is described by a model with a constant temperature and a barometric height profile of the plasma density (see below).
The keywords /DEM and /DDM are only applicable if the chosen file contains both the DEM and DDM tables. In this case, if the /DEM keyword is set, the code loads the DEM table only (the DDM table is ignored). Similarly, if the /DDM keyword is set, the code loads the DDM table only (the DEM table is ignored). If both /DEM and /DDM keywords (or none of them) are set, the code loads both tables.
If the chosen file contains only one EBTEL table (either DEM or DDM), the code loads that table; the /DEM and /DDM keywords are ignored. -
Define the size and position of the required radio maps, as well as the emission frequencies:
simbox=MakeSimulationBox(xc, yc, dx, dy, Nx, Ny, freqlist)
where:
xc and yc are the x and y coordinates of the map center (in the helioprojective coordinate system, in arcseconds);
dx and dy are the x and y resolutions of the map (in arcseconds);
Nx and Ny are the x and y sizes of the map (in pixels);
freqlist is the list (1D array) of the emission frequencies (in GHz) where the maps are to be computed. -
Define the parameters of the coronal plasma:
coronaparms=DefineCoronaParams(Tbase, nbase, Q0, a, b [, /force_isothermal])
where:
Tbase and nbase define the "default" plasma distribution; they are respectively the plasma temperature (in K) and the base plasma density at the bottom of the simulation box (in cm^{-3}). These parameters are used to find the plasma parameters in the voxels where the heating model is not applicable, i.e., either the voxel is associated with an open field line, or the heating parameters are beyond the boundaries of the EBTEL table. In such voxels, the plasma temperature is set to Tbase, and the plasma density is computed using nbase, Tbase, and the barometric formula.
Q0, a, and b define the coronal heating model (which is applied to the closed field lines). The heating rate Q at each field line is computed as Q=Q0*(B/B0)^a/(L/L0)^b, where B is the average magnetic field along the line, L is the line half-length, and B0 and L0 are some pre-defined constants (the same as in GX Simulator).
/force_isothermal - if set, the multi-thermal formulae given in the paper of Fleishman, Kuznetsov & Landi (2021) are not used, and the emission is computed using the moments of the DEM or DDM distribution (if both DEM and DDM are provided, the DDM moments are used). This option improves the computation speed greatly, although the results become less accurate. -
Prepare the memory structure for the simulation results:
outspace=ReserveOutputSpace(simbox)
where simbox is the structure returned by the MakeSimulationBox function.
When the input data are ready, the computation is performed by calling the main executable module (RenderGRFF_32.dll, RenderGRFF_64.dll, or RenderGRFF.so) via the call_external function:
r=call_external(libname, 'ComputeMW', model, ebtel, simbox, coronaparms, outspace)
where libname is the name of the appropriate executable library, and model, ebtel, simbox, coronaparms, and outspace are the structures returned by the above-mentioned functions.
The output structure outspace contains the fields outspace.TI and outspace.TV, which represent the brightness temperatures corresponding respectively to the Stokes parameters I and V of the computed emission (in K). Each field is a 3D array with Nx * Ny * Nf elements, where Nx and Ny are the x and y sizes of the computed maps, and Nf is the number of the emission frequencies. These data can be processed directly, or can be converted into the SolarSoft map objects via the procedure
ConvertToMaps, outspace, simbox, model, mapI, mapV
where the input parameters outspace, simbox, and model are the structures returned by the above-mentioned functions, and the output parameters mapI and mapV are the resulting SolarSoft (multi-frequency) map objects which represent the brightness temperatures corresponding respectively to the Stokes parameters I and V of the computed emission (in K).
An example of using the code is given in the file /examples/RenderExample.pro (the sample GX Simulator model and EBTEL data are not included).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file gximagecomputing-0.0.1.tar.gz
.
File metadata
- Download URL: gximagecomputing-0.0.1.tar.gz
- Upload date:
- Size: 154.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d53cb91b3a2381a1b7874e8098aa213912adfdb3b50a5ae6d90cfa7b6608de2a |
|
MD5 | db02ad7ee54d75d5846158d5d79d6926 |
|
BLAKE2b-256 | 69dae03dbe5b98a7f2262446b0d6cf11c214a2cdeebedb0870da8404e325cdc5 |
File details
Details for the file gximagecomputing-0.0.1-cp312-cp312-win_amd64.whl
.
File metadata
- Download URL: gximagecomputing-0.0.1-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 182.3 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5efdf40b0c2f2ed58b9668a87141882b1cb43d5062323de7865ca959263d2358 |
|
MD5 | 03a24d1aaf87ce42a9261eff3da54049 |
|
BLAKE2b-256 | 6b074477f83bb2d6175960b8ec51602a1832da7547889e8421730845ab7c373d |
File details
Details for the file gximagecomputing-0.0.1-cp312-cp312-win32.whl
.
File metadata
- Download URL: gximagecomputing-0.0.1-cp312-cp312-win32.whl
- Upload date:
- Size: 174.5 kB
- Tags: CPython 3.12, Windows x86
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 981637d316d7f0d5b59a1593f0c90fd81e990b652fd0349374fae82e328ce6a6 |
|
MD5 | 56fc7b9c5f1bac76d5a24238f62b9e4a |
|
BLAKE2b-256 | d156122d716fc62c388feccd8bbdd673625a29cad3c04a33496ca380908b6f4f |
File details
Details for the file gximagecomputing-0.0.1-cp312-cp312-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: gximagecomputing-0.0.1-cp312-cp312-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 372.5 kB
- Tags: CPython 3.12, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a3f49a3ef0d8be37d82ae1e25785cc898d79f530d62d3771e19c7086c8ad10e |
|
MD5 | 5023712d0245658fe43e8062b3abe497 |
|
BLAKE2b-256 | e3bd5dfc710ba442159bcf34a20c94a58b117de72808f55c6de6c164d6178b17 |
File details
Details for the file gximagecomputing-0.0.1-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: gximagecomputing-0.0.1-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 326.0 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 470455409ac97769d58fa88646ef779b8fd91645db09c8c150af83d735de1a35 |
|
MD5 | 45b259cb09f16a10d4697c1f8939dd3a |
|
BLAKE2b-256 | c131cb55b5990b9e14ca4ad96f1fcdc4a0b1cfeb1399be3811fe3b2440a7eb33 |
File details
Details for the file gximagecomputing-0.0.1-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: gximagecomputing-0.0.1-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 182.3 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df66c3bbc1ed1a1fd0181fc86ae7d7613c2cc55dc33f8086ed41288fef22264c |
|
MD5 | 9059028a7fc3143da7859816b6e328b5 |
|
BLAKE2b-256 | 2d8ea5ec18a494b0849fae2de350bd5dcbd319e11f603582dca0c105965adc12 |
File details
Details for the file gximagecomputing-0.0.1-cp311-cp311-win32.whl
.
File metadata
- Download URL: gximagecomputing-0.0.1-cp311-cp311-win32.whl
- Upload date:
- Size: 174.5 kB
- Tags: CPython 3.11, Windows x86
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9592f13a5839fda69ab05a31d5426aa6af4ae6b13678ae6ab656122951024593 |
|
MD5 | ed252691725202f506b298edae182052 |
|
BLAKE2b-256 | cd9c84f303afcf5ca262fb8521ce45fb494d2708790057e759661e0b4321137a |
File details
Details for the file gximagecomputing-0.0.1-cp311-cp311-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: gximagecomputing-0.0.1-cp311-cp311-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 372.3 kB
- Tags: CPython 3.11, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4884c48f110bb83e7eb33973c86c77629c5b6fcd2aff0c1193e8ed19e1c0920d |
|
MD5 | 2dc4d8ecea7e07f7b9c4aa250509657f |
|
BLAKE2b-256 | 65e049d5a0e9926fdced7f12f90830489a0fa8e2c6283194d74b1e80aafecb70 |
File details
Details for the file gximagecomputing-0.0.1-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: gximagecomputing-0.0.1-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 325.9 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d234877a213239129ece16d3af98f72ba72d48253006f22de1f94185c8993c7 |
|
MD5 | 67a08cb5970762bddb78a524eb454f79 |
|
BLAKE2b-256 | 39f4c1683906f629e49dfd77780d8e13c3bdd68cb25b626f7fc9d93947ec0a82 |
File details
Details for the file gximagecomputing-0.0.1-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: gximagecomputing-0.0.1-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 182.3 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a277153790ac409fbdb8accc465944df39e7c18d4807ab40bb52afd2cd2ffef6 |
|
MD5 | c5bf7f4949d4087ceb254f1176ca113b |
|
BLAKE2b-256 | 4576d961dc2c5369ce68e12a0ad9027624cc588cf647857e2d5f5904d050cb57 |
File details
Details for the file gximagecomputing-0.0.1-cp310-cp310-win32.whl
.
File metadata
- Download URL: gximagecomputing-0.0.1-cp310-cp310-win32.whl
- Upload date:
- Size: 174.5 kB
- Tags: CPython 3.10, Windows x86
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f10738cb4b887afa11d7fb8d4cedd5ad7a5e2509994c60147b83803a7028d1e |
|
MD5 | a307f185ddcea3c23bb74add708c6bc4 |
|
BLAKE2b-256 | 684c8216a97ca08a0b3a74ca83fe7a7ec558df85a4760721f01408eb7199ab83 |
File details
Details for the file gximagecomputing-0.0.1-cp310-cp310-manylinux_2_28_x86_64.whl
.
File metadata
- Download URL: gximagecomputing-0.0.1-cp310-cp310-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 374.1 kB
- Tags: CPython 3.10, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e81355dff8d2426ff49e56f6f8bdf84cfff6a5b5fc41eb228d998ea7184ac9ea |
|
MD5 | 000790a43293f019c8830d65af5860e2 |
|
BLAKE2b-256 | 3618c931483f9f250bf2a6cf5834f01c361d39406fca6238768ff67f2c7b2363 |
File details
Details for the file gximagecomputing-0.0.1-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: gximagecomputing-0.0.1-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 325.9 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c964e085a338e979474e2746335b779ac1696524f7434bd524ee25a2f800ad6c |
|
MD5 | 75f1780d9552b2d80f7731b2a3e0f6a2 |
|
BLAKE2b-256 | 1c53cf31c5658d3d09678930ceedf4b1c39446fc9e7dbed31f111514b3a55a17 |