GithubHelp home page GithubHelp logo

Comments (3)

benjamineac avatar benjamineac commented on June 12, 2024

https://nshm-api-test.gns.cri.nz/kororaa-app-api/graphql?query=query+HazardChartsPlotsViewQuery%28%24hazard_model%3A+String%2C+%24vs30s%3A+%5BInt%5D%2C+%24imts%3A+%5BString%5D%2C+%24locs%3A+%5BString%5D%2C+%24aggs%3A+%5BString%5D%2C+%24resolution%3A+Float%29+%7B%0A++hazard_curves%3A+KORORAA_hazard_curves%28%0A++++hazard_model%3A+%24hazard_model%0A++++vs30s%3A+%24vs30s%0A++++imts%3A+%24imts%0A++++locs%3A+%24locs%0A++++aggs%3A+%24aggs%0A++++resolution%3A+%24resolution%0A++%29+%7B%0A++++ok%0A++++locations+%7B%0A++++++lat%0A++++++lon%0A++++++resolution%0A++++++code%0A++++++name%0A++++++key%0A++++%7D%0A++++curves+%7B%0A++++++hazard_model%0A++++++imt%0A++++++loc%0A++++++agg%0A++++++vs30%0A++++++curve+%7B%0A++++++++levels%0A++++++++values%0A++++++%7D%0A++++%7D%0A++%7D%0A%7D

from nshm-kororaa-apigw.

chrisbc avatar chrisbc commented on June 12, 2024

Ben I have the query ...

query HazardChartsPlotsViewQuery($hazard_model: String, $vs30s: [Int], $imts: [String], $locs: [String], $aggs: [String], $resolution: Float) {
  hazard_curves: KORORAA_hazard_curves(
    hazard_model: $hazard_model
    vs30s: $vs30s
    imts: $imts
    locs: $locs
    aggs: $aggs
    resolution: $resolution
  ) {
    ok
    locations {
      lat
      lon
      resolution
      code
      name
      key
    }
    curves {
      hazard_model
      imt
      loc
      agg
      vs30
      curve {
        levels
        values
      }
    }
  }
}

and args now ...

{
		"aggs": [
			"mean",
			"0.05",
			"0.95",
			"0.1",
			"0.9"
		],
		"hazard_model": "NSHM_v1.0.4",
		"imts": [
			"PGA",
			"SA(0.1)",
			"SA(0.2)",
			"SA(0.3)",
			"SA(0.4)",
			"SA(0.5)",
			"SA(0.7)",
			"SA(1.0)",
			"SA(1.5)",
			"SA(2.0)",
			"SA(3.0)",
			"SA(4.0)",
			"SA(5.0)",
			"SA(6.0)",
			"SA(7.5)",
			"SA(10.0)"
		],
		"locs": [
			"-40~173"
		],
		"resolution": 0.1,
		"vs30s": [
			400
		]
	}

from nshm-kororaa-apigw.

chrisbc avatar chrisbc commented on June 12, 2024

@benjamineac as dscussed - not a bug, because the lat/lon supplied is outside the NZ grid. HOWEVER I will raise a ticket on the underlying toshi-hazard-graphql-api to check for this and provide an explicit message to inform the API user when this occurs.

from nshm-kororaa-apigw.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.