CAMERA Derived Type

type, private :: CAMERA


Contents

Source Code


Components

TypeVisibility AttributesNameInitial
logical, public :: camera_on
real(kind=rp), public :: start_at

In seconds

real(kind=rp), public :: Riw

Radial position of inner wall

integer, public, DIMENSION(2):: num_pixels

Number of pixels (X,Y)

real(kind=rp), public, DIMENSION(2):: sensor_size

In meters (horizontal,vertical)

real(kind=rp), public :: pixel_area

Area of a single pixel of the camera sensor. This based on sensor_size and num_pixels.

real(kind=rp), public :: focal_length

Focal length in meters

real(kind=rp), public, DIMENSION(2):: position

Position of camera (R,Z)

real(kind=rp), public :: incline

Incline of camera in degrees

real(kind=rp), public :: horizontal_angle_view

Horizontal angle of view in radians

real(kind=rp), public :: vertical_angle_view

Vertical angle of view in radians

real(kind=rp), public, DIMENSION(:), ALLOCATABLE:: pixels_nodes_x

In meters

real(kind=rp), public, DIMENSION(:), ALLOCATABLE:: pixels_nodes_y

In meters

real(kind=rp), public, DIMENSION(:), ALLOCATABLE:: pixels_edges_x

In meters

real(kind=rp), public, DIMENSION(:), ALLOCATABLE:: pixels_edges_y

In meters

real(kind=rp), public :: lambda_min

Minimum wavelength in cm

real(kind=rp), public :: lambda_max

Maximum wavelength in cm

integer, public :: Nlambda
real(kind=rp), public :: Dlambda

In cm

real(kind=rp), public, DIMENSION(:), ALLOCATABLE:: lambda

In cm

logical, public :: integrated_opt
logical, public :: toroidal_sections
logical, public :: photon_count
integer, public :: ntor_sections
real(kind=rp), public, DIMENSION(3):: r

Source Code

  TYPE, PRIVATE :: CAMERA
     LOGICAL :: camera_on
     REAL(rp) :: start_at
     !! In seconds
     !		REAL(rp) :: aperture ! Aperture of the
     !camera (diameter of lens) in meters
     REAL(rp) :: Riw
     !! Radial position of inner wall
     INTEGER, DIMENSION(2) :: num_pixels
     !! Number of pixels (X,Y)
     REAL(rp), DIMENSION(2) :: sensor_size
     !! In meters (horizontal,vertical)
     REAL(rp) :: pixel_area
     !! Area of a single pixel of
     !! the camera sensor. This based on sensor_size and num_pixels.
     REAL(rp) :: focal_length
     !! Focal length in meters
     REAL(rp), DIMENSION(2) :: position
     !! Position of camera (R,Z)
     REAL(rp) :: incline
     !! Incline of camera in degrees
     REAL(rp) :: horizontal_angle_view
     !! Horizontal angle of view in radians
     REAL(rp) :: vertical_angle_view
     !! Vertical angle of view in radians
     REAL(rp), DIMENSION(:), ALLOCATABLE :: pixels_nodes_x
     !! In meters
     REAL(rp), DIMENSION(:), ALLOCATABLE :: pixels_nodes_y
     !! In meters
     REAL(rp), DIMENSION(:), ALLOCATABLE :: pixels_edges_x
     !! In meters
     REAL(rp), DIMENSION(:), ALLOCATABLE :: pixels_edges_y
     !! In meters

     REAL(rp) :: lambda_min
     !! Minimum wavelength in cm
     REAL(rp) :: lambda_max
     !! Maximum wavelength in cm
     INTEGER :: Nlambda
     REAL(rp) :: Dlambda
     !! In cm
     REAL(rp), DIMENSION(:), ALLOCATABLE :: lambda
     !! In cm

     LOGICAL :: integrated_opt
     LOGICAL :: toroidal_sections
     LOGICAL :: photon_count
     INTEGER :: ntor_sections

     REAL(rp), DIMENSION(3) :: r
  END TYPE CAMERA