CitraClient.Schemas.FITSImageDataResponse (citra_client v0.3.0)

View Source

Response model for FITS image data formatted for Plotly heatmap

Fields

  • :circles — list of CitraClient.Schemas.RegionCircle.t()
  • :headersmap()
  • :heightinteger()
  • :image_dataString.t() (API key: imageData)
  • :max_valuenumber() (API key: maxValue)
  • :mean_valuenumber() (API key: meanValue)
  • :min_valuenumber() (API key: minValue)
  • :original_filenameString.t() (API key: originalFilename)
  • :polygons — list of CitraClient.Schemas.RegionPolygon.t()
  • :std_valuenumber() (API key: stdValue)
  • :upload_id — UUID String.t() (API key: uploadId)
  • :widthinteger()
  • :zscale_maxnumber() (API key: zscaleMax)
  • :zscale_minnumber() (API key: zscaleMin)

Summary

Functions

Build this struct from a decoded JSON map received from the API. Unknown fields are ignored.

Convert this struct into a map with the API's camelCase keys, ready to be JSON-encoded. Fields whose value is nil are omitted.

Types

t()

@type t() :: %CitraClient.Schemas.FITSImageDataResponse{
  circles: [CitraClient.Schemas.RegionCircle.t() | map() | nil],
  headers: map() | nil,
  height: integer() | nil,
  image_data: String.t() | nil,
  max_value: number() | nil,
  mean_value: number() | nil,
  min_value: number() | nil,
  original_filename: String.t() | nil,
  polygons: [CitraClient.Schemas.RegionPolygon.t() | map() | nil],
  std_value: number() | nil,
  upload_id: String.t() | nil,
  width: integer() | nil,
  zscale_max: number() | nil,
  zscale_min: number() | nil
}

Functions

from_api(data)

Build this struct from a decoded JSON map received from the API. Unknown fields are ignored.

to_api(struct)

Convert this struct into a map with the API's camelCase keys, ready to be JSON-encoded. Fields whose value is nil are omitted.