nasa / Kamodo

Other
50 stars 25 forks source link

Support it*.idl output files in SWMF-IE converter and reader #139

Closed lrastaet closed 10 months ago

lrastaet commented 10 months ago

Added code to read it.idl files in SWMF-02 request runs. read_SWMFIE_header() now calls a new function _read_SWMFIE_IDL_header() for file names ending in *.idl.

The converter code was changed to read header fir each file to get the value of the BtiltDeg angle instead of assuming that the first line of a file has the TITLE information with the value as was true for *.tec output files.

File name to UT time conversion also was modified not to rely on there being a '-' in the file names between the substrings holding the date and UT time.