Menu

#696 HAPI 3.0 has references

open
nobody
None
5
2023-02-09
2019-09-20
No

The next revision of HAPI will allow for references in the info response. This is to (1) reduce the size needed for repeated DEPEND_1 data in "bins", and (2) to allow for time-varying DEPEND_1. See https://github.com/hapi-server/data-specification/issues/82 and https://github.com/hapi-server/data-specification/issues/83.

Discussion

  • Jeremy Faden

    Jeremy Faden - 2019-09-24

    Here's an example info from Bob's server at vap+hapi:http://hapi-server.org/servers/TestDataRef/hapi?id=dataset1&parameters=Time,spectra_time_dependent_bins&timerange=1970-01-01+0:00:00+to+0:01:11:

        {
          "bins": [
            {
              "ranges": "frequency_ranges",
              "name": "frequency",
              "centers": "frequency_centers",
              "units": "Hz"
            }
          ],
          "size": [
            10
          ],
          "name": "spectra_time_dependent_bins",
          "description": "A 10-element spectra with time-dependent bins",
          "units": "m",
          "type": "double",
          "fill": "-1e31"
        },
    
     
  • Jeremy Faden

    Jeremy Faden - 2019-09-24

    The example from Bob's server now works.

     
  • Jeremy Faden

    Jeremy Faden - 2019-09-24

    '''#ref''' is now supported as well. That's pretty easy to support, even if you have to do it by hand.

     
  • Jeremy Faden

    Jeremy Faden - 2023-02-09

    There's special code I hadn't committed that refers to this ticket and a special server, presumably used for testing. I'm commenting it out. See getInfo in HapiServer.java.

     
MongoDB Logo MongoDB