[Previous]
[Next]
NAME:
NEAR_PC_RESP
PURPOSE:
This procedure computes the X-ray response of the NEAR P-I-N SI detector to a solar flux.
Because it is designed to work with the generic SPEX
CATEGORY:
NEAR, SPEX
CALLING SEQUENCE:
NEAR_PC_RESP, EDGES_OUT=EDGES_OUT, EDGES_IN=EDGES_IN, $
AREA=AREA, DRM=DRM
CALLS: ***
CHECKVAR [1], DATATYPE [1], DATATYPE [2], DATATYPE [3], F_DIV, NEAR_PC_FWHM
PULSE_SPREAD, RESP_CALC, Vlth, checkvar [2], edge_products
KEYWORDS:
EDGES_OUT- Energy channel edges in keV.
EDGES_IN - Photon input energies for DRM in keV.
DRM - detector response, counts/sec/cm2/keV per photon/keV/cm2
OPTIONAL INPUTS:
none
OUTPUTS:
none explicit, only through commons;
OPTIONAL OUTPUTS:
none
COMMON BLOCKS:
none
SIDE EFFECTS:
none
RESTRICTIONS:
none
PROCEDURE:
none
MODIFICATION HISTORY:
Version 1 ras, 17-may-1996
Version 2 ras, 15-aug-1996, added to common block, changed interpolation
range
Version 3 rds, 10-oct-1996, modified for NEAR Proportional
Counter
Version 4 RAS, 19-Nov-1996, modified for use with new resp_calc
and explicit EOUT, includes call to PULSE_SPREAD for
resolution broadening
[Previous]
[Next]
NAME:
NEAR_PC_RESP
PURPOSE:
This procedure computes the X-ray response of the NEAR P-I-N SI detector to a solar flux.
Because it is designed to work with the generic SPEX
CATEGORY:
NEAR, SPEX
CALLING SEQUENCE:
NEAR_PC_RESP, EDGES_OUT=EDGES_OUT, EDGES_IN=EDGES_IN, $
AREA=AREA, DRM=DRM
CALLS: ***
CHECKVAR [1], DATATYPE [1], DATATYPE [2], DATATYPE [3], F_DIV, NEAR_PC_FWHM
PULSE_SPREAD, RESP_CALC, Vlth, checkvar [2], edge_products
KEYWORDS:
EDGES_OUT- Energy channel edges in keV.
EDGES_IN - Photon input energies for DRM in keV.
DRM - detector response, counts/sec/cm2/keV per photon/keV/cm2
OPTIONAL INPUTS:
none
OUTPUTS:
none explicit, only through commons;
OPTIONAL OUTPUTS:
none
COMMON BLOCKS:
none
SIDE EFFECTS:
none
RESTRICTIONS:
none
PROCEDURE:
none
MODIFICATION HISTORY:
Version 1 ras, 17-may-1996
Version 2 ras, 15-aug-1996, added to common block, changed interpolation
range
Version 3 rds, 10-oct-1996, modified for NEAR Proportional
Counter
Version 4 RAS, 19-Nov-1996, modified for use with new resp_calc
and explicit EOUT, includes call to PULSE_SPREAD for
resolution broadening
[Previous]
[Next]
NAME: NEAR_PIN_CAL
PURPOSE:
This procedure returns the NEAR PIN PHA gain calibration vector.
CATEGORY:
NEAR, SPEX, SPECTROSCOPIC ANALYSIS
CALLING SEQUENCE:
NEAR_PIN_CAL, Enear
CALLS: ***
CHECKVAR [1], checkvar [2]
INPUTS:
none
OPTIONAL INPUTS:
Gain- default 1., keV/channel scales as 1/gain
OUTPUTS:
Enear - The calibrated PHA edges for the NEAR PIN detector in keV
OPTIONAL OUTPUTS:
none
KEYWORDS:
none
CALLED BY:
NEAR_PIN_RESP [1], NEAR_PIN_RESP [2], RD_NEAR_PIN [1], RD_NEAR_PIN [2]
COMMON BLOCKS:
none
SIDE EFFECTS:
none
RESTRICTIONS:
none
PROCEDURE:
none
MODIFICATION HISTORY:
Version 1, RAS, 19-nov-1996
[Previous]
[Next]
NAME: NEAR_PIN_CAL
PURPOSE:
This procedure returns the NEAR PIN PHA gain calibration vector.
CATEGORY:
NEAR, SPEX, SPECTROSCOPIC ANALYSIS
CALLING SEQUENCE:
NEAR_PIN_CAL, Enear
CALLS: ***
CHECKVAR [1], checkvar [2]
INPUTS:
none
OPTIONAL INPUTS:
Gain- default 1., keV/channel scales as 1/gain
OUTPUTS:
Enear - The calibrated PHA edges for the NEAR PIN detector in keV
OPTIONAL OUTPUTS:
none
KEYWORDS:
none
CALLED BY:
NEAR_PIN_RESP [1], NEAR_PIN_RESP [2], RD_NEAR_PIN [1], RD_NEAR_PIN [2]
COMMON BLOCKS:
none
SIDE EFFECTS:
none
RESTRICTIONS:
none
PROCEDURE:
none
MODIFICATION HISTORY:
Version 1, RAS, 19-nov-1996
[Previous]
[Next]
NAME:
NEAR_PIN_RESP
PURPOSE:
This procedure computes the X-ray response of the NEAR P-I-N SI detector to a solar flux.
Because it is designed to work with the generic SPEX
CATEGORY:
NEAR, SPEX
CALLING SEQUENCE:
NEAR_PIN_RESP, EDGES_OUT=EDGES_OUT, EDGES_IN=EDGES_IN, $
AREA=AREA, DRM=DRM
CALLS: ***
CHECKVAR [1], DATATYPE [1], DATATYPE [2], DATATYPE [3], FCHECK, F_DIV, GET_IJ
NEAR_FWHM, NEAR_PIN_CAL [1], NEAR_PIN_CAL [2], PULSE_SPREAD, RESP_CALC
checkvar [2], edge_products
KEYWORDS:
EDGES_OUT- Energy channel edges in keV.
EDGES_IN - Photon input energies for DRM in keV.
DRM - detector response, counts/sec/cm2/keV per photon/keV/cm2.
DIFF_COS_THETA - set number of photon inputs to 600 up to 25 keV
THETA- Response to a beam at a zenith angle of theta.
OPTIONAL INPUTS:
none
OUTPUTS:
none explicit, only through commons;
OPTIONAL OUTPUTS:
none
COMMON BLOCKS:
none
SIDE EFFECTS:
none
RESTRICTIONS:
none
PROCEDURE:
none
MODIFICATION HISTORY:
Version 1 ras, 17-may-1996
Version 2 ras, 15-aug-1996, added to common block, changed interpolation
range
Version 3 ras, 24-jan-1997, near distance now scales area
concommitant changes made to rd_near_pin.pro
Version 4, RAS, 16-Mar-1997, added newvalues structure to common block
Version 5, RAS, 1-apr-1997, encoded newvalues, although not as defaults yet
[Previous]
[Next]
NAME:
NEAR_PIN_RESP
PURPOSE:
This procedure computes the X-ray response of the NEAR P-I-N SI detector to a solar flux.
Because it is designed to work with the generic SPEX
CATEGORY:
NEAR, SPEX
CALLING SEQUENCE:
NEAR_PIN_RESP, EDGES_OUT=EDGES_OUT, EDGES_IN=EDGES_IN, $
AREA=AREA, DRM=DRM
CALLS: ***
CHECKVAR [1], DATATYPE [1], DATATYPE [2], DATATYPE [3], FCHECK, F_DIV, GET_IJ
NEAR_FWHM, NEAR_PIN_CAL [1], NEAR_PIN_CAL [2], PULSE_SPREAD, RESP_CALC
checkvar [2], edge_products
KEYWORDS:
EDGES_OUT- Energy channel edges in keV.
EDGES_IN - Photon input energies for DRM in keV.
DRM - detector response, counts/sec/cm2/keV per photon/keV/cm2.
DIFF_COS_THETA - set number of photon inputs to 600 up to 25 keV
THETA- Response to a beam at a zenith angle of theta.
OPTIONAL INPUTS:
none
OUTPUTS:
none explicit, only through commons;
OPTIONAL OUTPUTS:
none
COMMON BLOCKS:
none
SIDE EFFECTS:
none
RESTRICTIONS:
none
PROCEDURE:
none
MODIFICATION HISTORY:
Version 1 ras, 17-may-1996
Version 2 ras, 15-aug-1996, added to common block, changed interpolation
range
Version 3 ras, 24-jan-1997, near distance now scales area
concommitant changes made to rd_near_pin.pro
Version 4, RAS, 16-Mar-1997, added newvalues structure to common block
Version 5, RAS, 1-apr-1997, encoded newvalues, although not as defaults yet
[Previous]
[Next]
NAME:
NET_DIR_DIFF
PURPOSE
To check for files that are not on one machine but are on a master machine
and then copy the missing files;
INPUTS
remote_node: the machine you want to check files from
remote_dir: the directory on the master node to use
local_dirs: can be an array of directories. The program will go
through all of these directories to find the directory
that is specified from the time.
local_layer: the second directory to go through after local_dirs
passwd: if you don't want to be asked for your password after
every ftp then enter it here. Put '' if you want to enter
a value for ftp_user.
ftp_user: if you want to use a login name other than yourself
for the ftp then enter it here.
KEYWORDS
user: use this if you want to run the program as a person, otherwise it
will use an anonymous ftp.
SAMPLE CALLING SEQUENCE
net_dir_diff, 'mdibbs','/md66/log/sci160k',['/tmp45','/tmp60'],'sim_160k'
net_dir_diff, 'mdibbs','/md66/log/sci160k',['/tmp45','/tmp60'],'sim_160k','PASSWD','mdi',/user
net_dir_diff, 'mdibbs','/md66/log/sci160k','/ingest1','sim_160k','PASSWD','mdi',/user
net_dir_diff, 'mdibbs','/md66/log/sci5k', '/ingest1','sim_5k', 'PASSWD','mdi',/user
net_dir_diff, 'mdibbs','/md66/log/history','/ingest1','history', 'PASSWD','mdi',/user
HISTORY
written by Dan Goldberg 28-Nov-95
4-Dec-95 (MDM) - Modified to figure out if the FTP copy of that data has
been disabled by looking for a DONE file in the
output direcotory
- Added LOCAL_NODE keyword option
6-Dec-95 (MDM) - Added LOGFILE option
7-Dec-95 (DBG) - Made spawn commands be noshell and took out the
large for loop that was supposed to check to make sure
the files had been copied. It was deemed unnecessary.
3-Jan-96 (MDM) - Added /FTP_LS option to do the ls of the remote node by FTP
rather than by "rsh" (because of mdisas problems)
4-Jan-96 (DBG) - Added /ONE_DIR option that puts all of the files into
the base directory
4-Jan-96 (MDM) - Patched typo in /ONE_DIR option
- Patched the corruption of the "local_dirs" variable
CALLS:
[Previous]
[Next]
** *
** TITLE: NEW_GAUSS0 *
** *
** AUTHOR: J. A. Milsom *
** DATE: 29 - August - 1990 *
** PROJECT: GRO / OSSE *
** *
** Purpose: *
** *
** Calculate the single gaussian photopeak line profile. *
** The model has three free parameters. *
** The values are obtained by integrating over channels. *
** Parameter definitions are: *
** *
** AMP - Photopeak amplitude *
** FWHM - Width of convolving gaussian (> 0) *
** X0 - Peak Position *
** xlow - lower channel edge *
** xhi - upper channel edge *
CALLS:
CALLED BY
POSITRONIUM, POSITRONIUM model wpositronium fraction as parameter [1]
POSITRONIUM model wpositronium fraction as parameter [2]
[Previous]
[Next]
NAME:
nlikely
PURPOSE:
Calculates the value of 'normalized' natural LOG of the
likelihood function for given arrays of the
observed and calculated data. It is IMPORTANT that
obs and calc are in photons (or statistical events) in
order that the likelihood be meaningfull
CALLING SEQUENCE:
like = nlikely(obs, calc)
INPUTS:
obs = the observed array (events)
calc = the calculated array
OUTPUTS:
KEYWORDS:
METHOD:
Uses Stirling approximation for
calculating the factorials.
http://ece-www.colorado.edu/~bart/book/sterling.htm
CALLED BY:
adrlb
HISTORY:
version 2.01 on 30 March 99,J. Sylwester, written
[Previous]
[Next]
NAME:
NLINEAR
PURPOSE:
Do linear interpolation in N dimensions. (More general than
"BILINEAR" or "INTERPOL")
USAGE:
val=nlinear(ncube,coords)
INPUTS:
NCUBE - an N+j-dimensional array of the data to be interpolated.
The final coordinates (N+1 .. N+j) are taken to be
vectorizations of the data themselves.
COORDS - an N-vector specifying where in the cube the data
should be interpolated.
RETURNS:
A j-dimensional array containing the interpolated data.
BUGS:
Not yet debugged -- this code was diked out of trace_contour
and has not been fully fixed-up.
AUTHOR:
Craig DeForest
CALLS: ***
NLM [1], NLM [2]
HISTORY: Written 12-Dec-1997
[Previous]
[Next]
NAME:
NLM
PURPOSE:
Shorthand for "N_ELEMENTS" (sounds like "EN-ELEM")
CALLED BY
FIELDLINE, GETV4TYPE, GREEN_POT_FLAT, MAKE_DIPOLES, MAKE_SYNOP, MREADGIF, NLINEAR
PIX2V4, PLOT_PTLIST, ROLL_PLOT, SUNEARTHDIST, V4, V4DIFF_ROT, V4HELP, V4OK, V4PRINT
V4XCARR2HEL, V4XFORM, V4XHEL2CARR, V4XSC2HC [1], V4XSC2HC [2], V4XSC2HEC
V4_RESOLVE_XFORM, ZCONTAINS, ZHDRUNIT, ZHOVER, ZINRANGE, ZLASCO_SUM, ZPAD, ZUNPAD
closest_time, cube_interp, equalize_rasters, find_launchpoints, fixinate_eit
fixinate_mdi, fixinate_trace, later, local_mag_extrap, make_grid_sphere
radial_bkg, struct_eq, trace_field, unpack_trace, zanytim2cds, zcheck_hdr, zcurs_ok
zdeheliographinize, zheliographinize, zmatch, zmontage, zmovie, zmovify, zpb0r [1]
zpb0r [2], zradialize, zscale, ztrack, zunits, zunspike, zunwrap
[Previous]
[Next]
NAME:
normal
PURPOSE:
normalize a vector
AUTHOR:
Craig DeForest
CALLED BY:
find_launchpoints
HISTORY:
Written 16-Dec-97
[Previous]
[Next]
NAME:
NUCLEAR_TABLE_LOAD
PURPOSE:
Loads the nuclear tables into F_NUCLEAR
CATEGORY:
XRAY, GAMMA_RAYS, SPECTRUM, SPEX
CALLING SEQUENCE: Nuclear_table_load, table_file, table_index
CALLS: ***
DEFAULT, LAST_ITEM, LOC_FILE [1], LOC_FILE [2], LOC_FILE [3], curdir [1], curdir [2]
INPUTS:
Table_file -
nuclear template file (see f_nuclear)
includes full path if not in current directory or $SSWDB_XRAY
if no value passed, default file is used:
$SSWDB_XRAY/nuclear_template.sav
Table_index - number for this table (0-3 for up to 4 tables)
RESET - (keyword) remove all current tables (vtable set to vtable * 0)
CALLED BY:
F_NUCLEAR, Model_components [1], Model_components [2]
COMMON BLOCKS:
F_NUCLEAR_COM
MODIFICATION HISTORY:
25-feb-03, richard.schwartz@gsfc.nasa.gov
28-mar-2006, richard.schwartz@gsfc.nasa.gov