Logo Search packages:      
Sourcecode: rapid-photo-downloader version File versions  Download package

def rapid::metadata::DummyMetaData::exposureTime (   self,
  alternativeFormat = False,
  missing = '' 
)

Returns in string format the exposure time of the image.

Returns missing if the metadata value is not present.

alternativeFormat is useful if the value is going to be  used in a 
purpose where / is an invalid character, e.g. file system names.  

alternativeFormat is False:
For exposures less than one second, the result is formatted as a 
fraction e.g. 1/125
For exposures greater than or equal to one second, the value is 
formatted as an integer e.g. 30

alternativeFormat is True:
For exposures less than one second, the result is formatted as an 
integer e.g. 125
For exposures less than one second but more than or equal to 
one tenth of a second, the result is formatted as an integer 
e.g. 3 representing 3/10 of a second
For exposures greater than or equal to one second, the value is 
formatted as an integer with a trailing s e.g. 30s

Reimplemented from rapid::metadata::MetaData.

Definition at line 524 of file metadata.py.

00524                                                                :
        if alternativeFormat:
            return  "4000"
        else:
            return  "1/4000"
        
    def focalLength(self, missing=''):


Generated by  Doxygen 1.6.0   Back to index