ascl_id
stringclasses
752 values
repo_url
stringclasses
737 values
file_path
stringlengths
4
194
content
large_stringlengths
1
1M
language
stringclasses
29 values
license_type
stringclasses
24 values
size
int64
1
1M
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/scaleline.pro
FUNCTION cc_kernel, s s2 = s * s s3 = s2 * s u = [-0.5*(s3 + s) + s2, 1.5*s3 - 2.5*s2 + 1.0, $ -1.5*s3 + 2.0*s2 + 0.5*s, 0.5*(s3 - s2)] return, u END FUNCTION cubeconvol, f, x N = n_elements(f) IF (N LE 3) THEN return, interpolate(f, x) j = long(x) u = cc_kernel(x - j) g = 0.0 ...
IDL
null
944
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/readnistlevels.pro
FUNCTION readnistlevels, inputfile, baselabel IF (n_params() LT 2) THEN BEGIN print, "Usage: levels = READNISTLEVELS(inputfile, baselabel)" return, 0 END FALSE = 0 TRUE = 1 HPLANCK = 6.6260755E-34 CLIGHT = 2.99792458E+08 CM_TO_M = 1.0E-02 openr, lun_in, /GET_LUN, inputfile inputline = ''...
IDL
null
2,152
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/readmollines.pro
FUNCTION readKuruczMolecularLines, logicalUnit, Nlines molecular_rt = {KURUCZ_MOL_LINE_STR, $ wavelength: 0.0, log_gf: 0.0, Ji: 0.0, Ei: 0.0, $ Jj: 0.0, Ej: 0.0, code: 0, $ configi: 'X', vi: 0, parity_i: 'E1', $ configj: 'A', vj: 0, parity_j: 'E...
IDL
null
2,356
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/pstvscl.pro
pro PSTVSCL, image, x, y common SCREEN_COMMON, ScreenSize, ScaleFactor if (n_elements(x)) eq 0 then xpos = 0 if (n_elements(y)) eq 0 then ypos = 0 if (!D.NAME eq 'PS') then begin xps = float(x)/ScreenSize(0)*!D.X_SIZE yps = float(y)/ScreenSize(1)*!D.Y_SIZE sz = size(image) xsz = float(sz(1))...
IDL
null
502
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/psposition.pro
function PSPOSITION, position common SCREEN_COMMON, ScreenSize, ScaleFactor if n_elements(ScaleFactor) eq 0 then $ message, 'scaling factor not established, call swindow first' return, position*[ScaleFactor, ScaleFactor] end
IDL
null
239
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/initrh.pro
;; --- Precompile these analysis routines -- --------- ; forward_function openJ, readGeometry, readAtmos, readAtom, $ openOpacity, getTau, xann, yann, imu, readMolecules, setRatio, $ readmollines, readInput, timestamp, linecooling, setQuantity .r misc_func xyann readinput timestamp linecooling .r read...
IDL
null
1,033
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/viewalpha.pro
; ----------------------------------------- viewaalpha.pro ----------- ; ; -------- begin -------------------------- XViewAlpha_Event.pro ----- ; PRO XViewAlpha_Event, Event Off = 0 & On = 1 ;; --- Main event handler -- -------------- ; stash = widget_info( Event.handler, /CHILD ) ...
IDL
null
5,759
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/analyze.pro
; -------- file: -------------------------- analyze.pro -------------- ; ; -------- begin -------------------------- metalMenu_Event_func.pro - ; FUNCTION metalMenu_Event_Func, event widget_control, event.id, GET_UVALUE=uvalue return, {ID:event.handler, TOP:event.top, HANDLER:0L, VALUE:uvalue} END ; -------- en...
IDL
null
15,952
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/readgeometry.pro
; -------- file: -------------------------- readgeometry.pro---------- ; ; -------- begin -------------------------- readGeometry.pro --------- ; FUNCTION readGeometry, fileName ;+ ; NAME: ; READGEOMETRY ; ; PURPOSE: ; This routine reads the geometry output file from the RH radiative ; transfer programs (RHF1D...
IDL
null
3,695
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/linecooling.pro
FUNCTION linecooling, atom, kr CLIGHT = 2.99792458D+08 HPLANCK = 6.6260755D-34 NM_TO_M = 1.0E-09 Rij = *(atom.transition[kr].Rij_ptr) Rji = *(atom.transition[kr].Rji_ptr) i = atom.transition[kr].i j = atom.transition[kr].j sz = size(Rij) CASE (sz[0]) OF 1: BEGIN ni = (*(atom.n_ptr))[*,...
IDL
null
676
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/write1datmos.pro
PRO write1datmos, atmos, FILENAME=filename CM_TO_M = 1.0E-2 KM_TO_M = 1.0E+3 openw, unit, filename, /GET_LUN printf, unit, atmos.atmosID + " (extended)" printf, unit, $ FORMAT='(2X,"Height scale")' printf, unit, $ FORMAT='("*",/"* lg g",/F6.2,/"*",/"* Ndep",/I4,/"*")', $ alog10(atmos.gravitatio...
IDL
null
894
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/is_big_endian.pro
FUNCTION is_big_endian return, (byte(1, 0, 2))[1] END
IDL
null
57
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/read_rlk_pf.pro
FUNCTION fcn, x, c y = c[3] + x*(c[2] + x*(c[1] + x*c[0])) return, y END FUNCTION fcn0, x COMMON data_share, c, pf return, fcn(x, c) - pf[0] END FUNCTION dfcn, x, c, k CASE k OF 0: return, x^3 1: return, x^2 2: return, x 3: return, 1.0 ENDCASE END PRO read_rlk_pf, FIT=fit, PLOT=plot...
IDL
null
2,781
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/formal2d.pro
angleSet = 0L & mu = 0L Ninclination = 4L & Nazimuth = 3L Nx = 250L & Nz = 100L dx = 2.5*12.5 + dblarr(Nx) zmin = 0.0 & zmax = 600.0 dS_x = 0.0 & dS_z = 0.0 FIXED = 0L & PERIODIC = 1L hboundCond = PERIODIC x = dblarr(Nx) & FOR l=0, Nx-2 DO x(l+1) = x(l) + dx(l) z = zmax + (zmin - z...
IDL
null
1,874
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/tradiation.pro
FUNCTION tradiation, intensity, lambda0 ;+ ; NAME: ; TRADIATION ; ; PURPOSE: ; This function returns the radiation temperature of corresponding ; to the intensities INTENSITY at central wavelength LAMBDA0. ; ; CATEGORY: ; Radiative transfer ; ; CALLING SEQUENCE: ; Result = TRADIATION(intensity, lambda0) ; ; INPU...
IDL
null
1,316
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/viewsplitting.pro
; ----------------------------------------- viewsplitting.pro -------- ; function parselabel, g, label, S, L, J, QUIET=quiet words = strsplit(label, ' ', /EXTRACT) words = words(where(words ne '')) resolved = 0 FOR n=n_elements(words)-1, 0, -1 DO BEGIN parity_pos = max([strpos(words[n], 'E'), strpos(word...
IDL
null
10,275
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/gauntff.pro
FUNCTION gauntff, lambda, charge, T HPLANCK = 6.6260755E-34 CLIGHT = 2.99792458E+08 E_RYDBERG = 2.1798741E-18 KBOLTZMANN = 1.380658E-23 NM_TO_M = 1.0E-9 x = ((HPLANCK * CLIGHT)/(lambda * NM_TO_M)) / (E_RYDBERG * charge^2) x3 = x^0.33333333 y = (2.0 * lambda * NM_TO_M * KBOLTZMANN*T) /...
IDL
null
456
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/fouriershift.pro
FUNCTION cwindow, relr c = [0.074, 0.302, 0.233, 0.390] IF (relr GT 1.5) THEN return, 0.0 r = 1.0 - relr^2 r2 = r^2 r3 = r2 * r cwind = ((c(0) + (r * c(1))) + (r2 * c(2))) + (r3 * c(3)) return, (cwind > 0.0) END FUNCTION rolloff, Nx, Ny, cutoff Nx2 = Nx/2 Ny2 = Ny/2 r0 = sqrt(Nx^2 + Ny^2) * ...
IDL
null
3,673
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/replace_tag.pro
function replace_tag, s, tagname, tagvalue ;; --- Replace the value of tag tagname of structure s with tagvalue. ;; Returns an anonymous version of the modified struture. ;; ;; Note: This operation does not preserve the name of the structure Ntags = n_tags(s) IF (Ntags LE 0) THEN BEGIN print, ...
IDL
null
943
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/split2datmos.pro
PRO split2datmos, twod_in, oned_out, x_index @ATMOS CM_TO_M = 1.0E-2 IF (n_params(0) LT 3) THEN BEGIN print, "Usage: split2datmos, twod_in, oned_out, x_index" return ENDIF atmos = read2datmos(twod_in) IF (x_index LT 0 OR x_index GE atmos.Nx) THEN BEGIN print, FORMAT='("Invalid index for x! S...
IDL
null
1,428
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/writemulti.pro
PRO writemulti, model, geometry, HLTE=HLTE, FILENAME=filename, $ NEW_DSCALE=new_dscale ;; Write a MULTI-format atmosphere from structure atmos ;; See READ1DATMOS for the format of the atmos structure used here. ;; ;; When NEW_DSCALE is set the atmosphere is interpolated to the new scale ;; E...
IDL
null
3,622
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/replic_atmos.pro
PRO replic_atmos, multiAtmos, OUTPUT_BASE=output_base, NX=Nx, DX=dx, VX=vx, $ NZ1=Nz1 @ATMOS read_atmos, multiAtmos CM_TO_M = 1.0E-02 KM_TO_M = 1.0E+03 G_TO_KG = 1.0E-03 FIXED = 0L & PERIODIC = 1L IRRADIATED = 0L & ZERO = 1L & THERMALIZED = 2L WGHT_PER_H = 1.4350 AMU = 1.66054...
IDL
null
2,732
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/read_ncdf_var.pro
FUNCTION read_ncdf_var, infile, varname, groupname=groupname ; ;+ ; NAME: ; read_ncdf_var ; ; PURPOSE: ; Read a variable from a netCDF file. ; ; CALLING SEQUENCE: ; data = read_ncdf_var(infile, varname, groupname) ; ; INPUTS: ; infile - string with file name. ; varname - string with variable name. Case s...
IDL
null
1,343
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/returns.pro
FUNCTION returnS, lambdaNo, rayNo, ACTIVE=active, BACKGROUND=background, Bp @atmos.common @spectrum.common @opacity.common @files.common ;; --- Returns the source function at wavelength index lambdaNo, ;; and ray index rayNo -- --------------- ;; IF (n_params() LT 2) THEN BEGIN p...
IDL
null
1,132
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/imu.pro
; -------- file: -------------------------- imu.pro ------------------ ; ; -------- begin -------------------------- imu.pro ------------------ ; FUNCTION imu, spectrum, thexmu, xmu IF (n_params(0) LT 3) THEN BEGIN print, 'Usage: IMU, spectrum, thexmu, xmu' return, 0 ENDIF ;; --- Calculate intensities...
IDL
null
1,020
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/viewabundance.pro
; ----------------------------------------- viewabundance.pro -------- ; ; -------- begin -------------------------- XViewAbund_Event.pro ----- ; PRO XViewAbund_Event, Event ;; --- Main event handler -- -------------- ; stash = widget_info( Event.handler, /CHILD ) widget_control, stas...
IDL
null
3,731
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/braultneckel.pro
PRO braultneckel, lambda_blue, lambda_red, Ilambda, lambda, Icont IF (n_params() LT 4) THEN BEGIN print, $ "Usage: braultneckel, lambda_blue, lambda_red, Ilambda, lambda, Icont" return ENDIF IF (lambda_red LE lambda_blue) THEN BEGIN print, "LAMBDA_RED has to be larger than LAMBDA_BLUE: " pri...
IDL
null
2,162
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/readatom.pro
; -------- file: -------------------------- readatom.pro ------------- ; ; -------- begin -------------------------- readPops.pro ------------- ; FUNCTION readPops, atom, fileName @geometry.common @files.common IF (n_tags(atom) LE 0) THEN return, 0 openr, popsUnit, fileName, /XDR, /GET_LUN ;; --- Store name...
IDL
null
15,034
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/read1datmos.pro
FUNCTION read1datmos, fileName ;+ ; NAME: ; READ1DATMOS ; ; PURPOSE: ; This routine reads 1-dimensional model atmospheres in MULTI format. ; This is also the format used by RHF1D. ; ; CATEGORY: ; Data reduction ; ; CALLING SEQUENCE: ; atmos = READ1DATMOS(fileName) ; ; INPUTS: ; fileName: Name of the file ...
IDL
null
3,191
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/viewie.pro
; ----------------------------------------- viewie.pro --------------- ; FUNCTION rayMenu_Event_Func, event widget_control, event.id, GET_UVALUE=uvalue return, {ID:event.handler, TOP:event.top, HANDLER:0L, VALUE:uvalue} END ; -------- begin -------------------------- setRayNo.pro ------------- ; FUNCTION setRay...
IDL
null
24,770
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/surf_track.pro
; ; $Id: surf_track.pro,v 1.2 1997/03/26 20:40:21 griz Exp $ ; ; Copyright (c) 1997, Research Systems, Inc. All rights reserved. ; Unauthorized reproduction prohibited. ;+ ; NAME: ; SURF_TRACK ; ; PURPOSE: ; This procedure serves as an example of using the trackball ; object to manipulate a surface object. ; ; CATEGOR...
IDL
null
19,383
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/readspectrum.pro
; -------- file: -------------------------- readspectrum.pro --------- ; ; -------- begin -------------------------- readSpectrum.pro --------- ; FUNCTION readSpectrum, fileName ;+ ; NAME: ; READSPECTRUM ; ; PURPOSE: ; This routine reads the output spectral data FOR the RH radiative ; transfer routines RHF1D, ...
IDL
null
5,935
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/readall.pro
;+ ; NAME: ; READALL ; ; PURPOSE: ; This routine reads geometry, atmosphere, background, atomic data, ; and spectral output data. ; ; CATEGORY: ; Data reduction ; ; CALLING SEQUENCE: ; .r readall ; ; INPUTS: ; OPTIONAL INPUTS: ; KEYWORD PARAMETERS: ; OUTPUTS: ; geometry, atmos, spectrum, atom ; ...
IDL
null
1,737
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/KPKatlas.pro
PRO KPKatlas, lambdaMin, lambdaMax, SAMPLE=sample, $ Iatlas, latlas ; Reads selected wavelength range from the Kohl, Parkinson, &Kurucz UV Atlas ; ; Parameters: ; Input: lambdaMin -- Minimum wavelength [nm] ; lambdaMax -- Maximum wavelength [nm] ; Output: Iatlas --...
IDL
null
2,363
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/tabinv_nm.pro
PRO TABINV_NM,XARR,X,IEFF ;+ ; NAME: ; TABINV ; PURPOSE: ; To find the effective index of a function value in ; an ordered vector. ; CALLING SEQUENCE: ; TABINV,XARR,X,IEFF ; INPUTS: ; XARR - the vector array to be searched, must be monotonic ; increasing or decreasing ; X -...
IDL
null
3,293
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/sumeratlas.pro
PRO sumeratlas, lambdaMin, lambdaMax, SAMPLE=sample, Iatlas, latlas, $ NETWORK=network ; Reads selected wavelength range from the SUMER/SOHO UV Atlas ; ; Parameters: ; Input: lambdaMin -- Minimum wavelength [nm] ; lambdaMax -- Maximum wavelength [nm] ; Output: Iatlas...
IDL
null
2,423
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/vv.pro
PRO vv, u, v, x, y, LENGTH=length, V_COLORS=v_colors, _EXTRA=extra ;; Adaptation of IDL's velovect to get the velocity vectors at the ;; proper x and y location without extending the x- and y axes. ;; ;; Han Uitenbroek, Feb 3, 1997 IF (n_params(0) LT 4) THEN BEGIN print, "Usage: vv, u, v, x, y, LENGTH=length, ...
IDL
null
2,714
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/make2dslab.pro
PRO make2dslab, IRRAD=irrad ;; Write a 2-D slab for rhsc2d FIXED = 0L & PERIODIC = 1L IRRADIATED = 0L & ZERO = 1L & THERMALIZED = 2L lBoundCond = FIXED IF (keyword_set(IRRAD)) THEN $ lBoundVal = [IRRADIATED, IRRADIATED] $ ELSE $ lBoundVal = [ZERO, ZERO] T_0 = 8.0E+3 nH_0 = 1.0E+16 ...
IDL
null
2,109
[ascl:1502.001]
https://github.com/ITA-Solar/rh
idl/readinput.pro
; -------- file: -------------------------- readinput.pro ------------ ; ; -------- begin -------------------------- readInput.pro ------------ ; FUNCTION readInput, filename ;+ ; NAME: ; READINPUT ; ; PURPOSE: ; This routine reads various input data from filee ; ; CATEGORY: ; Data reduction ; ; CALLING SEQUENCE: ; ...
IDL
null
1,833
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhsphere/readatmos.c
/* ------- file: -------------------------- readatmos.c ------------- Version: rh2.0, 1-D spherically symmetric Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Mon Nov 16 02:35:19 2009 -- -------------------------- ----------RH-- */ /* --- Rea...
C
null
11,467
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhsphere/geometry.h
/* ------- file: -------------------------- geometry.h -------------- Version: rh2.0, 1-D spherically symmetric Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Fri Jan 28 11:02:03 2005 -- -------------------------- ----------RH-- */ #ifndef __...
C/C++ Header
null
2,257
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhsphere/project.c
/* ------- file: -------------------------- vproject.c -------------- Version: rh2.0, 1-D spherically symmetric Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Wed Feb 12 13:36:22 2003 -- -------------------------- ----------RH-- */ /* --- Cal...
C
null
1,190
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhsphere/readinput.c
/* ------- file: -------------------------- readinput.c ------------- Version: rh2.0, 1-D spherically symmetric Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Thu Jan 28 22:02:22 1999 -- -------------------------- ----------RH-- */ /* --- Rea...
C
null
5,461
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhsphere/writegeom_xdr.c
/* ------- file: -------------------------- writegeom_xdr.c --------- Version: rh2.0, 1-D spherically symmetric Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Fri Jun 2 11:34:00 2000 -- -------------------------- ----------RH-- */ /* --- Wri...
C
null
2,775
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhsphere/formal.c
/* ------- file: -------------------------- formal.c ---------------- Version: rh2.0, 1-D spherically symmetric Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Wed Jul 8 10:30:06 2009 -- -------------------------- ----------RH-- */ /* --- For...
C
null
12,418
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhsphere/geometry.c
/* ------- file: -------------------------- geometry.c -------------- Version: rh2.0, 1-D spherically symmetric Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Thu Aug 16 07:44:51 2001 -- -------------------------- ----------RH-- */ /* --- Fig...
C
null
3,446
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhsphere/feautrier.c
/* ------- file: -------------------------- feautrier.c ------------- Version: rh2.0, 1-D spherically symmetric Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Fri Jan 28 11:01:08 2005 -- -------------------------- ----------RH-- */ /* --- Eva...
C
null
5,685
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhsphere/rhsphere.c
/* ------- file: -------------------------- rhspere.c --------------- Version: rh2.0, 1-D spherically symmetric Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Wed Apr 22 09:51:33 2009 -- -------------------------- ----------RH-- */ /* --- Mai...
C
null
3,051
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhsphere/rii.c
/* ------- file: -------------------------- rii.c ------------------- Version: rh2.0, , 1-D spherically symmetric Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Wed Oct 18 16:25:02 2000 -- -------------------------- ----------RH-- */ /* --- E...
C
null
1,568
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhsphere/solveplane.c
/* ------- file: -------------------------- solveplane.c ------------ Version: rh2.0, 1-D spherically symmetric Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Mon Oct 16 11:03:34 2000 -- -------------------------- ----------RH-- */ /* --- O...
C
null
6,375
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhf1d/iter_1d.c
/* ---------------------------------------- Iterate.c --------------- */ /* ------- One-D, plane-parallel version ---------------------------- */ /* Implements a simple single-line scattering problem with given * photon destruction probability epsilon and Planck function Bp. * * Han Uitenbroek * Last modified: Wed...
C
null
3,299
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhf1d/piecewise.c
/* ------- file: -------------------------- piecewise1d.c ----------- /* --- Piecewise quadratic integration of transfer equation in one dimension. -- For boundary condition THERMALIZED use the relation I ~= B - \mu dB / d\tau, where \tau is taken in the direction of the ray (i.e. NOT in...
C
null
11,460
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhf1d/solve1d.c
/* ---------------------------------------- solve1d.c --------------- */ /* ------- One-D, plane-parallel version ---------------------------- */ /* Main routine of my_1D_radiative_transfer_program. * * Han Uitenbroek * Last modified: Wed Apr 22 09:44:52 2009 -- */ #include <stdlib.h> #include "rh.h" #include "...
C
null
4,139
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhf1d/solveray.c
/* ------- file: -------------------------- solveray.c -------------- Version: rh2.0, 1-D plane-parallel Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Wed Apr 22 09:45:18 2009 -- -------------------------- ----------RH-- */ /* --- Solves rad...
C
null
7,538
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhf1d/anglequad.c
/* ------- file: -------------------------- anglequad.c ------------- Version: rh2.0, 1-D plane-parallel Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Thu Jan 15 15:47:11 2004 -- -------------------------- ----------RH-- */ /* --- Get angle ...
C
null
1,687
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhf1d/writegeom_xdr.c
/* ------- file: -------------------------- writegeom_xdr.c --------- Version: rh2.0, 1-D plane-parallel Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Wed Jan 26 17:34:29 2000 -- -------------------------- ----------RH-- */ /* --- Writes geo...
C
null
2,399
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhf1d/feautrier.c
/* ------- file: -------------------------- feautrier.c ------------- Version: rh2.0 Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Fri Nov 3 09:04:22 2000 -- -------------------------- ----------RH-- */ /* --- Evaluate sum of monochromatic ...
C
null
6,260
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhf1d/formal.c
/* ------- file: -------------------------- formal.c ---------------- Version: rh1.0, 1-D plane-parallel Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Thu Jan 14 16:14:23 2010 -- -------------------------- ----------RH-- */ /* --- Formal sol...
C
null
12,140
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhf1d/riiplane.c
/* ------- file: -------------------------- riiplane.c -------------- Version: rh2.0, 1-D plane-parallel Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Thu Jan 22 11:02:49 2004 -- -------------------------- ----------RH-- */ /* --- Evaluates ...
C
null
3,230
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhf1d/rhf1d.c
/* ------- file: -------------------------- rhf1d.c ----------------- Version: rh2.0, 1-D plane-parallel Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Thu Feb 24 16:40:14 2011 -- -------------------------- ----------RH-- */ /* --- Main routi...
C
null
3,286
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhf1d/piecestokes.c
/* ------- file: -------------------------- piecestokes.c ----------- Version: rh2.0, 1-D plane-parallel Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Mon Feb 23 16:18:46 2004 -- -------------------------- ----------RH-- */ /* --- Piecewise ...
C
null
4,724
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhf1d/project.c
/* ------- file: -------------------------- project.c --------------- Version: rh2.0, 1-D plane-parallel Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Tue Feb 11 16:46:53 2003 -- -------------------------- ----------RH-- */ #include <math....
C
null
2,448
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhf1d/geometry.h
/* ------- file: -------------------------- geometry.h -------------- Version: rh2.0, 1-D plane-parallel Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Fri Feb 24 08:21:55 2012 -- -------------------------- ----------RH-- */ #ifndef __GEOMETR...
C/C++ Header
null
1,720
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhf1d/writeflux_xdr.c
/* ------- file: -------------------------- writeflux_xdr.c --------- Version: rh2.0, 1-D plane-parallel Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Tue Jan 20 09:29:21 2004 -- -------------------------- ----------RH-- */ #include <stdli...
C
null
1,987
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhf1d/hydrostat.c
/* ------- file: -------------------------- hydrostat.c ------------- Version: rh2.0, 1-D plane-parallel Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Tue Oct 13 14:25:37 2009 -- -------------------------- ----------RH-- */ /* --- Solve for ...
C
null
6,797
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhf1d/backgrcontr.c
/* ------- file: -------------------------- backgrcontr.c ----------- Version: rh2.0, 1-D plane-parallel Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Wed Apr 22 09:45:42 2009 -- -------------------------- ----------RH-- */ #include <stdlib....
C
null
1,812
[ascl:1502.001]
https://github.com/ITA-Solar/rh
rhf1d/multiatmos.c
/* ------- file: -------------------------- multiatmos.c ------------ Version: rh2.0, 1-D plane-parallel Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Fri Mar 27 16:03:23 2009 -- -------------------------- ----------RH-- */ /* --- Reads atmo...
C
null
12,373
[ascl:1502.001]
https://github.com/ITA-Solar/rh
docs/input.md
# Input files ## Configuration files The configuration of an RH 1.5D is made primarily through several text files that reside in the run directory. The main file is `keyword.input`. All the other files and their locations are specified in `keyword.input`. The source tree contains a sample `rh/rh15d/run/` directory wi...
Markdown
null
16,811
[ascl:1502.001]
https://github.com/ITA-Solar/rh
docs/helita.md
# `helita` interface The [helita](https://github.com/ITA-Solar/helita) Python package contains several routines to interface with RH 1.5D. Installation instructions are [available in its website](https://helita.readthedocs.io/en/latest/installation.html). ## Reading and writing input files ### Writing atmosphere fil...
Markdown
null
10,221
[ascl:1502.001]
https://github.com/ITA-Solar/rh
docs/introduction.md
# Introduction ## What is RH 1.5D RH 1.5D is a modified version of the RH radiative transfer code that runs through a 3D/2D/1D atmosphere column-by-column, in the same fashion of rhf1d. It was developed as a way to efficiently run RH column-by-column (1.5D) over large atmospheres, simplifying the output and being abl...
Markdown
null
4,200
[ascl:1502.001]
https://github.com/ITA-Solar/rh
docs/installation.md
# Installation ## Getting the code The code is available on a git repository, hosted on github: <https://github.com/ita-solar/rh>. If you don't have [git](http://git-scm.com/) installed and just want to get started, the easiest way is to download a zip file with the latest revision: <https://github.com/ita-solar/rh/a...
Markdown
null
7,658
[ascl:1502.001]
https://github.com/ITA-Solar/rh
docs/running.md
# Running the code ## Binaries and execution {#binaries-label} Compilation should produce three executables: `rh15d_ray_pool`, `rh15d_ray`, and `rh15d_lteray`. The latter is a special case for running only in LTE. The other two are the main programs. They represent two different modes of job distribution: *normal* an...
Markdown
null
15,209
[ascl:1502.001]
https://github.com/ITA-Solar/rh
docs/cmd.md
# Command line tools Two useful command line tools that come with HDF5 are [h5dump](https://support.hdfgroup.org/HDF5/doc/RM/Tools.html#Tools-Dump) and [h5repack](https://support.hdfgroup.org/HDF5/doc/RM/Tools.html#Tools-Repack). `h5dump` can be used with the `-H` option to look at the header of a file: see the dimen...
Markdown
null
1,692
[ascl:1502.001]
https://github.com/ITA-Solar/rh
docs/output_idl.md
# Reading output in IDL There are no specific IDL routines for reading the output from RH 1.5D. However, there is a utility function that can be used to variables from HDF5/netCDF4 files, under the `idl/` directory in a file named `read_ncdf_var.pro`. The function `read_ncdf_var()` can be used to read variables from a...
Markdown
null
715
[ascl:1502.001]
https://github.com/ITA-Solar/rh
docs/output.md
# Output file structure ## Overview Output is written into three files: `output_aux.hdf5`, `output_indata.hdf5`, and `output_ray.hdf5`. This is a big departure from RH, which contained several more output files. In particular, RH 1.5D will not write all the information that was written by RH, due to the sheer size ...
Markdown
null
15,463
[ascl:1502.001]
https://github.com/ITA-Solar/rh
docs/output_python.md
# Reading output in Python The [helita](https://github.com/ITA-Solar/helita) package has a complete python interface to read the output, input, and visualise files from RH 1.5D. The `helita` tools are described in detail in section [helita](helita.md). If `helita` is not available, the easiest and fastest way to read...
Markdown
null
2,713
[ascl:1502.001]
https://github.com/ITA-Solar/rh
docs/bugs.md
# Known bugs and limitations RH 1.5D is always evolving, and there are likely to be bugs and limitations. If you find bugs, please file them as [issues on github](https://github.com/ITA-Solar/rh/issues). They will be dealt with as time permits. ## Current issues - Check the github [RH issues page](https://gith...
Markdown
null
1,426
[ascl:1502.001]
https://github.com/ITA-Solar/rh
docs/index.md
# Welcome to RH 1.5D's documentation! Welcome to the RH 1.5D documentation. Head over to the [Introduction](introduction.md) or browse the different sections.
Markdown
null
163
[ascl:1502.001]
https://github.com/ITA-Solar/rh
doc/requirements.txt
docutils<0.18
Text
null
14
[ascl:1502.001]
https://github.com/ITA-Solar/rh
doc/notebooks/Visualisation.ipynb
{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": true, "jupyter": { "outputs_hidden": true } }, "outputs": [], "source": [ "%matplotlib widget\n", "from helita.sim import rh15d \n", "from helita.vis import rh15d_vis" ] }, { ...
Jupyter Notebook
null
127,982
[ascl:1502.001]
https://github.com/ITA-Solar/rh
doc/notebooks/BasicOutput.ipynb
{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "%matplotlib widget\n", "import matplotlib.pyplot as plt" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Reading RH 1.5D output\n", "\n", "This no...
Jupyter Notebook
null
73,556
[ascl:1502.001]
https://github.com/ITA-Solar/rh
doc/notebooks/InputData.ipynb
{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "%matplotlib widget\n", "from helita.sim import rh15d\n", "from helita.vis import rh15d_vis" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now we need to ...
Jupyter Notebook
null
102,774
[ascl:1502.001]
https://github.com/ITA-Solar/rh
doc/source/bugs.txt
************************** Known bugs and limitations ************************** RH 1.5D is always evolving, and there are likely to be bugs and limitations. Please send all bug reports to tiago.pereira-at-astro.uio.no and they will be dealt with as time permits. Current issues ============== * Check the github `RH ...
Text
null
1,422
[ascl:1502.001]
https://github.com/ITA-Solar/rh
doc/source/index.txt
.. RH 1.5D documentation master file Welcome to RH 1.5D's documentation! =================================== Contents: .. toctree:: :numbered: :maxdepth: 2 introduction installation input running output helita bugs
Text
null
248
[ascl:1502.001]
https://github.com/ITA-Solar/rh
doc/source/running.txt
**************** Running the code **************** .. _binaries-label: Binaries and execution ====================== Compilation should produce three executables: ``rh15d_ray_pool``, ``rh15d_ray``, and ``rh15d_lteray``. The latter is a special case for running only in LTE. The other two are the main programs. They r...
Text
null
17,563
[ascl:1502.001]
https://github.com/ITA-Solar/rh
doc/source/input.txt
*********** Input files *********** Configuration files =================== The configuration of an RH 1.5D is made primarily through several text files that reside in the run directory. The main file is ``keyword.input``. All the other files and their locations are specified in ``keyword.input``. The source tree con...
Text
null
28,288
[ascl:1502.001]
https://github.com/ITA-Solar/rh
doc/source/conf.py
# -*- coding: utf-8 -*- # # RH 1.5D documentation build configuration file, created by # sphinx-quickstart on Fri Dec 21 11:34:50 2012. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All...
Python
null
9,144
[ascl:1502.001]
https://github.com/ITA-Solar/rh
doc/source/introduction.txt
************ Introduction ************ What is RH 1.5D =============== RH 1.5D is a modified version of the RH radiative transfer code that runs through a 3D/2D/1D atmosphere column-by-column, in the same fashion of rhf1d. It was developed as a way to efficiently run RH column-by-column (1.5D) over large atmospheres,...
Text
null
4,297
[ascl:1502.001]
https://github.com/ITA-Solar/rh
doc/source/installation.txt
************ Installation ************ Getting the code ================ The code is available on a git repository, hosted on github: `https://github.com/ita-solar/rh <https://github.com/ita-solar/rh>`_. If you don't have `git <http://git-scm.com/>`_ installed and just want to get started, the easiest way is to downl...
Text
null
8,086
[ascl:1502.001]
https://github.com/ITA-Solar/rh
doc/source/output.txt
***************** Analysis of output ****************** .. _output-label: Output file structure ===================== The output is written to three files: ``output_aux.hdf5``, ``output_indata.hdf5``, and ``output_ray.hdf5``. This is a big departure from RH, which contained several more output files. In particular,...
Text
null
30,192
[ascl:1502.001]
https://github.com/ITA-Solar/rh
doc/source/helita.txt
.. _helita-label: ******************** ``helita`` interface ******************** The `helita <https://github.com/ITA-Solar/helita>`_ Python package contains several routines to interface with RH 1.5D. Installation instructions are `available in its website <https://helita.readthedocs.io/en/latest/installation.html>`_...
Text
null
11,196
[ascl:1502.001]
https://github.com/ITA-Solar/rh
.github/workflows/ci.yml
name: docs on: push: branches: - master permissions: contents: write jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Configure Git Credentials run: | git config user.name github-actions[bot] git config user.email 41898282+...
YAML
null
767
[ascl:1502.001]
https://github.com/ITA-Solar/rh
tools/addgrad.c
/* ------- file: -------------------------- addgrad.c --------------- */ /* adds Aji for appropriate transitions to get natural broadening. * * Han Uitenbroek * Last modified: Thu Feb 3 09:41:49 2000 -- */ #include <stdlib.h> #include "rh.h" #include "atom.h" #include "error.h" #include "inputs.h" /* --- Func...
C
null
1,139
[ascl:1502.001]
https://github.com/ITA-Solar/rh
tools/listincl.c
#include <stdio.h> #include <string.h> #define MAX_LINE_SIZE 80 #define MAX_INCL_SIZE 400 #define MAX_NAME_SIZE 20 void main( int argc, char *argv[] ) { register int n; int nFound, n0; char inclStr[] = {"#include \""}, line[MAX_LINE_SIZE], *result, theIncl[MAX_INCL_SIZE], *ext, inclFileName[MAX...
C
null
1,329
[ascl:1502.001]
https://github.com/ITA-Solar/rh
tools/convertatom.c
/* ------- file: -------------------------- convertatom.c ----------- Version: rh1.0, tools Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Mon Apr 10 09:41:12 2000 -- -------------------------- ----------RH-- */ /* --- Convert atom file in M...
C
null
8,680
[ascl:1502.001]
https://github.com/ITA-Solar/rh
tools/waveinfo.c
/* ------- file: -------------------------- waveinfo.c -------------- Version: rh1.0 Author: Han Uitenbroek (huitenbroek@sunspot.noao.edu) Last modified: Mon Jul 8 14:28:37 2002 -- -------------------------- ----------RH-- */ #include <stdio.h> #include ...
C
null
3,595
[ascl:1502.001]
https://github.com/ITA-Solar/rh
tools/make_h.c
/* ------- file: -------------------------- make_h.c ---------------- */ /* Create Hydrogen atom. Cj->i = Ne CE gi/gj sqrt(T) * Units: [CE] = s^-1 K^-1/2 m^3 * * Han Uitenbroek * Last modified: Thu Feb 3 11:48:44 2000 -- */ #if !defined(__APPLE__) #include <malloc.h> #endif #include <math.h> #include <s...
C
null
10,866
[ascl:1502.001]
https://github.com/ITA-Solar/rh
tools/laguerre.c
/* ------- file: -------------------------- laguerre.c -------------- Version: rh1.0, tools Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Oct 8, 1996 -------------------------- ----------RH-- */ /* --- Routine for integration with Gauss-Lagu...
C
null
1,417
[ascl:1502.001]
https://github.com/ITA-Solar/rh
tools/readkurucz.c
/* ------- file: -------------------------- readkurucz.c ------------ Version: rh1.0 Author: Han Uitenbroek (huitenbroek@nso.edu) Last modified: Wed May 24 14:56:37 2000 -- -------------------------- ----------RH-- */ #if !defined(__APPLE__) #include <mal...
C
null
4,331
[ascl:1502.001]
https://github.com/ITA-Solar/rh
tools/listincl_f.c
#include <stdio.h> #include <string.h> #define MAX_LINE_SIZE 80 #define MAX_INCL_SIZE 400 #define MAX_NAME_SIZE 20 void main( int argc, char *argv[] ) { register int n; int nFound, n0; char inclStr[] = {"include \'"}, line[MAX_LINE_SIZE], *result, theIncl[MAX_INCL_SIZE], *ext, inclFileName[MAX_...
C
null
1,328