     @el.find('#radius').html metadata.stellar_rad.toString().concat("x Sol")
 
   onChangeScaleSlider: ->
-    console.log 'onChangeScaleSlider(), zoomRange: ', @zoomRanges[@zoomLevel]
     val = +@el.find("#ui-slider").val()
     return if @zoomLevel is 0 or @zoomLevel > @zoomRanges.length
     @canvasGraph.plotPoints( val, val + @zoomRanges[@zoomLevel] )

    console.log 'onSubjectSelect()'
    @subject = subject
    @classification = new Classification {subject}
    # console.log 'subject: ', subject
    @loadSubjectData()
    @el.find('#loading-screen').hide()


  loadSubjectData: ->
    console.log 'LOAD SUBJECT DATA!'
    @el.find('#ui-slider').attr('disabled',true)
    @el.find(".noUi-handle").fadeOut(150)

    jsonFile = @subject.location['14-1'] # read actual subject
    # jsonFile = './offline/subject.json' # for debug only


      @canvasGraph.plotPoints()
      @canvasGraph.enableMarking()
      @drawSliderAxisNums()
      @zoomRanges = [15, 10, 2]
      @magnification = [ '1x', '10x', '20x' ]
      @showZoomMessage(@magnification[@zoomLevel])
      @el.find("#ui-slider").noUiSlider
        start: 0
        range:
          min: @canvasGraph.smallestX
          max: @canvasGraph.largestX - @zoomRange
      @el.find(".noUi-handle").hide()
    @insertMetadata()

  insertMetadata: ->
