-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathouba_config_20131101.py
47 lines (46 loc) · 1.89 KB
/
ouba_config_20131101.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
platform_info = {
'id' : 'ouba',
'location' : 'Outer Banks, NC',
##### use bounding box (limits or polygon) to describe location
'lat' : (33.5, 38.), # degrees true (-) south, (+) north
'lon' : (-76, -73.), # degrees true (-) west, (+) east
'mvar' : -11, # degrees (-) west, (+) east
'nlat' : 83.,
'nlon' : 45.,
# 'mean_water_depth' : -8.14, # meters (-) down, (+) up
# 'mean_water_depth_time_period' : 'June 2006 - June 2008',
'institution' : 'nccoos',
#
'config_start_date' : '2013-11-01 00:00:00',
'config_end_date' : None, # None or yyyy-mm-dd HH:MM:SS
'packages' : ('hfr', ),
}
sensor_info = {
'hfr' : { 'id' : 'hfr',
'description' : 'High Frequency RADAR Surface Current Totals',
'raw_dir' : '/seacoos/data/nccoos/level0/ouba/hfr_totals',
'raw_file_glob' : '*.tuv',
'proc_dir' : '/seacoos/data/nccoos/level1/ouba/hfr_totals',
'process_module' : 'proc_codar_totals',
'utc_offset' : 0, # hours offset to utc
'operating_frequency' : 4.5, # MHz
'averaging_radius' : 9.0, # kilometers
# 'plot_module' : 'ouba_totals_plot',
# 'plot_names' : ('vecmap',),
# 'csv_dir' : '/seacoos/data/nccoos/latest_csv',
# 'cvs_vars' : ('time','lat','lon','z','u','v'),
'latest_dir' : '/seacoos/data/nccoos/latest_v2.0',
'latest_vars' : ('time','lat','lon','z','u','v'),
},
}
## NOTE: grid definition for totals based on 6km spacing and the bounding box
# minlat, maxlat = (33.5, 38.)
# minlon, maxlon = (-76, -73.)
# midlat = minlat + 0.5*(maxlat-minlat)
## ~111 km = 1 deg latitude
# nlat = numpy.round((maxlat-minlat) *111/6)
# nlon = numpy.round((maxlon-minlon) * math.cos(midlat*math.pi/180)*111/6)
# nlat
# >>> 83
# nlon
# >>> 45