Changeset 928 for inundation/ga/storm_surge/pyvolution/test_data_manager.py
- Timestamp:
- Feb 18, 2005, 5:15:46 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/test_data_manager.py
r907 r928 507 507 from Scientific.IO.NetCDF import NetCDFFile 508 508 509 #Write test demfile509 #Write test asc file 510 510 root = 'demtest'+str(time.time()) 511 511 … … 536 536 fid.close() 537 537 538 #Write prj file with metadata 539 metafilename = root+'.prj' 540 fid = open(metafilename, 'w') 541 542 543 fid.write("""Projection UTM 544 Zone 56 545 Datum WGS84 546 Zunits NO 547 Units METERS 548 Spheroid WGS84 549 Xshift 0.0000000000 550 Yshift 10000000.0000000000 551 Parameters 552 """) 553 fid.close() 554 538 555 #Convert to NetCDF xya 539 556 convert_dem_from_ascii2netcdf(filename) … … 564 581 565 582 os.remove(root + '.pts') 566 os.remove(root + '.dem') 583 os.remove(root + '.dem') 567 584 os.remove(root + '.asc') 568 585 os.remove(root + '.prj') 569 586 570 587 #-------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.