Name output file the same way as the input one

This commit is contained in:
Benjamin Loison 2024-04-18 00:13:21 +02:00
parent 8c9dfc2e41
commit fb58d78fed
Signed by: Benjamin_Loison
SSH Key Fingerprint: SHA256:BtnEgYTlHdOg1u+RmYcDE0mnfz1rhv5dSbQ2gyxW8B8

View File

@ -1,7 +1,10 @@
import numpy as np
import matplotlib.pyplot as plt
npArray = np.load('mean_rafael_arw_png_sky_wavelet.npy')
fileName = 'mean_flat-field_nef_wavelet_blue'
npArray = np.load(f'{fileName}.npy')
npArrayMin = npArray.min()
print(f'{npArrayMin=}')
plt.imsave('np_array.png', npArray - npArrayMin)
plt.imsave(f'{fileName}.png', npArray - npArrayMin)
#plt.imshow(npArray - npArrayMin)
#plt.show()