sunpy / drms

Access HMI, AIA and MDI data with Python from public JSOC DRMS servers
https://docs.sunpy.org/projects/drms/en/stable/
BSD 2-Clause "Simplified" License
22 stars 23 forks source link

Row-centric hex string handling #102

Closed PaulJWright closed 1 year ago

PaulJWright commented 1 year ago

This PR modifies the handling of hexadecimal strings within drms/client.py to convert select rows to base 16 integers, rather than converting all entries within a column.

Closes https://github.com/sunpy/drms/issues/98

The following test was added to cover the changes

import drms
client = drms.Client(debug=True, verbose=True, email="pjwright@stanford.edu")
keys = client.query('hmi.M_720s[2011.04.14_00:30:00_TAI/6h@2h]', key=drms.const.all)
                   DATE                DATE__OBS                 DATE-OBS  ...                                           CODEVER2                                           CODEVER3  CALVER64
0  2011-04-19T00:30:15Z                  MISSING                  MISSING  ...                                            MISSING                                            MISSING         0
1  2011-04-19T00:30:17Z                  MISSING                  MISSING  ...                                            MISSING                                            MISSING         0
2  2012-09-05T08:54:25Z  2011-04-14T04:34:20.00Z  2011-04-14T04:34:20.00Z  ...  $Id: interpol_code.c,v 1.1 2010/09/16 20:46:48...  $Id: polcal.c,v 1.4 2010/09/23 20:57:27 schou ...        16

[3 rows x 87 columns]