.::Gwyddion::dump(3pm)
π NAME π
Gwyddion::dump β bestie, this is the module that handles the Gwyddion plug-in proxy dump dumb file format. That's a whole lot of words, but basically: it reads and writes those dump files for you. Slay. β¨
It lives in the gwyddion manual, section 3pm, iykyk.
πΈ FUNCTIONS πΈ
π¦ read( filename )
Read a Gwyddion plug-in proxy dump file. That's it, that's the job. π
The file comes back to you as a hash table of dump key, value pairs. Fr fr.
The data fields are packed as references to hashes, and those hashes can have these keys β and lowkey, not all of them have to be present, so don't come for me if one's missing:
xresβ the x-resolution, counted in number of samplesyresβ the y-resolution, counted in number of samplesxrealβ the real x size, in base SI unitsyrealβ the real y size, in base SI unitsunit-xyβ the lateral units, base SI, likemunit-zβ the value units, base SI, likemorAdataβ the data field data itself, which is an array of floats
β οΈ okay so important: fatal errors are not handled. The function literally just dies. So if you have anything meaningful to do after a fatal error, you have to catch the error yourself. No cap. π
π
write( data, filename )
Write a Gwyddion plug-in proxy dump file. The glow-up direction this time. β¨
The hash table you hand it is expected to follow the same conventions as the ones returned by read(), so bestie, go peek at that description above for the details. π
β οΈ same deal as before: fatal errors are not handled, the function simply dies. If you've got anything meaningful to do after a fatal error, you have to catch the error. Periodt. π
so that's the whole page, my love β this was Perl v5.40.1 energy, dated 2025-05-22, straight from the gwyddion manual. π«ΆπΈ Go read some dump files, you absolute icon. π
π¦ where this page comes from
- ubuntu questing: gwyddion 2.67-1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms