source: production/karratha_2005/prepare_boundary.py @ 1801

Last change on this file since 1801 was 1801, checked in by ole, 20 years ago
File size: 1.0 KB
Line 
1"""
2# Convert output from MOST in ferret format to sww format
3#
4#    lat and lons converted to UTM
5#    units normalised to SI units
6#    UTM reference point obtained from mesh file used with sww
7#    to ensure comptaible coordinates.
8#    region is trimmed down by specifying a rectangular bounding box.
9"""
10
11#FIXME: OBSOLETE
12
13import os
14import project
15
16#Directory for source data 
17s = os.sep
18source_dir = project.boundarydir
19
20
21#Data
22from pyvolution.data_manager import ferret2sww
23
24
25south = project.south
26north = project.north
27west = project.west
28east = project.east
29
30
31#Origin of existing dem (Temporary measure)
32mesh_origin = (50, 421544.35127423, 7677669.5257159)
33
34   
35
36ferret2sww(source_dir+project.boundary_basename,
37           project.boundary_basename, 
38           verbose=True,
39           minlat=south-1, maxlat=north+1,
40           minlon=west-1, maxlon=east+1,
41           origin = mesh_origin,
42           zscale = 1,
43           fail_on_NaN = False,
44           inverted_bathymetry = True),
45
46
47
48
49
Note: See TracBrowser for help on using the repository browser.