internal static S1Sources Get(this SentinelSource source) { return(new S1Sources { idrow = source.IdRow, nburst = source.BurstNumber, dttime = source.DateTime, dto = source.Dto, extend = source.Extend, soper = source.Operator, norbit = source.OrbitNumber, idscene = source.SceneId, }); }
public SentinelSource AddSentinelSource(SentinelSource source) { using (var accessor = new DemPreparationDataAccess()) { var newSource = accessor.AddSource(source.Get()); if (newSource == null) { log.ErrorEx($"There was an error on adding Sentinel source {source.SceneId}"); return(null); } return(newSource.Get()); } }