SSW_COPIES - ITA-Solar/solo-spice-ql GitHub Wiki

This is a list of files that were copied from other branches in the Solarsoft software library to the SPICE branch. There are two main reasons to copying these files: to improve the code or to have them available in the SPICE branch without having to import another branch.

Improved files

These files were edited to improve the code and eventually, this code may be used to update the original files in the SSW.

spice_cfit_block.pro

  • Original name: cfit_block.pro
  • Original directory: gen/idl/fitting/
  • Reason for copying it:
    • Whenever variables are checked for 'missing' values, it uses now the procedures WHERE_MISSING, WHERE_NOT_MISSING, IS_MISSING or IS_NOT_MISSING
  • Used in: spice_xcfit_block.pro and spice_data__define.pro

spice_cw_cubeview.pro

  • Original name: cw_cubeview.pro
  • Original directory: gen/idl/widgets/
  • Reason for copying it:
    • Adds keyword signal to call to (spice_)xtvscale.
    • Adds 'else' to case in event procedure.
    • Uses spice_xtvscale.
    • New keywords SIGRANGE and FRACTION, which are passed to spice_xtvscale.
  • Used in: spice_xcfit_block.pro

spice_fitshead2struct.pro

  • Original name: fitshead2struct.pro
  • Original directory: gen/idl/fits/
  • Reason for copying it:
    • Add keyword /MULTIVALUE.
    • Ignore empty keywords (unesc_key).
  • Used in: spice_data__define.pro and ana_wcs_get_transform.pro

spice_histo_opt.pro

  • Original name: histo_opt.pro
  • Original directory: iris/idl/uio/utils/
  • Reason for copying it:
    • The procedure handles now NAN and INF values correctly.
  • Used in: spice_xcfit_block.pro

spice_mk_comp_gauss.pro

  • Original name: mk_comp_gauss.pro
  • Original directory: gen/idl/fitting/
  • Reason for copying it:
    • Changed the parameter names.
    • Changed explanation of the meaning of the sign of the linear transformation coefficient to be more in line with how we actually do it with SPICE (redshift is positive).
  • Used in: generate_adef.pro

spice_xcfit_block.pro

  • Original name: xcfit_block.pro

  • Original directory: gen/idl/fitting/

  • Reason for copying it:

    • Whenever variables are checked for 'missing' values, it uses now the procedures WHERE_MISSING, WHERE_NOT_MISSING, IS_MISSING or IS_NOT_MISSING.
    • INCLUDE, CONST, ORIGIN, SCALE, PHYS_SCALE input variables will now overwrite values within ANALYSIS structure if provided. New keyword DISPLAY_THRESHOLD.
    • SPICE_HISTO_OPT is applied to all data being displayed (data, result, residual) without altering the original cubes. SPICE_HISTO_OPT because HISTO_OPT does not handle NAN correctly.
    • Does no longer set the keyword 'modal' when calling xmanager.
    • Returns if result array only has 1 dimension, apart from first one, with size GT 1.
    • Added keyword no_save_option
    • Sets errorbars in microplot to 'OFF' by default. May want to change that when error is correct.
    • Added new toggle button 'Show/Hide fit', which shows/hides a new window that shows the microplot in a bigger version. Kill events are handled from this new window, but not other events (yet).
    • New keyword MODAL, which if set, makes widget modal, requires group_leader.
    • New keyword SIGNAL_ID. A number to be sent back to the caller, when exits XCFIT_BLOCK.
    • All necessary restoration of the data is now done in the event loop, when clicks on exit.
    • New keyword IMAGE_DIM.
    • Use DISPLAY_THRESHOLD for sigrange in xtvscale (called from cw_cubeview) instead of histo_opt. Calls sigrange() if DISPLAY_THRESHOLD is greater than zero, and uses 1.0-DISPLAY_THRESHOLD as fraction. Undid most changes in Version 12. SPICE_HISTO_OPT is no longer used. display_xxx cubes removed again.
  • Used in: spice_data__define.pro and spice_data_l3__define.pro and spice_xcontrol_l23.pro

spice_xtvscale.pro

  • Original name: xtvscale.pro
  • Original directory: gen/idl/display/
  • Reason for copying it:
    • Fixed a typo (info.int.events -> info.int.signals).
    • Added 'else' in case in event procedure.
  • Used in: spice_cw_cubeview.pro

spice_xzoom.pro

  • Original name: xzoom.pro
  • Original directory: gen/idl/display/
  • Reason for copying it:
    • Added keyword /NAN to calls of bytscl().
    • Fixed bug, x/yscale was not defined in spice_xzoom_ps.
    • It uses now widget_positioner.
  • Used in: spice_xdetector.pro and spice_xmap.pro and spice_xwhisker.pro

Imported files

These files were copied so that the user doesn't need to import another branch.

spice_br_panel.pro

  • Original name: br_panel.pro
  • Original directory: iris/idl/uio/utils/
  • Reason for copying it:
    • To be able to use spice_calc_margin.pro instead of calc_margin.pro. No other edits.
  • Used in: spice_xraster.pro

spice_calc_margin.pro

  • Original name: calc_margin.pro
  • Original directory: hinode/eis/idl/util/
  • Reason for copying it:
    • Because this file is in the HINODE branch and we need it in the SPICE branch and don't want to import unnecessary branches. No other edits.
  • Used in: spice_br_panel.pro

spice_gt_peaks.pro

  • Original name: gt_peaks.pro
  • Original directory: hinode/eis/idl/atest/osdc/
  • Reason for copying it:
    • Because this file is in the HINODE branch and we need it in the SPICE branch and don't want to import unnecessary branches. No other edits.
  • Used in: spice_data__define.pro and generate_adef.pro

spice_xlineplot.pro

  • Original name: xlineplot.pro
  • Original directory: hinode/eis/idl/util/
  • Reason for copying it:
    • Because this file is in the HINODE branch and we need it in the SPICE branch and don't want to import unnecessary branches. No other edits.
  • Used in: spice_xdetector.pro and spice_xmap.pro and spice_xwhisker.pro

Files with unknown status

cdscongrid.pro

  • Original name: cdscongrid.pro
  • Original directory: soho/cds/idl/sci/data_handling/soho/cds/
  • Reason for copying it:
    • This file is not in the 'gen' branch and was or is (?) used in one of the functions/procedures used in SPICE, possibly in the IRIS branch.
  • Used in: Unknown, not directly in the SPICE branch.

Original files

cfit_block_old_ssw_version.pro

  • Original name: cfit_block.pro
  • Original directory: gen/idl/fitting/
  • Reason for copying it:
    • As a backup. In case we update the original file with our changes and something breaks.
  • Used in: -

xcfit_block_old_ssw_version.pro

  • Original name: cfit_block.pro
  • Original directory: gen/idl/fitting/
  • Reason for copying it:
    • As a backup. In case we update the original file with our changes and something breaks.
  • Used in: -

Obsolete files

These files were copied to the SPICE repository for unknown reasons, and probably may be deleted.

spice_get_calldetails.pro

  • Original name: get_calldetails.pro
  • Original directory: gen/idl/system/
  • Reason for copying it:
    • Unknown. No edits.
  • Used in: spice_inline_text.pro

spice_inline_text.pro

  • Original name: inline_text.pro
  • Original directory: gen/idl/util/
  • Reason for copying it:
    • To be able to use spice_get_calldetails.pro instead of get_calldetails.pro. No other edits.
  • Used in: -