Skip to content
Jerome Guterl edited this page Jun 30, 2022 · 15 revisions

Welcome to the ADAS-JG.jl wiki!

Notes:

  1. not optimized for quick access to the data. Although first call to the module will trigger the building of a database saved into a bson file.
  2. nothing is exported from the ADAS module

Usage

  • to retrieve ADAS adf11 scd data for carbon

ADAS.retrieve("C")

ADAS.retrieve("C"; year="latest", metastable=false, type="scd", adas_type="adf11")

  • look at available adf11 types

show_adf11_types()

  • rebuild the database and save it to bson file

build_adf11_database()

  • retrieve data directly from a file

adf11Data("ADAS/data/adf11/scd93/scd93_c.dat"; metastable=false)

  • accessing rates

C_scd = ADAS.retrieve("C"; year="latest", metastable=false, type="scd", adas_type="adf11")

rates = C_scd.data.rates

log_Te = C_scd.data.axis.log_Te

log_ne = C_scd.data.axis.log_ne

Te = C_scd.data.axis.Te

ne = C_scd.data.axis.ne

  • check units

Te_unit = C_scd.data.axis.Te_unit

rates_unit = C_scd.data.units

  • plot

using Plots; plot(C_scd.data.axis.Te,C_scd.data.rates[6].values[:,:], xscale = :log10, yscale = :log10)

Clone this wiki locally