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:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/scale_amr.pro
pro scale_amr,a,h,scale_factor print,'Rescaling AMR, HYDRO and PART variables to new box size' a.boxlen=a.boxlen*scale_factor print,'New box size (h-1 Mpc)=',a.boxlen print,'Scaling hydro variables ' (*h.levelh[0]).u(*,*,*,1)=(*h.levelh[0]).u(*,*,*,1)*scale_factor (*h.levelh[0]).u(*,*,*,2)=(*h.levelh[0]).u(*,*,*,2)*sc...
IDL
null
902
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/rd_grav.pro
;+ ; NAME: ; RD_GRAV ; ; PURPOSE: ; This procedure reads particles from a RAMSES GRAV file. ; ; CATEGORY: ; Input/Output. ; ; CALLING SEQUENCE: ; RD_GRAV, Grav, FILE=file, SWAP=swap, NVAR=nvar, NCPU=ncpu, ; ICPU=icpu, VERBOSE=verbose ; ; INPUTS: ; None. ; ; OPTIONAL INPUTS: ; FILE: if set, input the scalar stri...
IDL
null
5,169
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/repchr.pro
;------------------------------------------------------------- ;+ ; NAME: ; REPCHR ; PURPOSE: ; Replace all occurrences of one character with another in a text string. ; CATEGORY: ; CALLING SEQUENCE: ; new = repchr(old, c1, [c2]) ; INPUTS: ; old = original text string. in ; c1 = c...
IDL
null
2,189
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/opub.pro
;+ ; NAME: ; OPUB ; ; PURPOSE: ; set (open) system variables to produce a plot with ; publication standards. Characters are magnified and lines ; are thickened so that a plot (with form=2 with ops.pro) can ; be reduced by about 50% and still be legible (as for eg. a ; one colum pplot in an APJ arti...
IDL
null
1,009
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/rd_vol.pro
;+ ; NAME: ; RD_VOL ; ; PURPOSE: ; This procedure reads an 3D cube ; ; CATEGORY: ; Input/Output. ; ; CALLING SEQUENCE: ; RD_VOL, Image, FILE=file, SWAP=swap, VERBOSE=verbose ; ; OPTIONAL INPUTS: ; FILE: if set, input the scalar string containing the name of ; the file to be read. Otherwise, a PICKFILE widget...
IDL
null
1,466
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/mystring.pro
function mystring,n n=long(n) if n lt 0L or n gt 99999L then begin print,'input value too large...' return,' ' endif if n le 9L then begin return,'0000'+string(n,format='(I1)') endif if n le 99L then begin return,'000'+string(n,format='(I2)') endif if n le 999L then begin return,'00'+string(n,form...
IDL
null
482
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/sub3d.pro
;+ ; NAME: ; SUB3D ; ; PURPOSE: ; This procedure extract all data from AMR, HYDRO and PART structures ; as new AMR, HYDRO and PART structures. ; ; CATEGORY: ; Data analysis. ; ; CALLING SEQUENCE: ; SUB3D, Grid, Hydro, Part, Grid_new, Hydro_new, Part_new, ; XR = xr...
IDL
null
6,462
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/tube.pro
;+ ; NAME: ; TUBE ; ; PURPOSE: ; This procedure reads 1D profiles from a RAMSES LOG ASCII file ; for the Sod test (shock tube test) and plot the results versus ; the analytical solution. ; ; CATEGORY: ; Plotting hydro test case. ; ; CALLING SEQUENCE: ; TUBE,file=file,ana=ana,xr=xr,sy...
IDL
null
2,623
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/make_photon.pro
;+ ; NAME: ; MAKE_PHOTON ; ; PURPOSE: ; This procedure computes the number of photons per second ; received by a detector and computes a realization. ; ; CATEGORY: ; Input/Output. ; ; CALLING SEQUENCE: ; MAKE_PHOTON $ ; , amrfile=amrfile, hydrofile=hydrofile $ ; , xcenter=xce...
IDL
null
10,283
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/rd_im.pro
;+ ; NAME: ; RD_IM ; ; PURPOSE: ; This procedure reads an 2D image ; ; CATEGORY: ; Input/Output. ; ; CALLING SEQUENCE: ; RD_IM, Image, FILE=file, SWAP=swap, VERBOSE=verbose ; ; OPTIONAL INPUTS: ; FILE: if set, input the scalar string containing the name of ; the file to be read. Otherwise, a PICKFILE widget ...
IDL
null
1,587
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/pp_part3d.pro
;+ ; NAME: ; PP_PART3D ; ; PURPOSE: ; This procedure plots particles to the current device. ; It uses the 3D view defined by PP_AMR3D. Particle colors ; are coded using particle level (default) or particle density. ; The last option must be used after routine MAKE_DENS has been ; used, and particle density array...
IDL
null
5,380
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/pp_nodes.pro
pro pp_nodes,tree,xr=xr,yr=yr,zr=zr,xproj=xproj,yproj=yproj,zproj=zproj,verbose=verbose,color=color if not keyword_set(xr) then xr=[min(tree.x),max(tree.x)] if not keyword_set(yr) then yr=[min(tree.y),max(tree.y)] if not keyword_set(zr) then zr=[min(tree.z),max(tree.z)] if not keyword_set(color) then color=255 xp=0 ...
IDL
null
1,614
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/ewald.pro
pro ewald,x,y,z,fx,fy,fz,potential=potential ; Assumes L=1 print,'Computing alias using Ewald summation method...' alpha = 4.0d0 if keyword_set(potential) then begin phi=double(!DPI/alpha^2+x-x) endif else begin fx=double(0.0+x-x) fy=double(0.0+y-y) fz=double(0.0+z-z) endelse x0=double(x) y0=double(y...
IDL
null
1,978
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/convert_ieee.pro
pro convert_ieee,file=file,type=type,float=float if not keyword_set(type) then type='part' if type eq 'part' then begin if not keyword_set(file) then file=DIALOG_PICKFILE(/READ,filter='*part*') print,'Reading file ',file ndimp=0L npart=0L openr,1,file,/f77_unformatted,swap_endian=1 readu,1,nd...
IDL
null
1,100
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/readcol.pro
pro readcol,name,v1,v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12,v13,v14,v15, $ v16,v17,v18,v19,v20,v21,v22,v23,v24,v25, $ FORMAT = fmt, DEBUG=debug, SILENT=silent, SKIPLINE = skipline, $ NUMLINE = numline, DELIMITER = delimiter ;+ ; NAME: ; READCOL ; PURPOSE: ; Read a free-format...
IDL
null
8,923
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/map2mov.pro
pro map2mov,imin,imax,colt=colt,type=type,min=min,max=max if not keyword_set(colt) then colt=0 loadct,colt tvlct,r,g,b,/get if not keyword_set(type) then type='dens' car=getcarnum(5000) if not keyword_set(min)then begin case type of 'dm': min=1e-12 'dens': min=0.01 'temp': m...
IDL
null
1,172
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/visu_grid.pro
pro visu_grid,a,h,cpu=cpu,type=type,clt=clt $ ,log=log $ ,xr=xr,yr=yr $ ,lmin=lmin,lmax=lmax $ ,save=save,byte=byte $ ,vmin=vmin,vmax=vmax,dummy=dummy $ ,verbose=verbose,showgrid=showgrid make_hydro=0 if ...
IDL
null
1,815
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/sfr.pro
pro sfr,s $ ,smoot=smoot,hist=hist,disp=disp,time=time, nbin=nbin $ ,opl=opl,color=color,psym=psym,linestyle=linestyle,charsize=charsize $ ,title=title,xtitle=xtitle,ytitle=ytitle,boite=boite,ncoarse=ncoarse,csfr=csfr,fstars=fstars,info=info,ylog=ylog,thick=thick $ ,xr=xr,yr=yr,adapt=ada...
IDL
null
11,120
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/b_line.pro
;+ ; ; NAME : B_LINE ; PURPOSE : ; Calculates a field line given a 3-dimensional B field ; CALLING SEQUENCE : ; B_LINE, Bx, By, Bz, R0, R, Dx=Dx, Dy=Dy, Dz=Dz,Ds=Ds ; INPUTS: ; Bx, By, Bz : 3-dimensional arrays of B components ; ...
IDL
null
3,166
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/setcolors.pro
pro setcolors, NAMES=names, VALUES=ctindx, $ NPLOTCOLORS=nplotcol, TABLESIZE=size, $ $ DECOMPOSED=decomposed, $ SYSTEM_VARIABLES=system_variables, $ GETINFO=getinfo, $ SILENT=silent, $ TEST=test, $ ST...
IDL
null
27,750
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/cmf.pro
;+ ; Name: cmf.pro ; routine to produce clump mass functions from ramses/clumpfinder autput ; Andreas Bleuler 2011 ; ; calling sequence: ; ; cmf,nbins ; ; with nbins the desired number of bins ; ; clump textfiles (clump_masses.txt from clumpfinder output) can be selected from a window ; multiple files can be selected...
IDL
null
2,774
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/rd_amr_old.pro
;+ ; NAME: ; RD_AMR ; ; PURPOSE: ; This procedure reads the mesh structure from a RAMSES AMR file. ; ; CATEGORY: ; Input/Output. ; ; CALLING SEQUENCE: ; RD_AMR, Grid, FILE=file, SWAP=swap, NCPU=ncpu, ICPU=icpu, ; VERBOSE=verbose ; ; OPTIONAL INPUTS: ; FILE: if set, input the scalar string containing the name of ; ...
IDL
null
5,063
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/mk_ramses_help.pro
;+ ; NAME: ; MK_HTML_HELP_RAMSES ; ; PURPOSE: ; Given a list of IDL procedure files (.PRO), FORTRAN 90 ; files (.F90), or directories that contain such files, this procedure ; generates a file in the HTML format that contains the documentation ; for those routines that contain a DOC_LIBRARY style d...
IDL
null
19,503
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/rd_grafic.pro
pro rd_grafic,d,h,file=file,verbose=verbose,header=header,swap_endian=swap_endian n1=0L n2=n1 n3=n1 dxini=0.0 xoff1=0.0 xoff2=xoff1 xoff3=xoff1 astart=0.0 omega_m=0.0 omega_l=0.0 h0=0.0 openr, 1,file,/f77_unf,swap_endian=swap_endian readu,1,n1,n2,n3,dxini,xoff1,xoff2,xoff3,astart,omega_m,omega_l,h0 if keyword_set(ve...
IDL
null
705
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/ops.pro
;+ ; NAME: ; OPS ; ; PURPOSE: ; open a postscript file for plot output. (see cps.pro ; to close to .ps file and to print it) ; ; CALLING: ; ; ; INPUTS: ; file: file name (default=idl.ps) ; form: page format: ; 0: top half ; 1: full page ; 2: square in the middle of the page (default) ; ...
IDL
null
2,120
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/del_hydro.pro
;+ ; NAME: ; DEL_HYDRO ; ; PURPOSE: ; This procedure destroys the hydro structure in a clean way. ; ; CATEGORY: ; Memory management. ; ; CALLING SEQUENCE: ; DEL_HYDRO, Hydro ; ; OPTIONAL INPUTS: ; None. ; ; OUTPUTS: ; None. ; ; COMMON BLOCKS: ; None. ; ; EXAMPLE: ; To destroy properly the HYDRO structure a...
IDL
null
1,188
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/rd_all.pro
pro rd_all,a,h,nout=nout if not keyword_set(nout) then nout=1 rd_amr,a,nout=nout rd_hydro,h,nout=nout end
IDL
null
110
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/rd_log.pro
;+ ; NAME: ; RD_LOG ; ; PURPOSE: ; This procedure reads particles from a RAMSES LOG ASCII file. ; ; CATEGORY: ; Input/Output. ; ; CALLING SEQUENCE: ; RD_HYDRO, Log, FILE=file, NMAX=nmax, LMAX=lmax ; ; OPTIONAL INPUTS: ; FILE: if set, input the scalar string containing the name of ; the file to be read. Otherwise, a P...
IDL
null
4,638
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/rd_cone.pro
;+ ; NAME: ; RD_CONE ; ; PURPOSE: ; This procedure reads particles from a RAMSES PART file. ; ; CATEGORY: ; Input/Output. ; ; CALLING SEQUENCE: ; RD_PART,Part, FILE=file, SWAP=swap, ; DENSITY=density, TIME=time ; ; INPUTS: ; None. ; ; OPTIONAL INPUTS: ; FILE: if set, input the scalar string containing the name...
IDL
null
6,628
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/template_header.pro
; $Id: template_header.pro,v 1.1.1.1 2003/03/18 11:26:03 rteyssie Exp $ ; ; Copyright (c) 1997-2000, Research Systems, Inc. All rights reserved. ; Unauthorized reproduction prohibited. ; (Of course, if you don't work for RSI, remove these lines or ; modify to suit.) ;+ ; NAME: ; ROUTINE_NAME ; ; PURPOSE: ; Tell what ...
IDL
null
3,373
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/rd_frame.pro
;+ ; NAME: ; RD_FRAME ; ; PURPOSE: ; This procedure reads an 2D movie image ; ; CATEGORY: ; Input/Output. ; ; CALLING SEQUENCE: ; RD_FRAME, Image, FILE=file, SWAP=swap, VERBOSE=verbose ; ; OPTIONAL INPUTS: ; FILE: if set, input the scalar string containing the name of ; the file to be read. Otherwise, a PICK...
IDL
null
1,473
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/rd_cool_new.pro
pro rd_cool,cooling,file=file,nout=nout IF N_PARAMS() NE 1 THEN BEGIN PRINT, 'Wrong number of arguments' DOC_LIBRARY,'rd_cool' RETURN ENDIF if not keyword_set(file) and not keyword_set(nout) then begin file=DIALOG_PICKFILE(/READ,filter='*cool*.*') endif if keyword_set(nout) then begin suffnout=get...
IDL
null
1,310
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/projvol3d.pro
;+ ; NAME: ; PROJVOL3D ; ; PURPOSE: ; This function returns a two dimensional image that is the ; projection of a 3-D volume of data onto a plane (similar to an ; X-ray). The returned image is a translucent rendering of the ; volume (the highest data values within the volume show up as the ; ...
IDL
null
9,771
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/rd_amr.pro
;+ ; NAME: ; RD_AMR ; ; PURPOSE: ; This procedure reads the mesh structure from a RAMSES AMR file. ; ; CATEGORY: ; Input/Output. ; ; CALLING SEQUENCE: ; RD_AMR, Grid, FILE=file, SWAP=swap, NCPU=ncpu, ICPU=icpu, ; VERBOSE=verbose ; ; OPTIONAL INPUTS: ; FILE: if set, input the scalar string containing the name of ; ...
IDL
null
8,414
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/rd_hydro_old.pro
;+ ; NAME: ; RD_HYDRO ; ; PURPOSE: ; This procedure reads particles from a RAMSES HYDRO file. ; ; CATEGORY: ; Input/Output. ; ; CALLING SEQUENCE: ; RD_HYDRO, Hydro, FILE=file, SWAP=swap, NVAR=nvar, NCPU=ncpu, ; ICPU=icpu, VERBOSE=verbose ; ; INPUTS: ; None. ; ; OPTIONAL INPUTS: ; FILE: if set, input the scalar ...
IDL
null
4,359
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/make_histo.pro
pro make_histo,a,h,histogram,n=n,xr=xr,yr=yr,partition=partition,cool=cool if not keyword_set(partition) then partition=1L if not keyword_set(n) then n=200L if not keyword_set(xr) then xr=[1d-3,1d09] if not keyword_set(yr) then yr=[1d+3,1d08] partition=long(partition) histo=dblarr(n+2,n+2) aexp=a.aexp dx=1./partitio...
IDL
null
2,550
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/mk_ptest.pro
pro mk_ptest,filename=filename,npart=npart,cartesian=cartesian,iseed=iseed if not keyword_set(filename) then filename='part_test.ascii' if not keyword_set(npart) then npart=32768L x0=RANDOMU(iseed,1) y0=RANDOMU(iseed,1) z0=RANDOMU(iseed,1) x0=x0(0) y0=y0(0) z0=z0(0) if keyword_set(cartesian) then begin x=RANDOMU...
IDL
null
978
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/rd_wengen.pro
pro rd_wengen,d,u,v,w,p,dir=dir,boxlen=boxlen,nx=nx,ny=ny,nz=nz if not keyword_set(dir) then dir='test1h-256' if not keyword_set(boxlen) then boxlen=2500. if not keyword_set(nx) then nx=256L if not keyword_set(ny) then ny=nx if not keyword_set(nz) then nz=nx gamma=1.6666667 d=fltarr(nx,ny,nz) openr,1,dir+'/'+dir+'.d...
IDL
null
1,462
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/rd_hydro.pro
;+ ; NAME: ; RD_HYDRO ; ; PURPOSE: ; This procedure reads particles from a RAMSES HYDRO file. ; ; CATEGORY: ; Input/Output. ; ; CALLING SEQUENCE: ; RD_HYDRO, Hydro, FILE=file, SWAP=swap, NVAR=nvar, NCPU=ncpu, ; ICPU=icpu, VERBOSE=verbose ; ; INPUTS: ; None. ; ; OPTIONAL INPUTS: ; FILE: if set, input the scalar ...
IDL
null
5,333
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/trim.pro
FUNCTION TRIM, NUMBER, FORMAT, FLAG ;+ ; NAME: ; TRIM() ; PURPOSE: ; Converts numbers to strings, without trailing zeros. ; EXPLANATION: ; Converts numbers into a string representation, and trims off leading ; and/or trailing blanks. Differs from STRTRIM in that trailing zeros ; ...
IDL
null
6,240
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/sedovana.pro
;+ ; NAME: ; SEDOVANA ; ; PURPOSE: ; This procedure computes the analytical solution for the Sedov ; blast wave in 1, 2 or 3 dimensions (planar, cylindrical and ; spherical case). ; ; CATEGORY: ; Mathematical support routines. ; ; CALLING SEQUENCE: ; SEDOVANA,r,d,u,p,gamma=gamma,dim=...
IDL
null
4,445
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/force.pro
;################################################## ;## ROUTINE force.pro ## ;## For problems, contact Romain.Teyssier@cea.fr ## ;################################################## pro force,file=file,lbox=lbox,soft=soft,title=title,noerase=noerase,isolated=isolated,psym=psym if not keyword_...
IDL
null
3,121
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/rd_1d.pro
;+ ; NAME: ; RD_1D ; ; PURPOSE: ; This procedure reads 1D profiles from a RAMSES LOG ASCII file. ; ; CATEGORY: ; Input/Output. ; ; CALLING SEQUENCE: ; RD_1D, Data, FILE=file, NMAX=nmax, LMAX=lmax ; ; OPTIONAL INPUTS: ; FILE: if set, input the scalar string containing the name of ; ...
IDL
null
7,152
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/amr2cell.pro
;+ ; NAME: ; AMR2CELL ; ; PURPOSE: ; This procedure extract all data from HYDRO and AMR structures ; as a list of "leaf" cells (refined cells are discarded). ; ; CATEGORY: ; Data analysis. ; ; CALLING SEQUENCE: ; AMR2CELL, Grid, Hydro, Cell, ; XR = xr, YR = yr, ZR ...
IDL
null
9,099
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/strnumber.pro
function strnumber, st, val ;+ ; NAME: ; STRNUMBER ; PURPOSE: ; Function to determine if a string is a valid numeric value. ; ; CALLING SEQUENCE: ; result = strnumber( st, [val] ) ; ; INPUTS: ; st - any IDL scalar string ; ; OUTPUTS: ; 1 is returned as the function value if the string st has a ...
IDL
null
1,751
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/poly_fit.pro
; $Id: poly_fit.pro,v 1.16 2003/05/16 17:27:36 chris Exp $ ;+ ; NAME: ; POLY_FIT ; ; PURPOSE: ; Perform a least-square polynomial fit with optional error ;estimates. ; ; This routine uses matrix inversion. A newer version of this ;routine, ; SVDFIT, uses Singular Value Decomposition. The SVD technique is ;mor...
IDL
null
8,828
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/ramses2tipsy.pro
;+ ; NAME: ; RAMSES2TIPSY ; ; PURPOSE: ; This procedure reads particles from a RAMSES PART file and ; create a TIPSY ASCII particles file. ; ; CATEGORY: ; Input/Output. ; ; CALLING SEQUENCE: ; RAMSES2TIPSY, FILE=file, SWAP=swap, TIPSY=tipsyfile ; ; INPUTS: ; None. ; ; OPTIONAL INPUTS: ; FILE: if set, input the...
IDL
null
4,165
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/mk_grafic.pro
pro mk_grafic,vect,boxlen=boxlen,dir=dir,offset=offset if not keyword_set(dir) then dir='test' vect=float(vect) if ((size(vect))(0) eq 3) then begin print,'added dimension for mk_grafic' vec=fltarr(1,(size(vect))(1),(size(vect))(2),(size(vect))(3)) vec(0,*,*,*)=vect vect=vec endif nvar=(size(vect))...
IDL
null
1,133
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/group.pro
pro plot_group xz=[1,3] yz=[1,3] zz=[1,3] !p.t3d=1 CREATE_VIEW $ ,XMIN=xz[0],XMAX=xz[1] $ ,YMIN=yz[0],YMAX=yz[1] $ ,ZMIN=zz[0],ZMAX=zz[1] $ ,AX=0,AY=0,AZ=0 $ ,WINX=!d.x_size,WINY=!d.y_size end pro group,p,group,prefix=prefix,xr=xr,yr=yr,zr=zr if not keyword_set(xr) then xr=[1,3] if not keyword_set(yr) th...
IDL
null
6,205
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/pp_amr2d.pro
;+ ; NAME: ; PP_AMR2D ; ; PURPOSE: ; This procedure plots to the current device the mesh structure ; stored in memory. Valid for 2D RAMSES simulations. Only octs ; boundaries are shown. ; ; CATEGORY: ; Plotting routines. ; ; CALLING SEQUENCE: ; PP_AMR2D, Grid, SCALE=scale, NOERASE=noerase, NODATA=nodata, ; ...
IDL
null
5,956
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/pp_amr3d.pro
;+ ; NAME: ; PP_AMR3D ; ; PURPOSE: ; This procedure plots to the current device the mesh structure ; stored in memory. Valid for 3D RAMSES simulations. Only octs ; boundaries are shown. ; ; CATEGORY: ; Plotting routines. ; ; CALLING SEQUENCE: ; PP_AMR3D, Grid, SCALE=scale, AX=ax, AY=ay, AZ=az, ; ...
IDL
null
9,375
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/cut3d.pro
;+ ; NAME: ; CUT3D ; ; PURPOSE: ; This procedure extracts a slice from a 3D AMR data set and ; converts it to a 2D AMR data set. ; ; CATEGORY: ; Data analysis. ; ; CALLING SEQUENCE: ; CUT3D, Grid3d, Hydro3d, Grid2d, Hydro2d, ; XCUT = xcut, YCUT = ycut, ZCUT = zcut...
IDL
null
9,533
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/tv2d.pro
;+ ; NAME: ; TV2D ; ; PURPOSE: ; This procedure plots to the current device a color map ; of a given hydro variable for the AMR structure stored in ; memory. Valid for 2D RAMSES simulations only. ; ; CATEGORY: ; Plotting routines. ; ; CALLING SEQUENCE: ; TV2D, Grid, Hydro, TYPE = typ...
IDL
null
9,317
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/ls.pro
pro ls spawn,'ls -F' end
IDL
null
28
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/make_dens.pro
;+ ; NAME: ; MAKE_DENS ; ; PURPOSE: ; This procedure compute the local density for each particle. ; It uses the TIPSY routine SMOOTH as a spawned process. This ; routine must be properly installed before using MAKE_DENS. ; ; CATEGORY: ; Data analysis. ; ; CALLING SEQUENCE: ; MAKE_DENS, Part, PREFIX= prefix, TIPSY...
IDL
null
2,836
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/mov.pro
pro mov,nout=nout,iout=iout,type=type,filename=filename,xr=xr,yr=yr,vmin=vmin,vmax=vmax,lmin=lmin,lmax=lmax,log=log,showgrid=showgrid,dummy=dummy,xs=xs,ys=ys if not keyword_set(iout) then iout=1 if not keyword_set(nout) then nout=1 if not keyword_set(filename) then filename='movie_default.gif' if not keyword_set(xs) t...
IDL
null
988
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/rd_amr_backup.pro
;+ ; NAME: ; RD_AMR ; ; PURPOSE: ; This procedure reads the mesh structure from a RAMSES AMR file. ; ; CATEGORY: ; Input/Output. ; ; CALLING SEQUENCE: ; RD_AMR, Grid, FILE=file, SWAP=swap, NCPU=ncpu, ICPU=icpu, ; VERBOSE=verbose ; ; OPTIONAL INPUTS: ; FILE: if set, input the scalar string containing the name of ; ...
IDL
null
8,210
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/potvec.pro
;################################################### ;################################################### ;################################################### function potvec,grid,hydro IF N_PARAMS() NE 2 THEN BEGIN PRINT, 'Wrong number of arguments' DOC_LIBRARY,'potvec' RETURN,0 ENDIF ncpu=grid.ncpu ndim...
IDL
null
3,653
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/pp_histo.pro
;+ ; NAME: ; PP_HISTO ; ; PURPOSE: ; This procedure reads an 2D histogram and makes the plot. ; ; CATEGORY: ; Input/Output. ; ; CALLING SEQUENCE: ; PP_HISTO, FILE=file, SWAP=swap, VERBOSE=verbose ; ; OPTIONAL INPUTS: ; FILE: if set, input the scalar string containing the name of ; the file to be read. Otherw...
IDL
null
1,656
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/reset3d.pro
pro reset3d t3d,/reset !x.s=[0.,1.] !y.s=[0.,1.] !z.s=[0.,1.] end
IDL
null
68
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/rd_part.pro
;+ ; NAME: ; RD_PART ; ; PURPOSE: ; This procedure reads particles from a RAMSES PART file. ; ; CATEGORY: ; Input/Output. ; ; CALLING SEQUENCE: ; RD_PART,Part, FILE=file, SWAP=swap, ICPU=icpu, NCPU=ncpu, ; DENSITY=density, TIME=time ; ; INPUTS: ; None. ; ; OPTIONAL INPUTS: ; FILE: if set, input the scalar stri...
IDL
null
9,211
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/rd_nodes.pro
pro rd_nodes,tree,leaf=leaf,verbose=verbose,filename=filename,fof=fof,isolated=isolated,multiple=multiple if not keyword_set(filename) then begin file=DIALOG_PICKFILE(/READ) endif else begin file=filename endelse openr,1,file nnodes=0L readf,1,nnodes,ndum if keyword_set(verbose) then print,nnodes level=lonarr...
IDL
null
4,475
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/mycolor.pro
pro mycolor if !d.name eq 'PS' then begin ; 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 red = [ 0, 0,255, 0, 0,255,140,255,140,200,255,200, 0,150,255] green = [ 0, 0, 0, 0,255,255, 0,140,140, 0, 0,255,140,150,255] blue = [ 0, 0, 0,255, 0, 0,140, 0,255,150,25...
IDL
null
866
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/rd_cool.pro
pro rd_cool,cooling,file=file,nout=nout IF N_PARAMS() NE 1 THEN BEGIN PRINT, 'Wrong number of arguments' DOC_LIBRARY,'rd_cool' RETURN ENDIF if not keyword_set(file) and not keyword_set(nout) then begin file=DIALOG_PICKFILE(/READ,filter='*cool*.*') endif if keyword_set(nout) then begin suffnout=get...
IDL
null
1,042
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/cmp_memory.pro
pro cmp_memory,ndim=ndim,nvar=nvar $ ,ngridmax=ngridmax,npart=npart,single=single if not keyword_set(ndim) then ndim=3L if not keyword_set(nvar) then nvar=0L if not keyword_set(ngridmax) then ngridmax=0L if not keyword_set(npart) then npart=0L ndim=double(ndim) nvar=double(nvar) ngridmax=dou...
IDL
null
1,091
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/rd_wnoise.pro
pro rd_wnoise,d,file=file n1=0L n2=n1 n3=n1 iseed=0L openr, 1,file,/f77_unf readu,1,n1,n2,n3,iseed print,n1,n2,n3,iseed din_plane=fltarr(n1,n2) d=fltarr(n1,n2,n3) for i3=0,n3-1 do begin print,i3 readu,1,din_plane d(*,*,i3)=din_plane endfor end
IDL
null
266
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/idl/make_dist.pro
;+ ; NAME: ; MAKE_DIST ; ; PURPOSE: ; This procedure computes all the cosmological distances ; given a redshift. ; ; CATEGORY: ; Input/Output. ; ; CALLING SEQUENCE: ; MAKE_DIST, z,omega_m=omega_m,omega_r=omega_r ; ,omega_v=omega_v,save=save ; ; INPUTS ; z: redshift ; ; OPTIONAL INPUTS...
IDL
null
3,333
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/c/map2bmp_gauss.c
// map2bmp //============================================================================= // Author: Michael Rieder (2013) // // Opens files produced by amr2map and produces BMP images // Compile with -lm switch (link with math library) //============================================================================= #...
C
null
7,936
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/c/map2bmp.c
// map2bmp //============================================================================= // Author: Michael Rieder (2013) rieder@physik.uzh.ch // // Opens files produced by amr2map and produces BMP images // Compile with -lm switch (link with math library) //===========================================================...
C
null
7,861
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/c/read_comptime.c
// read_comptime //============================================================================= // Author: Michael Rieder (2015) rieder@physik.uzh.ch // // parse log file for time readings //============================================================================= #include <stdio.h> #include <stdlib.h> #include <...
C
null
2,761
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/c/read_energies.c
// read_energies //============================================================================= // Author: Michael Rieder (2015) rieder@physik.uzh.ch // // parse log file for energy outputs //============================================================================= #include <stdio.h> #include <stdlib.h> #include ...
C
null
3,704
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/c/gen_out_string.c
// gen_out_string //============================================================================= // Author: Michael Rieder (mr@student.ethz.ch) // // outputs a string with output_ directory names inside // given boundaries // // example: ./gen_out_string 1 2 5 // gives this: // output_00001 output_00003 output_00005 ...
C
null
2,250
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/c/get_make_patch.c
#include <stdio.h> extern char _binary_make_patch_start[]; int main (void) { puts (_binary_make_patch_start); return 0; }
C
null
130
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/f90/partcenter.f90
program part2prof use utils !-------------------------------------------------------------------------- ! Ce programme calcule la carte de densite surfacique projetee ! des particules de matiere noire d'une simulation RAMSES. ! Version F90 par R. Teyssier le 01/04/01. !--------------------------------------...
Fortran
null
18,076
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/f90/amrdir.f90
program amrdir !--------------------------------------------------------------------- ! This code create empty output and backup directories for RAMSES runs. ! f90 amrdir.f90 -o ~/bin/amrdir !--------------------------------------------------------------------- implicit none integer::n1,n2,n logical::ok ...
Fortran
null
1,648
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/f90/part2ngpgrafic.f90
program part2cellgrafic !-------------------------------------------------------------------------- ! Ce programme calcule une cube de densite interpolee NGP ! des particules de matiere noire d'une simulation RAMSES. ! Version F90 par R. Teyssier le 01/04/01. !-------------------------------------------------...
Fortran
null
14,205
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/f90/sunset.f90
program sunset !------------------------------------------------------------------------------------------------------------------ ! Sunset is a program that computes realistic galaxy images using spectra ! of a single stellar population (SSP) of your favorite model (GALAXEV, STARDUST, PEGASE). ! ! The images...
Fortran
null
35,490
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/f90/split_grafic.f90
!================================================================ !================================================================ program spg implicit none !=============================================================== ! This code splits grafic initial conditions files in ncpu files ! following a 3D space f...
Fortran
null
15,219
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/f90/output2tipsy_v2.f90
program output2tipsy_v2 use random use io_ramses implicit none integer::ndim,n,i,j,k,twotondim,ncoarse,indcell integer::ivar,nvar,ncpu,lmax=20,levelmin integer::nx,ny,nz integer::nlevelmax,ilevel1,ngrid1 integer::nlevelmaxs,nlevel,iout integer::ipos integer::ngridmax,nstep_coarse,icpu integer::n...
Fortran
null
17,740
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/f90/part2birth.f90
program part2birth use utils !-------------------------------------------------------------------------- ! This program converts birth times of star particles to Gyr and saves ! as `birth` files for an output of RAMSES simulation ! Version F90 par R. Teyssier le 01/04/01. !---------------------------------...
Fortran
null
7,805
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/f90/extract_grafic.f90
program extract_grafic !--------------------------------------------------------------------- ! Ce programme extrait un sous-cube des fichiers ic_... generes ! par GRAFIC. ! Ce programme doit lire en input les fichiers suivants: ! - un fichier deltab: input/ic_deltab ! - un fichier velbx:...
Fortran
null
5,375
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/f90/part2cube.f90
program part2cube !-------------------------------------------------------------------------- ! This software computes projected density cubes. ! Version F90 by R. Teyssier le 01/04/01. ! Update for new tracers by C. Cadiou, M. Trebitsch, H. Choi, O. Snaith and R. Bieri !--------------------------------------...
Fortran
null
17,080
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/f90/amr2cut.f90
program amr2cut use io_ramses !-------------------------------------------------------------------------- !-------------------------------------------------------------------------- implicit none integer::ndim,ncell,n,i,j,jm,k,kk,kkk,twotondim,ncoarse,type=0,domax=0 integer::ivar,nvar,ncpu,ncpuh,lmax=120,n...
Fortran
null
8,509
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/f90/degrade_grafic.f90
program degrade_grafic implicit none !======================================================== ! Ce programme degrade des fichiers de conditions initiales ! generes par GRAFIC par un facteur 2. ! ! Ce programme doit lire en input les fichiers suivants: ! - un fichier deltab: input/ic_deltab ! ...
Fortran
null
5,042
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/f90/amr2map.f90
program amr2map !-------------------------------------------------------------------------- ! Ce programme calcule la carte de densite projetee pour les ! variables hydro d'une simulation RAMSES. ! Version F90 par R. Teyssier le 01/04/01. !----------------------------------------------------------------------...
Fortran
null
24,349
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/f90/test_io.f90
program test use io_ramses integer::i,j,k integer,parameter::n=128*128 real(kind=8),dimension(1:n)::x,y,z real(kind=8),dimension(1:n,1:6)::v real(kind=4),dimension(1:128,1:128)::map integer,dimension(1:n)::l character(LEN=128)::file do j=0,127 do k=0,127 i=1+j+128*k x(i)=0.5090...
Fortran
null
826
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/f90/amr2cylprof.f90
program amr2cylprof use io_ramses use random !-------------------------------------------------------------------------- !-------------------------------------------------------------------------- implicit none integer::ndim,ncell,n,i,j,k,twotondim,ncoarse,type=0,domax=0 integer::ivar,nvar,ncpu,ncpuh,lma...
Fortran
null
13,621
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/f90/vrot.f90
program vrot !-------------------------------------------------------------------------- ! Ce programme calcule la carte de densite projetee pour les ! variables hydro d'une simulation RAMSES. ! Version F90 par R. Teyssier le 01/04/01. !-------------------------------------------------------------------------...
Fortran
null
20,601
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/f90/header.f90
program header !--------------------------------------------------------------------- ! Ce programme lit le header d'un fichier amr.out d'une simulation RAMSES ! Version F90 par R. Teyssier le 28/02/00 ! Version parallele par R. Teyssier le 13/06/03 ! f90 head_amr.f90 -o ~/bin/header !----------------------...
Fortran
null
2,958
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/f90/ramses2tipsy.f90
program ramses2tipsy use random use io_ramses use utils implicit none integer::ndim,n,i,j,k,iii,twotondim,ncoarse,indcell integer::ivar,nvar,ncpu,lmax=100,levelmin,iskip integer::nx,ny,nz integer::nlevelmax,ilevel1,ngrid1 integer::nlevelmaxs,nlevel,iout integer::ipos integer::ngridmax,nstep_coa...
Fortran
null
31,501
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/f90/amr2cube.f90
program amr2cube !-------------------------------------------------------------------------- ! Ce programme calcule le cube cartesien pour les ! variables hydro d'une simulation RAMSES. ! Version F90 par R. Teyssier le 01/04/01. !-------------------------------------------------------------------------- imp...
Fortran
null
25,339
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/f90/center_grafic.f90
program center_grafic !--------------------------------------------------------------------- ! Ce programme recentre autour d'un pixel donne les fichiers ic_... ! generes par GRAFIC. ! Ce programme doit lire en input les fichiers suivants: ! - un fichier deltab: input/ic_deltab ! - un fich...
Fortran
null
5,550
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/f90/part2prof.f90
program part2prof !-------------------------------------------------------------------------- ! This software computes profiles. ! Version F90 by R. Teyssier le 01/04/01. ! Update for new tracers by C. Cadiou, M. Trebitsch, H. Choi, O. Snaith and R. Bieri !-----------------------------------------------------...
Fortran
null
19,138
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/f90/part2tipsy.f90
program part2cube !-------------------------------------------------------------------------- ! Ce programme calcule la carte de densite surfacique projetee ! des particules de matiere noire d'une simulation RAMSES. ! Version F90 par R. Teyssier le 01/04/01. !--------------------------------------------------...
Fortran
null
23,575
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/f90/getstarlist.f90
program star2list !-------------------------------------------------------------------------- use utils use iso_fortran_env implicit none integer::ncpu,ndim,npart,ngrid,n,i,j,k,icpu,ipos,n_frw,nstar,nstar2 integer::ncpu2,npart2,ndim2,levelmin,levelmax,ilevel,iii integer::nx=0,ny=0,nz=0,ix,iy,iz,ixp1,iyp1,...
Fortran
null
12,317
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/f90/part2map.f90
program part2map !-------------------------------------------------------------------------- ! Ce programme calcule la carte de densite surfacique projetee ! des particules de matiere noire d'une simulation RAMSES. ! Version F90 par R. Teyssier le 01/04/01. !---------------------------------------------------...
Fortran
null
19,694
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/f90/dbl2sng.f90
program dbl2sng !--------------------------------------------------------------------- ! Ce programme lit le header d'un fichier amr.out d'une simulation RAMSES ! Version F90 par R. Teyssier le 28/02/00 ! Version parallele par R. Teyssier le 13/06/03 ! f90 head_amr.f90 -o ~/bin/header !---------------------...
Fortran
null
17,142
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/f90/random.f90
!======================================================================= ! ! S E R I A L R A N D O M N U M B E R G E N E R A T O R ! !======================================================================= ! Here's how to use these functions: ! Initialization: call Rans( N, StartVal, Seeds ) ! This return...
Fortran
null
9,181
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/f90/io_ramses.f90
module io_ramses use random use utils integer,dimension(:),allocatable::idout real(KIND=8),dimension(:,:),allocatable::xout,vout real(KIND=8),dimension(:),allocatable::mout,ageout,metout real(KIND=8),dimension(:,:),allocatable::xp real(KIND=8),dimension(:,:),allocatable::varp contains subroutine get...
Fortran
null
75,175
[ascl:1011.007]
https://bitbucket.org/rteyssie/ramses
utils/f90/log2col.f90
program log2col !-------------------------------------------------------------------------- ! Ce programme calcule la carte de densite projetee pour les ! variables hydro d'une simulation RAMSES. ! Version F90 par R. Teyssier le 01/04/01. !----------------------------------------------------------------------...
Fortran
null
4,338