Ignore:
Timestamp:
Feb 18, 2005, 5:15:46 PM (20 years ago)
Author:
ole
Message:

Incorporated variable false eastings and northings (just in case:-).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/test_data_manager.py

    r907 r928  
    507507        from Scientific.IO.NetCDF import NetCDFFile
    508508
    509         #Write test dem file
     509        #Write test asc file
    510510        root = 'demtest'+str(time.time())
    511511
     
    536536        fid.close()
    537537
     538        #Write prj file with metadata
     539        metafilename = root+'.prj'
     540        fid = open(metafilename, 'w')
     541
     542
     543        fid.write("""Projection UTM
     544Zone 56
     545Datum WGS84
     546Zunits NO
     547Units METERS
     548Spheroid WGS84
     549Xshift 0.0000000000
     550Yshift 10000000.0000000000
     551Parameters
     552""")
     553        fid.close()
     554       
    538555        #Convert to NetCDF xya
    539556        convert_dem_from_ascii2netcdf(filename)
     
    564581
    565582        os.remove(root + '.pts')
    566         os.remove(root + '.dem')                
     583        os.remove(root + '.dem')               
    567584        os.remove(root + '.asc')       
    568        
     585        os.remove(root + '.prj')               
    569586       
    570587#-------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.