def read(stage, dset): """Read VLBI data Args: dset (Dataset): Dataset """ obs.get(dset) log.info(f"Parsed {dset.num_obs} observations") dset.write_as(stage=stage, label=0)
def read(stage, dset): """Read the SLR data Args: stage: Name of current stage dset: Dataset containing the data """ sat_name = dset.vars["sat_name"] obs.get(dset, sat_name=sat_name) log.info(f"Parsed {dset.num_obs} observations") dset.write_as(stage=stage, label=0)
def read(rundate, session, prev_stage, stage): """Read VLBI data Args: rundate (Datetime): The model run date. session (String): Name of session. prev_stage (String): Name of previous stage. stage (String): Name of current stage. Returns: Bool: True if data are available for the session, False otherwise """ try: dset = obs.get(rundate, TECH, session) except exceptions.MissingDataError: return False dset.write_as(rundate=rundate, tech=TECH, stage=stage, dataset_name=session, dataset_id=0) log.info(f"Parsed {dset.num_obs} observations") return True