private ProductData.UTC getEndTime(final BinaryRecord sceneRec, final MetadataElement origProductMetadata, final String tagInSummary, final ProductData.UTC startTime) { ProductData.UTC time = getUTCScanStartTime(sceneRec, null); if (time.equalElems(AbstractMetadata.NO_METADATA_UTC)) { try { ProductData.UTC summaryTime = null; final ProductData.UTC centreTime = AbstractMetadata.parseUTC( workReportElem.getAttributeString(workRep.getName().trim()), dateFormat2); final double diff = centreTime.getMJD() - startTime.getMJD(); workReportTime = new ProductData.UTC(startTime.getMJD() + (diff * 2.0)); imgRecTime = ProductData.UTC.parse(sb.toString(), dateFormat3); final double diff = centreTime.getMJD() - startTime.getMJD(); return new ProductData.UTC(startTime.getMJD() + (diff * 2.0)); } catch (Exception e) { time = AbstractMetadata.NO_METADATA_UTC;
for(int i=0; i < stackOverview.length; ++i) { double mstMJD = stackOverview[i].getMasterSlave()[0].getMasterMetadata().getMjd(); final String mstDate = dateFormat.format(new ProductData.UTC(mstMJD).getAsDate()); for(int j=0; j< stackOverview[i].getMasterSlave().length; ++j) { double slvMJD = stackOverview[i].getMasterSlave()[j].getSlaveMetadata().getMjd(); final String slvDate = dateFormat.format(new ProductData.UTC(slvMJD).getAsDate());
final Calendar startCal = sourceProduct.getStartTime().getAsCalendar(); final int year = startCal.get(Calendar.YEAR); final int month = startCal.get(Calendar.MONTH) + 1; final Date startDate = sourceProduct.getStartTime().getAsDate(); orbitFile = FindDorisOrbitFile(dorisReader, localPath, startDate, absOrbit); if (orbitFile == null) {
final DateFormat dateFormat = ProductData.UTC.createDateFormat("dd-MMM-yyyy_HH.mm"); final Date date = startTime.getAsDate(); final String dateString = dateFormat.format(date);
final DateFormat dateFormat = ProductData.UTC.createDateFormat("dd-MMM-yyyy_HH.mm"); final Date date = startTime.getAsDate(); final String dateString = dateFormat.format(date);
double azimuthSpacingTotal = 0; boolean commonMetadataRetrieved = false; final DateFormat sentinelDateFormat = ProductData.UTC.createDateFormat("yyyy-MM-dd_HH:mm:ss");
final double firstLineUTC = absRoot.getAttributeUTC(AbstractMetadata.first_line_time).getMJD(); final double lastLineUTC = absRoot.getAttributeUTC(AbstractMetadata.last_line_time).getMJD(); final double lineTimeInterval = absRoot.getAttributeDouble(AbstractMetadata.line_time_interval) / Constants.secondsInDay; // s to day
final MetadataElement absRoot = AbstractMetadata.getAbstractedMetadata(product); final double firstLineUTC = absRoot.getAttributeUTC(AbstractMetadata.first_line_time).getMJD(); final double lastLineUTC = absRoot.getAttributeUTC(AbstractMetadata.last_line_time).getMJD(); final double lineTimeInterval = (lastLineUTC - firstLineUTC) / (double) (sourceImageHeight - 1); OrbitStateVector[] orbitStateVectors;
final DateFormat sentinelDateFormat = ProductData.UTC.createDateFormat("yyyy-MM-dd_HH:mm:ss");
: "(" + entry.getFileSizeString() + ")"; final String dateString = dateFormat.format(entry.getFirstLineTime().getAsDate());
final coefList coef = new coefList(); segmentsArray.add(coef); coef.utcSeconds = ReaderUtils.getTime(elem, "zeroDopplerAzimuthTime", standardDateFormat).getMJD() * 24 * 3600; coef.grOrigin = elem.getElement("groundRangeOrigin").getAttributeDouble("groundRangeOrigin", 0); final double lineTimeInterval = absRoot.getAttributeDouble(AbstractMetadata.line_time_interval, 0); final ProductData.UTC startTime = absRoot.getAttributeUTC(AbstractMetadata.first_line_time, AbstractMetadata.NO_METADATA_UTC); final double startSeconds = startTime.getMJD() * 24 * 3600; final double pixelSpacing = absRoot.getAttributeDouble(AbstractMetadata.range_spacing, 0); final boolean isDescending = absRoot.getAttributeString(AbstractMetadata.PASS).equals("DESCENDING");
final coefList coef = new coefList(); segmentsArray.add(coef); coef.utcSeconds = ReaderUtils.getTime(elem, "zeroDopplerAzimuthTime", standardDateFormat).getMJD() * 24 * 3600; coef.grOrigin = elem.getElement("groundRangeOrigin").getAttributeDouble("groundRangeOrigin", 0); final double lineTimeInterval = absRoot.getAttributeDouble(AbstractMetadata.line_time_interval, 0); final ProductData.UTC startTime = absRoot.getAttributeUTC(AbstractMetadata.first_line_time, AbstractMetadata.NO_METADATA_UTC); final double startSeconds = startTime.getMJD() * 24 * 3600; final double pixelSpacing = absRoot.getAttributeDouble(AbstractMetadata.range_spacing, 0); final boolean isDescending = absRoot.getAttributeString(AbstractMetadata.PASS).equals("DESCENDING");
private ProductData.UTC getStartTime(final BinaryRecord sceneRec, final MetadataElement origProductMetadata, final String tagInSummary) { ProductData.UTC time = getUTCScanStartTime(sceneRec, null); if (time.equalElems(AbstractMetadata.NO_METADATA_UTC)) { try { ProductData.UTC summaryTime = null; imgRecTime = ProductData.UTC.parse(sb.toString(), dateFormat3);
final String t_azi1_UTC = element.getAttributeUTC(AbstractMetadata.first_line_time).toString(); this.mjd = element.getAttributeUTC(AbstractMetadata.first_line_time).getMJD(); this.tAzi1 = DateUtils.dateTimeToSecOfDay(t_azi1_UTC); this.lineTimeInterval = element.getAttributeDouble(AbstractMetadata.line_time_interval); final String t_azi_original = dopplersArray[0].time.toString(); this.tAzi_original = DateUtils.dateTimeToSecOfDay(t_azi_original); final double firstLineTimeInDays = element.getAttributeUTC(AbstractMetadata.first_line_time).getMJD(); final double firstLineTime = (firstLineTimeInDays - (int) firstLineTimeInDays) * 86400.0; final double lastLineTimeInDays = element.getAttributeUTC(AbstractMetadata.last_line_time).getMJD(); final double lastLineTime = (lastLineTimeInDays - (int) lastLineTimeInDays) * 86400.0; this.sceneCentreAzimuthTime = 0.5 * (firstLineTime + lastLineTime);
final coefList coef = new coefList(); segmentsArray.add(coef); coef.utcSeconds = ReaderUtils.getTime(elem, "zeroDopplerAzimuthTime", standardDateFormat).getMJD() * 24 * 3600; coef.grOrigin = elem.getElement("groundRangeOrigin").getAttributeDouble("groundRangeOrigin", 0); final double lineTimeInterval = absRoot.getAttributeDouble(AbstractMetadata.line_time_interval, 0); final ProductData.UTC startTime = absRoot.getAttributeUTC(AbstractMetadata.first_line_time, AbstractMetadata.NO_METADATA_UTC); final double startSeconds = startTime.getMJD() * 24 * 3600; final double pixelSpacing = absRoot.getAttributeDouble(AbstractMetadata.range_spacing, 0); final boolean isDescending = absRoot.getAttributeString(AbstractMetadata.PASS).equals("DESCENDING");
final int coreg = absRoot.getAttributeInt(AbstractMetadata.coregistered_stack, AbstractMetadata.NO_METADATA); text.append("Date: " + acqTime.format() + '\n'); text.append("Sample: " + sampleType + '\n');
this.azimuthWeightingWindow = resFile.parseStringValue("Weighting_azimuth"); this.mjd = resFile.parseDateTimeValue("First_pixel_azimuth_time \\(UTC\\)").getMJD();
final double utcTime = toUTC(utc).getMJD();
Calendar startDate = selections[0].getFirstLineTime().getAsCalendar(); startDate.add(Calendar.DAY_OF_MONTH, -daysMinus); Calendar endDate = selections[0].getFirstLineTime().getAsCalendar(); endDate.add(Calendar.DAY_OF_MONTH, daysPlus); dbQuery.setStartEndDate(startDate, endDate);
final double startMJD = sourceProduct.getStartTime().getMJD(); final Calendar startDate = sourceProduct.getStartTime().getAsCalendar(); final int year = startDate.get(Calendar.YEAR); final int month = startDate.get(Calendar.MONTH) + 1;