

3·
21 days agoWhat, pickle.dump
your enormous Numpy array not good enough for you anymore? Not even fancy zlib.compress(pickle.dumps(enormousNumpyArray))
will satisfy you? Are you a scientist or a spectral data photographer?
What, pickle.dump
your enormous Numpy array not good enough for you anymore? Not even fancy zlib.compress(pickle.dumps(enormousNumpyArray))
will satisfy you? Are you a scientist or a spectral data photographer?
Missing a Raspberry PI 4 setup which hosts a print server, an RTP server with two surveillance webcams and no password, and also seeds a terabyte of torrents over the local flower shop’s unencrypted WiFi.
Saving arbitrary metadata is the exact use case for
pickle
module, you just put it together with your numpy array into a tuple. jpeg format has support for storing metadata, but they are an afterthought like .mp3 tags, half of applications do not support them.I can imagine multichannel jpeg to be used in photo editing software, so you can effortlessly create false-color plots of your infrared data, maybe even apply a beauty filter to your Eagle Nebula microwave scans.