Skip to content

Commit

Permalink
Removed type specification of scan_nb
Browse files Browse the repository at this point in the history
  • Loading branch information
Spect4tor committed Mar 22, 2023
1 parent 12dd464 commit 83c1689
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyorbital/geoloc_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@
avhrr = np.vstack(((scan_points / 1023.5-1) * np.deg2rad(-scan_angle),
np.zeros((len(scan_points),))))
avhrr = np.tile(
avhrr[:, np.newaxis, :], [1, np.int32(scans_nb), 1])
avhrr[:, np.newaxis, :], [1, scans_nb, 1])

# building the corresponding times array
times = np.tile(scan_points * int_t, [np.int32(scans_nb), 1])
offset = np.arange(np.int32(scans_nb)) * scan_p
times = np.tile(scan_points * int_t, [scans_nb, 1])
offset = np.arange(scans_nb) * scan_p
times += np.expand_dims(offset, 1)

# build the scan geometry object
Expand Down

0 comments on commit 83c1689

Please sign in to comment.