- Timestamp:
- Mar 16, 2009, 1:35:50 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/coordinate_transforms/test_redfearn.py
r6519 r6520 308 308 zone=forced_zone) 309 309 310 print311 print 'Lat', lat312 print 'Lon', lon313 print 'Zone', zone314 print 'Ref x', x, 'Computed x', easting, 'Close enough:', num.allclose(x, easting)315 print 'Ref y', y, 'Computed y', northing, 'Close enough:', num.allclose(y, northing)316 317 310 # Check calculation 318 311 assert zone == forced_zone 319 print 320 #assert num.allclose(x, easting) 321 #assert num.allclose(y, northing) 312 assert num.allclose(x, easting) 313 assert num.allclose(y, northing) 322 314 323 315 … … 353 345 scale_factor=0.9996) 354 346 355 print356 print 'Lat', lat357 print 'Lon', lon358 print 'Zone', zone359 print 'Ref x', x, 'Computed x', easting, 'Close enough:', num.allclose(x, easting)360 print 'Ref y', y, 'Computed y', northing, 'Close enough:', num.allclose(y, northing)361 362 # Check calculation363 347 assert zone == -1 # Indicates non UTM projection 364 print 365 #assert num.allclose(x, easting) 366 #assert num.allclose(y, northing) 348 assert num.allclose(x, easting) 349 assert num.allclose(y, northing) 367 350 368 351 # Test that zone and meridian can't both be specified … … 524 507 if __name__ == "__main__": 525 508 526 #mysuite = unittest.makeSuite(TestCase,'test_convert_latlon_to_UTM1') 527 mysuite = unittest.makeSuite(TestCase,'test_nonstandard_meridian_coinciding_with_native') 528 #mysuite = unittest.makeSuite(TestCase,'test') 509 mysuite = unittest.makeSuite(TestCase,'test') 529 510 runner = unittest.TextTestRunner() 530 511 runner.run(mysuite)
Note: See TracChangeset
for help on using the changeset viewer.