Changeset 1812 for inundation/pyvolution


Ignore:
Timestamp:
Sep 8, 2005, 5:49:31 PM (19 years ago)
Author:
tdhu
Message:

MOre code added for creating default header dictionary

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/ermapper_grids.py

    r1804 r1812  
    9393
    9494def create_default_header(header):
    95     pass
    9695    # fill any blanks in a header dictionary with default values
    9796    # input parameters:
    9897    # header:   a dictionary containing fields that are not meant
    9998    #           to be filled with default values
     99   
     100##    projection = 'GEOGRAPHIC',
     101##                          coordinate_type = 'LL', rotation = '0:0:0.0',
     102##                          cell_type = 'IEEE4ByteReal', null_value = '-99999',
     103##                          x_dim = '100', x_ll = '0:0:0', y_dim = '100', y_ll = '0:0:0',
     104##                          num_lines = '3', num_cells = '4', num_bands = '1',
     105##                          band_id = 'band1')
     106    if not header.has_key('datum'):
     107        header['datum'] = 'GDA94'
     108    if not header.has_key('projection'):
     109        header['datum'] = 'GEOGRAPHIC'       
     110
     111    return header   
     112                         
     113   
     114
    100115
    101116   
Note: See TracChangeset for help on using the changeset viewer.