hapi-server / server-issues

A place for tracking status of bugs in servers
0 stars 0 forks source link

length for Time wrong in MMS1_FGM_SRVY_L2 #2

Closed rweigel closed 2 years ago

rweigel commented 2 years ago

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.

berniegsfc commented 2 years ago

This is the same as issue 6

berniegsfc commented 2 years ago

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.