Changeset 3669


Ignore:
Timestamp:
Sep 26, 2006, 11:30:09 AM (18 years ago)
Author:
sexton
Message:

reflecting PATH change in project scripts

Location:
anuga_work/production
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/MOST_example/project.py

    r3608 r3669  
    4848    home = getenv('INUNDATIONHOME', sep+'d'+sep+'cit'+sep+'2'+sep+'cit'+sep+'inundation'+sep+'data')     
    4949    user = getenv('LOGNAME')
    50    
     50
     51# INUNDATIONHOME is the inundation directory, not the data directory.
     52home += sep +'data'
     53
    5154#Derive subdirectories and filenames
    5255time = strftime('%Y%m%d_%H%M%S',localtime()) #gets time for new dir
  • anuga_work/production/broome_2006/project.py

    r3535 r3669  
    4242    home = getenv('INUNDATIONHOME', sep+'d'+sep+'cit'+sep+'2'+sep+'cit'+sep+'inundation'+sep+'data')     
    4343    user = getenv('LOGNAME')
     44
     45# INUNDATIONHOME is the inundation directory, not the data directory.
     46home += sep +'data'
    4447
    4548#Derive subdirectories and filenames
  • anuga_work/production/hobart_2006/project.py

    r3668 r3669  
    6565#time = strftime('%Y%m%d_%H%M%S',localtime()) #gets time for new dir
    6666local_time = strftime('%Y%m%d_%H%M%S',gmtime()) #gets time for new dir
    67 
     67print 'home', home
    6868meshdir = home+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'meshes'+sep
    6969datadir = home+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'topographies'+sep
    7070gaugedir = home+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'gauges'+sep
    7171polygondir = home+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'polygons'+sep
    72 boundarydir = home+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'boundaries'+sep
     72boundarydir = home+sep+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'boundaries'+sep
    7373#output dir without time
    7474outputdir = home+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'outputs'+sep
  • anuga_work/production/hobart_2006/run_hobart.py

    r3661 r3669  
    6969
    7070# creates DEM from asc data - 12.5m
    71 convert_dem_from_ascii2netcdf(onshore_dem_name, use_cache=True, verbose=True)
     71#convert_dem_from_ascii2netcdf(onshore_dem_name, use_cache=True, verbose=True)
    7272
    7373#creates pts file for onshore DEM - 12.5
    74 dem2pts(onshore_dem_name,
    75         easting_min=project.eastingmin,
    76         easting_max=project.eastingmax,
    77         northing_min=project.northingmin,
    78         northing_max= project.northingmax,
    79         use_cache=True, verbose=True)
     74#dem2pts(onshore_dem_name,
     75#        easting_min=project.eastingmin,
     76#        easting_max=project.eastingmax,
     77#        northing_min=project.northingmin,
     78#        northing_max= project.northingmax,
     79#        use_cache=True, verbose=True)
    8080
    8181# create DEM from asc data - 25m data
     
    8383
    8484#creates pts file for onshore DEM - 25
    85 dem2pts(onshore_dem_name_25, use_cache=True, verbose=True)
    86 
    87 combine_rectangular_points_files(project.onshore_dem_name + '.pts',
    88                                  project.onshore_dem_name_25 + '.pts',
    89                                  project.all_onshore_dem_name + '.pts')
     85dem2pts(onshore_dem_name_25,
     86        easting_min=project.eastingmin25,
     87        easting_max=project.eastingmax25,
     88        northing_min=project.northingmin25,
     89        northing_max= project.northingmax25,
     90        use_cache=True, verbose=True)
     91
     92#combine_rectangular_points_files(project.onshore_dem_name + '.pts',
     93#                                 project.onshore_dem_name_25 + '.pts',
     94#                                 project.all_onshore_dem_name + '.pts')
    9095
    9196print 'adding data sets'
     
    110115    Geospatial_data(file_name = project.offshore_dem_name_aho15 + '.xya')+\
    111116    Geospatial_data(file_name = project.offshore_dem_name_aho16 + '.xya')+\
    112     Geospatial_data(file_name = project.all_onshore_dem_name + '.pts')
     117    Geospatial_data(file_name = project.onshore_dem_name_25 + '.pts')
    113118G.export_points_file(project.combined_dem_name + '.pts')
    114 
     119#Geospatial_data(file_name = project.all_onshore_dem_name + '.pts')
    115120#----------------------------------------------------------------------------
    116121# Create the triangular mesh based on overall clipping polygon with a tagged
     
    134139_ = cache(create_mesh_from_regions,
    135140          project.polyAll,
    136           {'boundary_tags': {'bottom': [0], 'right': [1],
    137                              'top': [2], 'left': [3]},
    138            'maximum_triangle_area': 100000,
     141          {'boundary_tags': {'bottom': [0], 'bright': [1],
     142                             'topr': [2], 'top': [3], 'left': [4]},
     143           'maximum_triangle_area': 250000,
    139144           'filename': meshname},           
    140145           #'interior_regions': interior_regions},
     
    230235
    231236# for testing
    232 domain.set_boundary( {'top': Bd, 'left': Bd,
    233                       'bottom': Bd, 'right': Bw} )
     237domain.set_boundary( {'topr': Bd, 'left': Bd, 'top': Bd,
     238                      'bottom': Bd, 'bright': Bw} )
    234239
    235240#-------------------------------------------------------------------------------                                 
  • anuga_work/production/karratha_2006/project.py

    r3627 r3669  
    3232    user = getenv('LOGNAME')
    3333
     34# INUNDATIONHOME is the inundation directory, not the data directory.
     35home += sep +'data'
    3436
    3537#Derive subdirectories and filenames
  • anuga_work/production/onslow_2006/project.py

    r3650 r3669  
    4949    user = getenv('LOGNAME')
    5050    print 'USER:', user
     51
     52# INUNDATIONHOME is the inundation directory, not the data directory.
     53home += sep +'data'
    5154
    5255#Derive subdirectories and filenames
     
    134137n_max_area = 7610000
    135138
    136 # region to export to make elevation map: JS 22/9/06
     139# region to export to make elevation map: JS 22/9/06 - NOTE, this won't
     140# work as region needs to be inside bounding box (polyAll)!!
    137141
    138142e_min_area = 240000
     
    140144n_min_area = 7580000
    141145n_max_area = 7690000
    142 
     146export_region = [[e_min_area, n_min_area],
     147                 [e_min_area, n_max_area],
     148                 [e_max_area, n_max_area],
     149                 [e_max_area, n_min_area]]
    143150#Georeferencing
    144151from anuga.coordinate_transforms.redfearn import degminsec2decimal_degrees
     
    157164polyAll = [d0, d1, d2, d3, d4, d5, d6]
    158165
     166polygons = [polyAll, export_region]
     167figname = 'checking.png'
     168from anuga.utilities.polygon import plot_polygons
     169plot_polygons(polygons, figname, verbose = False)
     170print figname
    159171#Interior region - Onslow town
    160172
  • anuga_work/production/pt_hedland_2006/project.py

    r3535 r3669  
    4949    home = getenv('INUNDATIONHOME', sep+'d'+sep+'cit'+sep+'2'+sep+'cit'+sep+'inundation'+sep+'data')     
    5050    user = getenv('LOGNAME')
     51
     52# INUNDATIONHOME is the inundation directory, not the data directory.
     53home += sep +'data'
    5154
    5255#Derive subdirectories and filenames
  • anuga_work/production/sydney_2006/project.py

    r3535 r3669  
    3939else:   
    4040    home = expanduser('~')
    41    
     41
     42# INUNDATIONHOME is the inundation directory, not the data directory.
     43home += sep +'data'
     44
    4245#Derive subdirectories and filenames
    4346meshdir = home+sep+state+scenario_dir_name+sep+'anuga'+sep+'meshes'+sep
Note: See TracChangeset for help on using the changeset viewer.