PDL::IO::HDF5

PDL::IO::HDF5 is a PDL Interface to the HDF5 Data Format.
Download

PDL::IO::HDF5 Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • John Cerney
  • Publisher web site:
  • http://search.cpan.org/~cerney/Tk-IDElayout-0.31/IDEdragShadowToplevel.pm

PDL::IO::HDF5 Tags


PDL::IO::HDF5 Description

PDL::IO::HDF5 is a PDL Interface to the HDF5 Data Format. PDL::IO::HDF5 is a PDL interface to the HDF5 Data Format.SYNOPSIS use PDL::IO::HDF5; # Files ####### my $newfile = new PDL::IO::HDF5("newfile.hdf"); # create new hdf5 or open existing file. my $attrValue = $existingFile->attrGet('AttrName'); # Get attribute value for file $existingFile->attSet('AttrName' => 'AttrValue'); # Set attribute value(s) for file #Groups ###### my $group = $newfile->group("/mygroup"); # create a new or open existing group my @groups = $existingFile->groups; # get a list of all the groups at the root '/' # level. my @groups = $group->groups; # get a list of all the groups at the "mygroup" # level. my $group2 = $group->group('newgroup'); # Create/open a new group in existing group "mygroup" my $attrValue = $group->attrGet('AttrName'); # Get attribute value for a group $group->attrSet('AttrName' => 'AttrValue'); # Set attribute value(s) for a group $group->attrDel('AttrName1', 'AttrName2'); # Delete attribute(s) for a group @attrs = $group->attrs; # Get List of attributes for a group # Data Sets ######## my $dataset = $group->dataset( 'datasetName'); # create a new or open existing dataset # in an existing group my $dataset = $newfile->dataset( 'datasetName'); # create a new or open existing dataset # in the root group of a file my $dataset2 = $newfile->dataset( 'datasetName'); # create a new or open existing dataset # in the root group. my @datasets = $existingFile->datasets; # get a list of all datasets in the root '/' group my @datasets = $group->datasets; # get a list of all datasets in a group @dims = $dataset->dims; # get a list of dimensions for the dataset $pdl = $dataset->get(); # Get the array data in the dataset $dataset->set($pdl); # Set the array data in the dataset my $attrValue = $dataset->attrGet('AttrName'); # Get attribute value for a dataset $dataset->attSet('AttrName' => 'AttrValue'); # Set attribute value(s) for a datasetLimitations:· Only HDF5 Simple datatypes are supported. No HDF5 Compound datatypes are supported since PDL doesn't support them.· Only HDF5 Simple dataspaces are supported.· Only 0-dimensional (i.e. scalar) attributes are supported. (Support for PDLs as attributes could possibly be added later.) Requirements: · Perl


PDL::IO::HDF5 Related Software