ddasilva commited on
Commit
3271e0a
·
verified ·
1 Parent(s): e3871c4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -0
README.md CHANGED
@@ -73,6 +73,23 @@ Compressed simulation model outputs containing spherical harmonics are available
73
  | **Size per file** | ~763 KB |
74
 
75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  ## Contact
77
 
78
  Daniel da Silva, [[email protected]]([email protected])
 
73
  | **Size per file** | ~763 KB |
74
 
75
 
76
+ ## Example Code
77
+
78
+ ```python
79
+ fits_file = fits.open("wsa_201005010800R000_ahmi.fits")
80
+ sph_data = fits_file[3].data.copy()
81
+ fits_file.close()
82
+
83
+ coefficients = torch.from_numpy(
84
+ np.array(
85
+ [
86
+ sph_data[0, :, :][np.triu_indices(sph_data.shape[1])],
87
+ sph_data[1, :, :][np.triu_indices(sph_data.shape[1])],
88
+ ]
89
+ )
90
+ )
91
+ ```
92
+
93
  ## Contact
94
 
95
  Daniel da Silva, [[email protected]]([email protected])