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

Description

This procedure creates images from level 3 data. The filename is constructed with this formula:
filename = l3_filename(but replace 'spice' with 'spice-ql' and the l3 fileversionnumber with the new fileversionnumber) + '_' + fns('##',hdr.winno) + '_' + fns('##',icomp+1) + '_' + param.name + '_' + image_type(see list below) + file-suffix

It will create these images per fit parameter of each fit component for each window:

  • 1 JPG image where data area has the original size (i.e. 1 pixel of data is 1 pixel in the image). (image_type='')
  • 1 PNG image without any axis of height 64 pixels. (image_type='thumb')

Syntax

spice_create_l3_images, l3_file, out_dir [, smooth=smooth] [, /interpolation] [, version=version] [, /remove_trends] [, /no_background_images] [, /NO_TREE_STRUCT] [, /show_plot]

Return value

Writes jpeg and png files with images into out_dir.

Arguments

l3_file

The full path to the level 3 SPICE FITS file.

out_dir

The directory in which the images should be saved to.

OPTIONAL INPUTS:

SMOOTH

An integer. The width of the boxcar used when smoothing the image using the smooth function. If not set no smoothing is performed.

VERSION

A string giving the version number of the file. Default is '01'.

Keywords

INTERPOLATION

If set, then the image is expanded with bilinear interpolation. This keyword should not be set, if SMOOTH input is provided.

SHOW_PLOT

If set, then the image is shown on the screen and not saved into a file.

REMOVE_TRENDS

If set, remove horizontal and vertical trends in the image

no_background_images

If set, then the images for the background component will not be created.

NO_TREE_STRUCT

If set, then the date tree structure won't be appended to OUT_DIR (e.g. OUT_DIR/ instead of OUT_DIR/2020/06/21/).