Solar proton low-energy extension model
Model API name: spleem
Solar proton low-energy extension.
Version: v1
Model example
# coding=utf-8
from os import path
from nom_client.utils.file_util import read_entire_file_to_string
from nom_client.nom_client import NoMClient
nom_client = NoMClient("SPLEEM example",
default_server_id="local_server",
debug_output=False)
sapre_model_gto = nom_client.get_model('sapre')
sapre_model_gto.set_params(orbitType="GEN")
sapre_gto_result = nom_client.run_model(sapre_model_gto)
print(sapre_gto_result)
print(sapre_gto_result.file_outputs.keys())
sapphire_1_in_N_event_fluence_model = nom_client.get_model('sapphire-1-in-n-event-fluence')
sapphire_1_in_N_event_fluence_model.set_external_input(external_input_name="trajectory", external_input=sapre_gto_result)
sapphire_1_in_N_fluence_results = nom_client.run_model(sapphire_1_in_N_event_fluence_model)
print(sapphire_1_in_N_fluence_results)
spleem_model = nom_client.get_model('spleem')
spleem_model.set_external_input(external_input_name="solarParticleSpectrum",
external_input=sapphire_1_in_N_fluence_results)
spleem_results = nom_client.run_model(spleem_model)
print(spleem_results)
Model references
No references