MillionConcepts / pdr

[P]lanetary [D]ata [R]eader - A single function to read all Planetary Data System (PDS) data into Python
Other
60 stars 6 forks source link

binary sequence error occurs when trying to read JUNO(JADE) data #43

Closed AlimyBreak closed 1 year ago

AlimyBreak commented 1 year ago

As I konw, the JADE (EDRs and RDRs) datasets have been Officially Supported. When I try to read the JADE files with PDR(v0.7.3), the binary data seem error sequenced.

Test code: import pdr data = pdr.read(r'C:\Users\Administrator\Desktop\PythonCode\JAD_L30_LRS_ELC_ANY_CNT_2022001_V04.lbl') data.load("all") print(data.keys()) TABLE = data["TABLE"] print(TABLE.keys()) print(TABLE["DIM0_UTC"]) print(TABLE["DATA_UNITS"])

Error information: Untitled

Ref1 is the test data link; Ref2 provides a python method,that can read JADE binary data with no sequenced error, in its Answer part. May be useful.

Refs:

  1. https://pds-ppi.igpp.ucla.edu/data/JNO-J_SW-JAD-3-CALIBRATED-V1.0/DATA/2022/2022001/ELECTRONS/
  2. https://stackoverflow.com/questions/66686265/importing-dat-files-in-python-without-knowing-how-it-is-structured
m-stclair commented 1 year ago

Thank you for the bug report!

The data providers have updated these products from version 3 to version 4 since we added support for them. The version 4 labels are very different and somewhat unusual, which resulted in this error. We have fixed this issue in b16094a. We will include this fix in the next pdr release, and if you have an urgent need to use these products in the meantime, you can clone the develop branch.

(Will close this issue on next release.)

Sierra-MC commented 1 year ago

A new pdr version has been released (v0.7.4) that supports this data and can be used with a conda-forge or pip install.

Thank you for your contribution to this work by making us aware of the issue!