You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

General notes

  • Matlab starts indexing with 1, python starts with 0. We always have to shift the index properly in python!
  • Different data are matched using a "common index" concept: all scalars and each camera has its own "common index". We first have to find the common index and then use it to index the actual data arrays, if we want data that belong to the same shot.

Matlab file

  • Load the file using: "facetdata        = facet.FacetDataFile(filename)"

Main structure

  • Print the central keys using: "facetdata.print_keys()"
  • Print the key entries of "data_struct" using: "facetdata.print_data_entries()"

params

  • Print all entries using: "facetdata.print_params_entries()"

  • Get information about the scan:

    print("number of steps:          ", facetdata.nSteps)
    print("number of shots per step: ", facetdata.n_shot)

    facetdata.print_scanPVs()
    facetdata.print_scanVals()




scalars

  • List all entries using: "facetdata.print_scalars_entries()"


  • We explain the "common index" concept using "steps" as an example
    print all steps: "facetdata.print_steps()"
    • The list contains much more than just 20 x 50 = 1000 entries (number of shots per step x number of steps)
    • To get the number of successful shots:

      shotidx_list        = facetdata.get_shotidx_list()
      print("number of shots: ", facetdata.get_scan_length())
      print("shot idx:        ", shotidx_list)


    • Note that the function "get_shotidx_list()" returns a "LinData" object that represents a list of all successful shots
    • To index this list properly, we need the scalar common index:
      use the function "facetdata.get_scalar_cidx" to convert a shot index to a common index.


  • No labels