Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

length for Time wrong in MMS1_FGM_SRVY_L2 #2

Closed
rweigel opened this issue Jun 28, 2022 · 2 comments
Closed

length for Time wrong in MMS1_FGM_SRVY_L2 #2

rweigel opened this issue Jun 28, 2022 · 2 comments
Labels

Comments

@rweigel
Copy link
Contributor

rweigel commented Jun 28, 2022

A user reported issues with the Python HAPI client. The client could read the csv response, but by default binary is used and the data returned was garbled.

If you look at

https://hapi-server.org/servers/#server=CDAWeb&dataset=MMS1_FGM_SRVY_L2@0&parameters=mms1_fgm_b_gse_srvy_l2&start=2015-09-01T00:00:12Z&stop=2015-09-01T00:00:24.000Z&return=data&format=csv&style=noheader, you can see the timestamps have length of 30. However, the timestamps in the parameter level metadata are reported as having length 24.

@rweigel rweigel added the cdaweb label Jun 28, 2022
@berniegsfc
Copy link

This is the same as issue 6

@berniegsfc
Copy link

A fix has been deployed.

$ curl -s "https://cdaweb.gsfc.nasa.gov/hapi/info?id=MMS1_FGM_SRVY_L2@0" | jq '.parameters[]|select(.name | test("Time")?)' 
{
  "name": "Time",
  "type": "isotime",
  "units": "UTC",
  "length": 30,
  "fill": null
}

Please verify and close this issue if you are satisfied.

@rweigel rweigel closed this as completed Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants