### loop over schedule blocks for ii, fn_block in enumerate(fn_list, 1): sch_obj = zc.merge_z3d(fn_block) sch_obj.name = 'schedule_{0:02}'.format(ii) sch_obj.write_metadata_csv(station_save_dir) ### create group for schedule action m.add_schedule(sch_obj) ### add calibrations for hh in ['hx', 'hy', 'hz']: mag_obj = getattr(m.field_notes, 'magnetometer_{0}'.format(hh)) if mag_obj.id is not None and mag_obj.id != 0: cal_fn = os.path.join(calibration_dir, 'ant_{0}.csv'.format(mag_obj.id)) cal_hx = mth5.Calibration() cal_hx.from_csv(cal_fn) cal_hx.name = hh cal_hx.instrument_id = mag_obj.id cal_hx.calibration_person.email = '*****@*****.**' cal_hx.calibration_person.name = 'Zonge International' cal_hx.calibration_person.organization = 'Zonge International' cal_hx.calibration_person.organization_url = 'zonge.com' cal_hx.calibration_date = '2013-0gps_stamp_find = np.where(data == self._gps_flag_0)[0]5-04' cal_hx.units = 'mV/nT' m.add_calibration(cal_hx) m.close_mth5() ####------------------------------------------------------------------ #### Make xml file for science base
def setUp(self): self.calibration_obj = mth5.Calibration()