Ignore:
Timestamp:
Oct 11, 2005, 3:21:38 PM (19 years ago)
Author:
ole
Message:

New gauge points

File:
1 edited

Legend:

Unmodified
Added
Removed
  • production/karratha_2005/get_timeseries.py

    r1836 r1893  
    44import project
    55from pyvolution.util import file_function
     6from pyvolution.coordinate_transforms.redfearn import degminsec2decimal_degrees, redfearn
    67
    7 swwfile = project.outputdir + project.basename + '.sww'
     8#swwfile = project.outputdir + project.basename + '.sww'
     9swwfile = project.outputname + '_0.0tide' + '.sww'
     10#swwfile = project.outputdir + 'karratha_100m_12m.sww'
    811
    9 #gauges = [[0.000, 1.696]]  #Boundary
    10 #gauges += [[4.521, 1.196],  [4.521, 1.696],  [4.521, 2.196]] #Ch 5-7-9
    11 #gauge_names = ['Boundary', 'ch5', 'ch7', 'ch9']
    12 #finaltime = 22.5
    13 #timestep = 0.05
     12#MOST Boundary
     13y = project.north
     14x = (project.west + project.east)/2
    1415
    15 gauges = [[60000, 83000],
    16           [60000, 80000],
    17           [60000, 75000],                   
    18           [60000, 70000],         
    19           [60000, 60000],
    20           [60000, 50000],         
    21           [60000, 40000],
    22           [60000, 30000],         
    23           [60000, 20000],
    24           [60000, 10000],         
    25           [60000, 0]]
    26 #gauge_names = ['SW', 'N', 'N2', ]
     16z, easting, northing  = redfearn(y, x)
     17
     18
     19#From Neil
     20gauges = [[easting, northing],
     21          [470882, 7717952],
     22          [469390, 7715426],
     23          [469214, 7714979],
     24          [468899, 7715177],
     25          [469038, 7715725],
     26          [470285, 7717470]]
     27         
     28
     29   
     30#gauge_names = ['MOST',
     31#               'Gauge_1', 'Gauge_2', 'Gauge_3',
     32#               'Gauge_4', 'Gauge_5', 'Gauge_6']
    2733 
    2834
     
    4551
    4652
     53
    4754for k, g in enumerate(gauges):
    4855    model_values = []
     
    5562    hold(False)
    5663    plot(model_time, model_values, '-b')
    57     name = str(g)
    58     title('Gauge %s' %name)
     64    name = 'Gauge_%d' %k
     65    title(name)
    5966    savefig(name, dpi = 300)
    6067
Note: See TracChangeset for help on using the changeset viewer.