Interpolated Refractive Function

rindex.function(pageid)

Arguments

pageid

The material pageid from rindex.search

Value

A function that will return the complex refractive index(s), given the wavelength(s) in meters

Examples

#> pageid DIVIDER BOOK #> 3 1 Ag - Silver Ag #> 4 2 Ag - Silver Ag #> 5 3 Ag - Silver Ag #> 6 4 Ag - Silver Ag #> 7 5 Ag - Silver Ag #> 8 6 Ag - Silver Ag #> 9 7 Ag - Silver Ag #> 10 8 Ag - Silver Ag #> 11 9 Ag - Silver Ag #> 13 10 Ag - Silver Ag #> 14 11 Ag - Silver Ag #> 15 12 Ag - Silver Ag #> 17 13 Ag - Silver Ag #> 18 14 Ag - Silver Ag #> 19 15 Ag - Silver Ag #> 22 16 Al - Aluminium and aluminates Al #> 23 17 Al - Aluminium and aluminates Al #> 24 18 Al - Aluminium and aluminates Al #> 25 19 Al - Aluminium and aluminates Al #> 26 20 Al - Aluminium and aluminates Al #> 27 21 Al - Aluminium and aluminates Al #> 29 22 Al - Aluminium and aluminates Al #> 30 23 Al - Aluminium and aluminates Al #> 31 24 Al - Aluminium and aluminates MgAl2O4 #> 32 25 Al - Aluminium and aluminates Y3Al5O12 #> 56 43 As - Arsenides AlAs #> 58 44 As - Arsenides AlAs #> 60 45 As - Arsenides GaAs #> 61 46 As - Arsenides GaAs #> 62 47 As - Arsenides GaAs #> 63 48 As - Arsenides GaAs #> 65 49 As - Arsenides GaAs #> 66 50 As - Arsenides GaAs #> 67 51 As - Arsenides GaAs #> 69 52 As - Arsenides InAs #> 70 53 As - Arsenides InAs #> 72 54 As - Arsenides InAs #> 73 55 As - Arsenides CdGeAs2 #> 74 56 As - Arsenides CdGeAs2 #> 75 57 As - Arsenides ZnSiAs2 #> 76 58 As - Arsenides ZnSiAs2 #> 79 59 Au - Gold Au #> 80 60 Au - Gold Au #> 81 61 Au - Gold Au #> 82 62 Au - Gold Au #> 83 63 Au - Gold Au #> 84 64 Au - Gold Au #> 85 65 Au - Gold Au #> 86 66 Au - Gold Au #> 87 67 Au - Gold Au #> 88 68 Au - Gold Au #> 89 69 Au - Gold Au #> 91 70 Au - Gold Au #> 92 71 Au - Gold Au #> 93 72 Au - Gold Au #> 94 73 Au - Gold Au #> 95 74 Au - Gold Au #> 96 75 Au - Gold Au #> 97 76 Au - Gold Au #> 98 77 Au - Gold Au #> 99 78 Au - Gold Au #> 101 79 Au - Gold Au #> 102 80 Au - Gold Au #> 103 81 Au - Gold Au #> 147 115 Amorphous thin film C #> 148 116 Amorphous thin film C #> 303 237 H, D - Hydrogen, Deuterium H2 #> 304 238 H, D - Hydrogen, Deuterium H2 #> 305 239 H, D - Hydrogen, Deuterium H2 #> 306 240 H, D - Hydrogen, Deuterium D2 #> 314 245 Hg - Mercury Hg #> 370 289 Mg - Magnesium Mg #> 371 290 Mg - Magnesium Mg #> 373 291 Mn - Manganese Mn #> 374 292 Mn - Manganese Mn #> 391 305 N - Nitrogen and nitrides N2 #> 392 306 N - Nitrogen and nitrides N2 #> 393 307 N - Nitrogen and nitrides N2 #> 394 308 N - Nitrogen and nitrides AlN #> 395 309 N - Nitrogen and nitrides AlN #> 396 310 N - Nitrogen and nitrides AlN #> 398 311 N - Nitrogen and nitrides GaN #> 399 312 N - Nitrogen and nitrides GaN #> 400 313 N - Nitrogen and nitrides GaN #> 401 314 N - Nitrogen and nitrides GaN #> 403 315 N - Nitrogen and nitrides GaN #> 404 316 N - Nitrogen and nitrides NH3 #> 405 317 N - Nitrogen and nitrides Si3N4 #> 406 318 N - Nitrogen and nitrides Si3N4 #> 407 319 N - Nitrogen and nitrides Si3N4 #> 408 320 N - Nitrogen and nitrides TiN #> 409 321 N - Nitrogen and nitrides VN #> 441 345 O - Oxygen and oxides O2 #> 442 346 O - Oxygen and oxides O2 #> 664 523 Sb - Antimonides AlSb #> 666 524 Sb - Antimonides AlSb #> 667 525 Sb - Antimonides AlSb #> 669 526 Sb - Antimonides GaSb #> 670 527 Sb - Antimonides GaSb #> 672 528 Sb - Antimonides GaSb #> 673 529 Sb - Antimonides GaSb #> 675 530 Sb - Antimonides InSb #> 677 531 Sb - Antimonides InSb #> 678 532 Sb - Antimonides InSb #> 753 594 Amorphous silicon (α-Si) Si #> 754 595 Amorphous silicon (α-Si) Bi12SiO20 #> 832 652 W - Tungsten and tungstates W #> 833 653 W - Tungsten and tungstates W #> 834 654 W - Tungsten and tungstates W #> 836 655 W - Tungsten and tungstates W #> 837 656 W - Tungsten and tungstates W #> 838 657 W - Tungsten and tungstates W #> 839 658 W - Tungsten and tungstates CaWO4 #> 840 659 W - Tungsten and tungstates CaWO4 #> 901 706 Alkynes acetylene #> 903 707 Alkenes ethylene #> 905 708 Alcohols methanol #> 906 709 Alcohols methanol #> 907 710 Alcohols methanol #> 908 711 Alcohols ethanol #> 909 712 Alcohols ethanol #> 910 713 Alcohols ethanol #> 911 714 Alcohols ethanol #> 912 715 Alcohols ethanol #> 913 716 Alcohols propanol #> 914 717 Alcohols propanol #> 915 718 Alcohols propanol #> 916 719 Alcohols propanol #> 917 720 Alcohols butanol #> 918 721 Alcohols butanol #> 919 722 Alcohols butanol #> 920 723 Alcohols pentanol #> 921 724 Alcohols pentanol #> 999 788 Popular optical glasses BK7 #> 1000 789 Popular optical glasses BK7 #> 1001 790 Popular optical glasses BK7 #> 1002 791 Popular optical glasses BK7 #> 1003 792 Popular optical glasses BK7 #> 1004 793 Popular optical glasses BK7 #> 1005 794 Popular optical glasses BK7 #> 1006 795 Popular optical glasses BAF10 #> 1007 796 Popular optical glasses BAF10 #> 1008 797 Popular optical glasses BAF10 #> 1009 798 Popular optical glasses BAF10 #> 1010 799 Popular optical glasses BAF10 #> 1011 800 Popular optical glasses BAK1 #> 1012 801 Popular optical glasses BAK1 #> 1013 802 Popular optical glasses BAK1 #> 1014 803 Popular optical glasses BAK1 #> 1015 804 Popular optical glasses FK51A #> 1016 805 Popular optical glasses LASF9 #> 1017 806 Popular optical glasses SF5 #> 1018 807 Popular optical glasses SF5 #> 1019 808 Popular optical glasses SF5 #> 1020 809 Popular optical glasses SF5 #> 1021 810 Popular optical glasses SF10 #> 1022 811 Popular optical glasses SF10 #> 1023 812 Popular optical glasses SF10 #> 1024 813 Popular optical glasses SF10 #> 1025 814 Popular optical glasses SF11 #> 1026 815 Popular optical glasses SF11 #> 1027 816 Popular optical glasses SF11 #> 1028 817 Popular optical glasses SF11 #> 1030 818 Multiple purpose glass fused_silica #> 1031 819 Multiple purpose glass soda-lime #> 1032 820 Multiple purpose glass soda-lime #> 1033 821 Multiple purpose glass soda-lime #> 1034 822 Multiple purpose glass soda-lime #> 1035 823 Multiple purpose glass soda-lime #> 1036 824 Multiple purpose glass soda-lime #> 1037 825 Multiple purpose glass SCHOTT-multipurpose #> 1038 826 Multiple purpose glass SCHOTT-multipurpose #> 1039 827 Multiple purpose glass SCHOTT-multipurpose #> 1040 828 Multiple purpose glass SCHOTT-multipurpose #> 1041 829 Multiple purpose glass SCHOTT-multipurpose #> 1042 830 Multiple purpose glass SCHOTT-multipurpose #> 1043 831 Multiple purpose glass SCHOTT-multipurpose #> 1061 845 Display glass CORNING-display #> 1063 846 Ophthalmic glass BARBERINI-crown #> 1064 847 Ophthalmic glass BARBERINI-crown #> 1065 848 Ophthalmic glass BARBERINI-crown #> 1066 849 Ophthalmic glass BARBERINI-high-index #> 1067 850 Ophthalmic glass BARBERINI-high-index #> 1068 851 Ophthalmic glass BARBERINI-high-index #> 1069 852 Ophthalmic glass BARBERINI-photochromic #> 1070 853 Ophthalmic glass BARBERINI-photochromic #> 1071 854 Ophthalmic glass BARBERINI-photochromic #> 1072 855 Ophthalmic glass BARBERINI-photochromic #> 1073 856 Ophthalmic glass BARBERINI-photochromic #> 1074 857 Ophthalmic glass BARBERINI-photochromic #> 1075 858 Ophthalmic glass BARBERINI-photochromic #> 1076 859 Ophthalmic glass BARBERINI-moulds #> 1077 860 Ophthalmic glass BARBERINI-moulds #> 1078 861 Ophthalmic glass BARBERINI-sun-protection #> 1079 862 Ophthalmic glass BARBERINI-sun-protection #> 1080 863 Ophthalmic glass BARBERINI-sun-protection #> 1081 864 Ophthalmic glass BARBERINI-sun-protection #> 1082 865 Ophthalmic glass BARBERINI-sun-protection #> 1083 866 Ophthalmic glass BARBERINI-sun-protection #> 1084 867 Ophthalmic glass BARBERINI-sun-protection #> 1085 868 Ophthalmic glass BARBERINI-sun-protection #> 1086 869 Ophthalmic glass BARBERINI-sun-protection #> 1087 870 Ophthalmic glass BARBERINI-sun-protection #> 1088 871 Ophthalmic glass BARBERINI-sun-protection #> 1089 872 Ophthalmic glass BARBERINI-sun-protection #> 1091 873 Infrared glass AMTIR #> 1092 874 Infrared glass AMTIR #> 1093 875 Infrared glass AMTIR #> 1094 876 Infrared glass AMTIR #> 1095 877 Infrared glass VITRON-IG #> 1096 878 Infrared glass VITRON-IG #> 1097 879 Infrared glass VITRON-IG #> 1098 880 Infrared glass VITRON-IG #> 1099 881 Infrared glass VITRON-IG #> 1100 882 Infrared glass SCHOTT-IRG #> 1101 883 Infrared glass SCHOTT-IRG #> 1102 884 Infrared glass SCHOTT-IRG #> 1103 885 Infrared glass SCHOTT-IRG #> 1104 886 Infrared glass SCHOTT-IRG #> 1105 887 Infrared glass LightPath-BD #> 1107 888 Optical glass - SCHOTT SCHOTT-K #> 1108 889 Optical glass - SCHOTT SCHOTT-K #> 1109 890 Optical glass - SCHOTT SCHOTT-K #> 1110 891 Optical glass - SCHOTT SCHOTT-K #> 1111 892 Optical glass - SCHOTT SCHOTT-K #> 1112 893 Optical glass - SCHOTT SCHOTT-K #> 1113 894 Optical glass - SCHOTT SCHOTT-SK #> 1114 895 Optical glass - SCHOTT SCHOTT-SK #> 1115 896 Optical glass - SCHOTT SCHOTT-SK #> 1116 897 Optical glass - SCHOTT SCHOTT-SK #> 1117 898 Optical glass - SCHOTT SCHOTT-SK #> 1118 899 Optical glass - SCHOTT SCHOTT-SK #> 1119 900 Optical glass - SCHOTT SCHOTT-SK #> 1120 901 Optical glass - SCHOTT SCHOTT-SK #> 1121 902 Optical glass - SCHOTT SCHOTT-SK #> 1122 903 Optical glass - SCHOTT SCHOTT-SK #> 1123 904 Optical glass - SCHOTT SCHOTT-SK #> 1124 905 Optical glass - SCHOTT SCHOTT-SK #> 1125 906 Optical glass - SCHOTT SCHOTT-SK #> 1126 907 Optical glass - SCHOTT SCHOTT-SSK #> 1127 908 Optical glass - SCHOTT SCHOTT-SSK #> 1128 909 Optical glass - SCHOTT SCHOTT-SSK #> 1129 910 Optical glass - SCHOTT SCHOTT-BK #> 1130 911 Optical glass - SCHOTT SCHOTT-BK #> 1131 912 Optical glass - SCHOTT SCHOTT-BK #> 1132 913 Optical glass - SCHOTT SCHOTT-BK #> 1133 914 Optical glass - SCHOTT SCHOTT-BK #> 1134 915 Optical glass - SCHOTT SCHOTT-BK #> 1135 916 Optical glass - SCHOTT SCHOTT-BaK #> 1136 917 Optical glass - SCHOTT SCHOTT-BaK #> PAGE #> 3 Johnson #> 4 Yang #> 5 McPeak #> 6 Babar #> 7 Wu #> 8 Werner #> 9 Stahrenberg #> 10 Windt #> 11 Hagemann #> 13 Ciesielski #> 14 Ciesielski-Ge #> 15 Ciesielski-Ni #> 17 Rakic-BB #> 18 Rakic-LD #> 19 Werner-DFT #> 22 Rakic #> 23 McPeak #> 24 Larruquert #> 25 Ordal #> 26 Hagemann #> 27 Mathewson #> 29 Rakic-BB #> 30 Rakic-LD #> 31 Tropf #> 32 Zelmon #> 56 Fern #> 58 Rakic #> 60 Aspnes #> 61 Skauli #> 62 Jellison #> 63 Kachare #> 65 Adachi #> 66 Rakic #> 67 Ozaki #> 69 Aspnes #> 70 Lorimor #> 72 Adachi #> 73 Boyd-o #> 74 Boyd-e #> 75 Boyd-o #> 76 Boyd-e #> 79 Johnson #> 80 McPeak #> 81 Babar #> 82 Olmon-ev #> 83 Olmon-sc #> 84 Olmon-ts #> 85 Werner #> 86 Windt #> 87 Ordal #> 88 Hagemann #> 89 Hagemann-2 #> 91 Yakubovsky-25nm #> 92 Yakubovsky-53nm #> 93 Yakubovsky-117nm #> 94 Ciesielski #> 95 Ciesielski-Ge #> 96 Lemarchand-3.96nm #> 97 Lemarchand-4.62nm #> 98 Lemarchand-5.77nm #> 99 Lemarchand-11.7nm #> 101 Rakic-BB #> 102 Rakic-LD #> 103 Werner-DFT #> 147 Larruquert #> 148 Hagemann #> 303 Smith #> 304 Peck #> 305 Koch #> 306 Weber #> 314 Inagaki #> 370 Hagemann #> 371 Vidal-Dasilva #> 373 Johnson #> 374 Querry #> 391 Peck-0C #> 392 Peck-15C #> 393 Griesmann #> 394 Kischkat #> 395 Pastrnak-o #> 396 Pastrnak-e #> 398 Barker-o #> 399 Barker-e #> 400 Lin-wurtzite #> 401 Lin-zincblende #> 403 Kawashima #> 404 Cuthbertson #> 405 Luke #> 406 Kischkat #> 407 Philipp #> 408 Pfluger #> 409 Pfluger #> 441 Smith #> 442 Zhang #> 664 Zollner #> 666 Adachi #> 667 Djurisic #> 669 Aspnes #> 670 Ferrini #> 672 Adachi #> 673 Djurisic #> 675 Aspnes #> 677 Adachi #> 678 Djurisic #> 753 Pierce #> 754 Gospodinov #> 832 Ordal #> 833 Werner #> 834 Windt #> 836 Rakic-BB #> 837 Rakic-LD #> 838 Werner-DFT #> 839 Bond-o #> 840 Bond-e #> 901 Loria #> 903 Loria #> 905 El-Kashef #> 906 Moutzouris #> 907 Kozma #> 908 Rheims #> 909 Sani #> 910 Sani-formula #> 911 Kedenburg #> 912 Kozma #> 913 Kozma #> 914 Sani #> 915 Sani-formula #> 916 Moutzouris #> 917 El-Kashef #> 918 Moutzouris-n #> 919 Moutzouris-iso #> 920 Moutzouris-normal #> 921 Moutzouris-iso #> 999 SCHOTT #> 1000 OHARA #> 1001 HIKARI #> 1002 CDGM #> 1003 HOYA #> 1004 SUMITA #> 1005 LZOS #> 1006 SCHOTT #> 1007 OHARA #> 1008 HIKARI #> 1009 CDGM #> 1010 HOYA #> 1011 SCHOTT #> 1012 OHARA #> 1013 HIKARI #> 1014 CDGM #> 1015 SCHOTT #> 1016 SCHOTT #> 1017 SCHOTT #> 1018 HIKARI #> 1019 CDGM #> 1020 HOYA #> 1021 SCHOTT #> 1022 HIKARI #> 1023 CDGM #> 1024 HOYA #> 1025 SCHOTT #> 1026 HIKARI #> 1027 CDGM #> 1028 SUMITA #> 1030 Malitson #> 1031 Rubin-clear #> 1032 Rubin-bronze #> 1033 Rubin-grey #> 1034 Rubin-green #> 1035 Rubin-lowiron #> 1036 Rubin-IR #> 1037 ZERODUR #> 1038 B270 #> 1039 AF32ECO #> 1040 D263TECO #> 1041 BOROFLOAT33 #> 1042 LITHOSIL-Q #> 1043 LITHOTEC-CAF2 #> 1061 EagleXG #> 1063 D0290 #> 1064 D0391 #> 1065 D0891 #> 1066 D0082 #> 1067 D0785 #> 1068 D0888 #> 1069 D0587 #> 1070 D0687 #> 1071 D1125 #> 1072 D1426-D1526 #> 1073 D6625 #> 1074 D6526-D6626 #> 1075 D6726-D6826 #> 1076 D0991 #> 1077 D0191 #> 1078 D1214 #> 1079 D1219 #> 1080 D1230 #> 1081 D1420_1 #> 1082 D1511 #> 1083 D1520 #> 1084 D1616 #> 1085 D4150 #> 1086 D5336_1 #> 1087 D6117 #> 1088 D6420 #> 1089 D9148 #> 1091 AMTIR-1 #> 1092 AMTIR-2 #> 1093 AMTIR-3 #> 1094 AMTIR-6 #> 1095 IG2 #> 1096 IG3 #> 1097 IG4 #> 1098 IG5 #> 1099 IG6 #> 1100 IRG22 #> 1101 IRG23 #> 1102 IRG24 #> 1103 IRG25 #> 1104 IRG26 #> 1105 BD-2 #> 1107 K7 #> 1108 K10 #> 1109 N-K5 #> 1110 K5G20 #> 1111 N-ZK7 #> 1112 N-ZK7A #> 1113 N-SK2 #> 1114 N-SK2HT #> 1115 N-SK4 #> 1116 N-SK5 #> 1117 N-SK10 #> 1118 N-SK11 #> 1119 N-SK14 #> 1120 N-SK15 #> 1121 N-SK16 #> 1122 P-SK57 #> 1123 P-SK57Q1 #> 1124 P-SK58A #> 1125 P-SK60 #> 1126 N-SSK2 #> 1127 N-SSK5 #> 1128 N-SSK8 #> 1129 BK7G18 #> 1130 N-BK7 #> 1131 N-BK7HT #> 1132 N-BK7HTi #> 1133 N-BK10 #> 1134 P-BK7 #> 1135 N-BAK1 #> 1136 N-BAK2 #> [ reached getOption("max.print") -- omitted 1614 rows ]
Ag_data <- rindex.get(0)
#> Warning: cannot open file 'C:/Users/Tom/Desktop/rindex/inst/extdata/refractiveindex.info-database-master/database/data': Permission denied
#> Error in file(file, "rt", encoding = fileEncoding): cannot open the connection
Ag <- rindex.function(0)
#> Warning: cannot open file 'C:/Users/Tom/Desktop/rindex/inst/extdata/refractiveindex.info-database-master/database/data': Permission denied
#> Error in file(file, "rt", encoding = fileEncoding): cannot open the connection
wavelengths <- seq(210,12300,, 1000) * 1e-9 plot(Ag_data$wavelength, Ag_data$n, log="x", xlab = "wavelength (m) - log scale", ylab = "n")
#> Error in plot(Ag_data$wavelength, Ag_data$n, log = "x", xlab = "wavelength (m) - log scale", ylab = "n"): object 'Ag_data' not found
lines(wavelengths, Re(Ag(wavelengths)), col = 2, lwd = 2)
#> Error in Ag(wavelengths): could not find function "Ag"