@@ -37,7 +37,7 @@ None of the models are exported to avoid namespace clashes, but it can be verbos
37
37
``` julia
38
38
julia> using PSFModels: Gaussian
39
39
40
- julia> model = Gaussian (8 )
40
+ julia> model = Gaussian (fwhm = 8 )
41
41
```
42
42
43
43
or you can create an alias for ` PSFModels `
@@ -49,7 +49,7 @@ const M = PSFModels
49
49
# julia version 1.6 or above
50
50
import PSFModels as M
51
51
52
- model = M. Gaussian (10 )
52
+ model = M. Gaussian (fwhm = 10 )
53
53
```
54
54
55
55
## Usage
@@ -59,14 +59,14 @@ For more in-depth usage and examples, please see the [documentation](https://jul
59
59
``` julia
60
60
using PSFModels
61
61
62
- m = PSFModels. Gaussian (8 ) # bivariate gaussian with a FWHM of 8 pixels
63
- m = PSFModels. Gaussian ((7.4 , 8.2 )) # specify FWHM for each axis
64
- m = PSFModels. Gaussian ([1 0 ; 0 1 ]) # specify FWHM as a correlated matrix
62
+ m = PSFModels. Gaussian (fwhm= 8 ) # bivariate gaussian with a FWHM of 8 pixels
63
+ m = PSFModels. Gaussian (fwhm= (7.4 , 8.2 )) # specify FWHM for each axis
65
64
66
- m = PSFModels. Gaussian (12 , 25 , 8.2 ) # specifiy location in pixel coordinates
67
- m = PSFModels. Gaussian ([12 , 25 ], 8.2 )
65
+ m = PSFModels. Gaussian (x= 12 , y= 25 , fwhm= 8.2 ) # specifiy location in pixel coordinates
66
+ m = PSFModels. Gaussian (pos= [12 , 25 ], fwhm= 8.2 )
67
+ m = PSFModels. Gaussian (r= 5 , theta= 30 , fwhm= 8.2 ) # polar coordinates
68
68
69
- mf0 = PSFModels. Gaussian {Float32} ( 8.2 ) # output guaranteed to be Float32
69
+ mf0 = PSFModels. Gaussian (Float32, fwhm = 8.2 ) # output guaranteed to be Float32
70
70
```
71
71
72
72
``` julia
0 commit comments