Skip to content

Difference between test values in 00 Fortran outputs and PyMSIS #79

Open
@alokshenoy

Description

@alokshenoy

When the MSIS00 fortran code is compiled using gfortran -std=legacy -ffixed-form -w NRLMSISE-00.FOR -o nrlmsise

Image

and executed using ./nrlmsise, we get outputs that (based on the fortran code) are used to validate the model outputs.

Image

Running the same inputs through pymsis however, produce very different results for the 00 model.

e.g.

import pymsis

dates = ["2023-06-21T08:03:20"]
data = pymsis.calculate(
dates, lons=[-70], lats=[0], alts=[400] ,f107s=150, f107as=150, aps=[4], version=0
)
data
output: 
array([[1.9556999e-12, 2.7302258e+12, 4.0951235e+10, 6.7588294e+13,
        2.4679893e+12, 1.2903808e+11, 8.6020760e+07, 6.3844516e+11,
        1.2644463e+09,           nan, 8.8434930e+02]], dtype=float32)

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions