Skip to content

Commit

Permalink
Merge pull request #1215 from aodn/drifting_buoy
Browse files Browse the repository at this point in the history
Stop processing of drifting buoy + typo correction in Netcdf naming code
  • Loading branch information
leonardolaiolo authored Nov 18, 2024
2 parents 29c301c + 961bc20 commit ed95aba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -422,31 +422,6 @@
"water_depth": 50,
"water_depth_units": "m",
"wave_buoy_type": "directional"
},
"SPOT-31758C":
{
"spotter_id": "SPOT-31758C",
"site_name": "Wilsons Prom",
"latitude_nominal": -39.54,
"longitude_nominal": 146.48,
"deployment_start_date": "2024-06-25T02:00:00.000Z",
"institution": "Deakin University" ,
"institution_code": "VIC",
"abstract": "Near real time integral wave parameters from wave buoys collected by the Deakin University using a SOFAR Spotter-V3 at Wilsons Prom",
"title": "Near real time integral wave parameters from wave buoys collected by the Deakin University using a SOFAR Spotter-V3 at Wilsons Prom",
"instrument": "SOFAR Spotter-V3",
"instrument_burst_interval": 1800,
"instrument_burst_duration": 1800,
"instrument_burst_units": "s",
"instrument_sampling_interval": 0.4,
"platform": "moored surface buoy",
"wave_motion_sensor_type": "GPS",
"wave_sensor_serial_number": "SPOT-31758C",
"hull_serial_number": "SPOT-31758C",
"transmission": "Cellular",
"water_depth": 78,
"water_depth_units": "m",
"wave_buoy_type": "directional"
},
"SPOT-1632":
{
Expand Down
4 changes: 2 additions & 2 deletions AODN/AODN-WAVE-NRT/ARDC_API_NRT/ardc_nrt/lib/common/netcdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ def convert_wave_data_to_netcdf(self, true_dates=False):
not re.match('^IMOS', template.global_attributes['institution'].upper()):
template.global_attributes.update({'institution_code': 'VIC-DEAKIN-UNI'})
elif re.match('^IMOS', template.global_attributes['institution'].upper()) and \
not template.global_attributes['institution_code'].lower == 'imos':
not template.global_attributes['institution_code'].lower() == 'imos':
# rename VIC and UWA operated buoys from IMOS-NTP facility
template.global_attributes.update({'institution_code': 'IMOS_NTP-WAVE'})
elif template.global_attributes['institution_code'].lower == 'imos':
elif template.global_attributes['institution_code'].lower() == 'imos':
template.global_attributes.update({'institution_code': 'IMOS_COASTAL-WAVE'})

month_start = datetime.datetime(self.df.timestamp.min().year, self.df.timestamp.min().month, 1, 0, 0, 0)
Expand Down

0 comments on commit ed95aba

Please sign in to comment.