Skip to content

No output from get_ae8_ap8_flux (IDL) #45

@eliasroussos

Description

@eliasroussos

When running the following command in IDL

IDL> resultf = call_external(lib_name, 'get_ae8_ap8_flux_idl_', ntime,whichm,whatf,Nene,energy,BBo,Lm,flux,/f_value)

the returned flux array (sized: [ntime, 25], where 25 is the number of energies, ntime is the number of time steps), returns only flux[0,*]=-1e+31 and the rest of the array elements as zeros. The flux array is of double precision, as indicated in the documentation.

The energy array is predefined as:
IDL> energy=DINDGEN(25)*0.135 -2d
IDL> energy=10d^energy
IDL> energy=transpose([[energy],[energy]])
IDL> nene=25l

with dimensions of [2,25], values given in MeV.

Time series of BBo and Lm have been calculated in previous steps, succesfully, using:
IDL> result = call_external(lib_name, 'make_lstar_',ntime,kext,options,sysaxes,iyr,idoy,ut, x1,x2,x3, maginput,lm,lstar,blocal,bmin,xj,mlt, /f_value)
IDL> BBo = blocal/bmin

with minimum Lm value of about ˜4.58.
I have tested values of whichm of 1, 2 & -1) and whichf of 1 & 3.

I have also tried using the example_1.pro, which calls fly_in_meo_gnss_ using nene=25l & an energy array of zeros energy=DBLARR(2,50). example_1.pro does return valid results throughfly_in_meo_gnss_. But it does not work for get_ae8_ap8_flux_idl_ (I still get the same empty flux array as output).

I use IDL 8.8.0 (darwin x86_64 m64) (MacOS Monterey 12.6.5). IRBEM was obtained from this repository and successfully installed. The problem is the same when I use 'FLY_IN_NASA_AEAP' also.

resultf = call_external(lib_name, 'fly_in_nasa_aeap_', ntime,sysaxes,whichm,whatf,Nene,energy,iyr,idoy, ut,x1,x2,x3,flux, /f_value)

Any suggestion?

Elias

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions