IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31907


Ignore:
Timestamp:
Jul 19, 2011, 1:33:38 PM (15 years ago)
Author:
eugene
Message:

adding metadataLookupF32 perl function (only used by camera_exp.pl)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-Config/lib/PS/IPP/Config.pm

    r30744 r31907  
    4040                    metadataLookupBool
    4141                    metadataLookupS32
     42                    metadataLookupF32
    4243                    caturi
    4344                    file_scheme
     
    15761577}
    15771578
     1579# Lookup the metadata, checking the type is F32
     1580sub metadataLookupF32
     1581{
     1582    my $item = metadataLookup(@_);
     1583    return undef if not defined $item;
     1584    my $name = shift;                # Name of item
     1585    carp "$name within metadata is type $item->{type} not F32.\n" unless $item->{type} eq "F32";
     1586    return $item->{value};
     1587}
     1588
    15781589# Lookup the metadata, checking the type is MD
    15791590sub metadataLookupMD
Note: See TracChangeset for help on using the changeset viewer.