Name output file the same way as the input one

This commit is contained in:
2024-04-18 00:13:21 +02:00
parent 8c9dfc2e41
commit fb58d78fed

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()