Skip to content

Getting dataset attribute (getDatasetAttribute) on a 32 bit floating point in NODE/javascript returns a totally different value #101

Description

@lioneldelmo

Hi, I need some guidance in trying to get a 32bit floating point in an attribute, getting a different result in NODEJS --- ie. const scale = file.getDatasetAttribute('group_energy', 'scale_factor')

Actual Value (32bit floating point): 1.52597E-15
Result: 2.4441002025e-314

Is there something I need to do as far as conversion is concerned?

Attached is the actual NetCDF file used.

Thanks,

netcdf

OR_GLM-L2-LCFA_G16_s20182632044200_e20182632044400_c20182632044426.nc.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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