Debian Codegraph @

Changes

raw
1 2.005 2026-09-05
2 - fix for HDF 4.4 (#1 #2) - thanks @sebastic
3
4 2.004 2026-08-17
5 - update doc-installing
6
7 2.003 2025-01-06
8 - add licence information
9
10 2.002 2024-12-09
11 - install pdldoc, add repo metadata
12
13 2.001 2024-12-03
14 - split out from PDL 2.095
15
16 2.0 2006-03-27
17
18 - New version I've taken over from the previous authors.
19
20 - There has been several minor fixes to the old version that I have fixed over the years,
21 and I can't remember them all to document here. Any new functionality has been documented,
22 however.
23
24 - "Chunking" functionality added. This is an internal tiling and compression on the SD
25 datasets done by the HDF library. This is on by default, and can be
26 inquired/changed through ->Chunking() member function (pass it 0 for off, true for on).
27 The actual chunking section automatically determines a tile size for the dataset, but
28 this may not be optimal for some datasets. Down the road I'll provide better control of
29 this feature.
30
31 - I've defuncted several functions that had strange (perhaps French) spellings. The originals
32 are still there for the time being, but a future version will come with warnings, and
33 finally be removed from the library even further out.
34
35 SDgetvariablename -> SDgetvariablenames
36 SDgetattribut -> SDgetattribute
37 SDgetattributname -> SDgetattributenames
38 SDgetdimsizeunlimit -> SDgetunlimiteddimsize
39 SDgetdimname -> SDgetdimnames
40 Vgetchilds -> Vgetchildren
41 VSgetfieldsnames -> VSgetfieldnames
42
43 - Umm... I don't like fortran array dim order, so I use C order. This may be a concern for
44 you, but I can't verify the problem for everyone since all of my code works fine.
45 I generally save things as X, Y, Z in my code (think an image, for instance), and then
46 when I open the HDF with image viewers, everything is fine. That's not how HDF saves
47 the data, however, so there's a dim reverse in the code for SDget and SDput, but that
48 should (theoretically) be transparent to you. NOTE: there is no reformatting of memory
49 necessary (it's time consuming, and has been avoided), since the C style dim order
50 is how a linear array maps into memory anyways (that's the main reason I like C style
51 over fortran).
52 If this causes _huge_ problems for you, then maybe I can make the ordering optional and
53 you can have it your backwards way if you want :)
54
55 - I migrated all of the failure codes to return 'undef' instead of the mix they were returning
56 before. This should allow old code to be left alone.
57
58 - I migrated all of the perl hashes to anonymous hashes.
59
60 - I removed and internally doc'd several places where buffer overflows are possible, and did
61 my best shot at making the buffer overflows impossible, using the new constants below.
62 NOTE: this is not total elimination of the problem! Look for that in a later version with
63 updates perlXS code on those function to use the C constants.
64 The constants used in the code are cool with the HDF4.2r1 version, assuming you didn't
65 change anything before you compiled the HDF library. The HDF people could theoretically
66 change those values at a later point, so they should be read directly from the HDF system
67 headers, rather than hard coded in this module.
68
69 - I moved the constants over to 'use constant', so instead of using '$PDL::IO::HDF:DFACC_CREATE',
70 you now would use : 'PDL::IO::HDF->DFACC_CREATE'. This is how constants work in Perl, so get
71 over it and fix your old code that uses things the old way.
72
73 - I added a couple of constants (all only usefull for allocating memory internally):
74 MAX_NC_NAME => HDF's constant to hold the max name length for an attr/sds/dim
75 MAX_VAR_DIMS => HDF's constant to hold the max number of dims for a HDF variable
76 VNAMELENMAX => HDF's constant for the max length of VS interface names
77 FAIL => HDF's constant failure return code
78
79 - I moved all of the tests over to 'use Test', for easier clarity and to get them working again. I
80 also modified the tests to clean up their test files when they are no longer needed (some tests
81 use outputs from earlier tests).
82
83 - I added tests for the SDS chunking features.
84
85 0.01 13/02/01
86 - original version