Module for cdf writing. For inter hemispheric simulations, write an _s then _n variable for south and north hemisphere respectively. In cdf file, each hemisphere begins at the lowest altitude. For vertical simulations (Venus and Mars), only one variable is written. More...
Public Member Functions | |
subroutine | init_cdf_module (nb_alt, nb_ntr, nb_ion, nb_eml) |
Allocate id_ni,id_ui,id_tip,id_tit,id_ti,id_qip,id_qit,id_qi,,id_pi,id_nn,id_eml, name_ion, name_ntr, name_eml. More... | |
subroutine | init_cdf_file (file_name) |
Create file_name.cdf -> id_cdf Attribut UNITS -> id_unit FIELDNAM-> id_name COMMENT -> id_comment. More... | |
subroutine | init_cdf_var_name (nb_alt, nb_ion, nb_ntr, nb_eml, sim_data) |
Adapt specie names with AMDA convention and store it in name_spc, name_ntr, name_eml. For AMDA compatibility:
. More... | |
subroutine | init_cdf_var (nb_alt, nb_ion, nb_ntr, nb_eml) |
Create all variable in cdf file. Must be called after initialisation of id_cdf (with open_CDF or init_cdf_file routines) and after init_cdf_var_name. 0d variable: id_time Geometric 1d variable (one record): id_alt, id_curv, id_surf, id_vol, id_dz Geometric 1d variable (multiple record): id_dip,id_longeo,id_latgeo,id_tmag, id_lonmag,id_latmag,id_Rmag,id_kiangle,id_Bmag,id_stl Ionic 1d variable: id_ni,id_ui,id_tip,id_tit,id_ti,id_qip,id_qit,id_qi,id_Pi Neutral 1d variable: id_nn,id_tn,id_un,id_vn,id_wn Light emission 1d variable: id_eml . More... | |
subroutine | construct_cdf (nb_alt, nb_ntr, nb_ion, nb_eml, irec, sim_data, pos_tube, ntr, ion, eml) |
Write the cdf variables. Must be called after init_cdf_file, init_cdf_var_name and init_cdf_var. More... | |
subroutine | denorm_heatflux (kb, mi, n, tp, tt, xp, xt, qp, qt) |
Denormalize heat flux. More... | |
subroutine | close_cdf_file () |
Close id_cdf unit. More... | |
subroutine | close_cdf_module () |
Deallocate variables from this module. More... | |
Module for cdf writing. For inter hemispheric simulations, write an _s then _n variable for south and north hemisphere respectively. In cdf file, each hemisphere begins at the lowest altitude. For vertical simulations (Venus and Mars), only one variable is written.
subroutine cdf_module::close_cdf_file | ( | ) |
Close id_cdf unit.
subroutine cdf_module::close_cdf_module | ( | ) |
Deallocate variables from this module.
subroutine cdf_module::construct_cdf | ( | integer, intent(in) | nb_alt, |
integer, intent(in) | nb_ntr, | ||
integer, intent(in) | nb_ion, | ||
integer, intent(in) | nb_eml, | ||
integer, intent(in) | irec, | ||
type(simulation_data), intent(in) | sim_data, | ||
type(coordonnees), dimension(:,:), intent(in) | pos_tube, | ||
type(neutral), dimension(:), intent(in) | ntr, | ||
type(espece), dimension(:), intent(in) | ion, | ||
type(emissions), intent(in) | eml | ||
) |
Write the cdf variables.
Must be called after init_cdf_file, init_cdf_var_name and init_cdf_var.
subroutine cdf_module::denorm_heatflux | ( | real, intent(in) | kb, |
real, intent(in) | mi, | ||
real, dimension(:), intent(in) | n, | ||
real, dimension(:), intent(in) | tp, | ||
real, dimension(:), intent(in) | tt, | ||
real, dimension(:), intent(in) | xp, | ||
real, dimension(:), intent(in) | xt, | ||
real, dimension(:), intent(out) | qp, | ||
real, dimension(:), intent(out) | qt | ||
) |
Denormalize heat flux.
subroutine cdf_module::init_cdf_file | ( | character(len=*) | file_name | ) |
Create file_name.cdf -> id_cdf
Attribut
UNITS -> id_unit
FIELDNAM-> id_name
COMMENT -> id_comment.
subroutine cdf_module::init_cdf_module | ( | integer, intent(in) | nb_alt, |
integer, intent(in) | nb_ntr, | ||
integer, intent(in) | nb_ion, | ||
integer, intent(in) | nb_eml | ||
) |
Allocate id_ni,id_ui,id_tip,id_tit,id_ti,id_qip,id_qit,id_qi,,id_pi,id_nn,id_eml, name_ion, name_ntr, name_eml.
subroutine cdf_module::init_cdf_var | ( | integer, intent(in) | nb_alt, |
integer, intent(in) | nb_ion, | ||
integer, intent(in) | nb_ntr, | ||
integer, intent(in) | nb_eml | ||
) |
Create all variable in cdf file.
Must be called after initialisation of id_cdf (with open_CDF or init_cdf_file routines) and after init_cdf_var_name.
0d variable: id_time
Geometric 1d variable (one record): id_alt, id_curv, id_surf, id_vol, id_dz
Geometric 1d variable (multiple record): id_dip,id_longeo,id_latgeo,id_tmag,
id_lonmag,id_latmag,id_Rmag,id_kiangle,id_Bmag,id_stl
Ionic 1d variable: id_ni,id_ui,id_tip,id_tit,id_ti,id_qip,id_qit,id_qi,id_Pi
Neutral 1d variable: id_nn,id_tn,id_un,id_vn,id_wn
Light emission 1d variable: id_eml
.
subroutine cdf_module::init_cdf_var_name | ( | integer, intent(in) | nb_alt, |
integer, intent(in) | nb_ion, | ||
integer, intent(in) | nb_ntr, | ||
integer, intent(in) | nb_eml, | ||
type(simulation_data), intent(in) | sim_data | ||
) |
Adapt specie names with AMDA convention and store it in name_spc, name_ntr, name_eml.
For AMDA compatibility:
.