diff --git a/AODN/AODN-WAVE-NRT/ARDC_API_NRT/ardc_nrt/config/sofar/sources_id_metadata.json b/AODN/AODN-WAVE-NRT/ARDC_API_NRT/ardc_nrt/config/sofar/sources_id_metadata.json index c1039297..21e81881 100644 --- a/AODN/AODN-WAVE-NRT/ARDC_API_NRT/ardc_nrt/config/sofar/sources_id_metadata.json +++ b/AODN/AODN-WAVE-NRT/ARDC_API_NRT/ardc_nrt/config/sofar/sources_id_metadata.json @@ -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": { diff --git a/AODN/AODN-WAVE-NRT/ARDC_API_NRT/ardc_nrt/lib/common/netcdf.py b/AODN/AODN-WAVE-NRT/ARDC_API_NRT/ardc_nrt/lib/common/netcdf.py index 2e9aec4b..f089ac70 100644 --- a/AODN/AODN-WAVE-NRT/ARDC_API_NRT/ardc_nrt/lib/common/netcdf.py +++ b/AODN/AODN-WAVE-NRT/ARDC_API_NRT/ardc_nrt/lib/common/netcdf.py @@ -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)