• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java HeaderCard类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中nom.tam.fits.HeaderCard的典型用法代码示例。如果您正苦于以下问题:Java HeaderCard类的具体用法?Java HeaderCard怎么用?Java HeaderCard使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



HeaderCard类属于nom.tam.fits包,在下文中一共展示了HeaderCard类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: editHeader

import nom.tam.fits.HeaderCard; //导入依赖的package包/类
@Override
public void editHeader(Header header) throws HeaderCardException {
    Cursor<String, HeaderCard> c = FitsToolkit.endOf(header);
    c.add(new HeaderCard("COMMENT", "<------ SOFIA Chopper Data ------>", false));
    if(!Double.isNaN(frequency)) c.add(new HeaderCard("CHPFREQ", frequency / Unit.Hz, "(Hz) Chop frequency."));
    if(!Double.isNaN(amplitude)) c.add(new HeaderCard("CHPAMP1", amplitude / Unit.arcsec, "(arcsec) Chop amplitude on sky."));
    if(!Double.isNaN(amplitude2)) c.add(new HeaderCard("CHPAMP2", amplitude2 / Unit.arcsec, "(arcsec) Second chop amplitude on sky."));
    if(!Double.isNaN(angle)) c.add(new HeaderCard("CHPANGLE", angle / Unit.deg, "(deg) Chop angle on sky."));
    if(!Double.isNaN(tip)) c.add(new HeaderCard("CHPTIP", tip / Unit.arcsec, "(arcsec) Chopper tip on sky."));
    if(!Double.isNaN(tilt)) c.add(new HeaderCard("CHPTILT", tilt / Unit.arcsec, "(arcsec) Chop tilt on sky."));
    if(profileType != null) c.add(new HeaderCard("CHPPROF", profileType, "Chop profile from MCCS."));
    if(symmetryType != null) c.add(new HeaderCard("CHPSYM", symmetryType, "Chop symmetry mode."));
    if(coordinateSystem != null) c.add(new HeaderCard("CHPCRSYS", coordinateSystem, "Chop coordinate system."));
    if(signalSource != null) c.add(new HeaderCard("CHPSRC", signalSource, "Source of chopper signal."));
    if(driveMode != null) c.add(new HeaderCard("CHPACDC", driveMode, "Analog or Digital drive signal."));
    if(waveFunction != null) c.add(new HeaderCard("CHPFUNC", waveFunction, "Chopper wave function."));
    if(!Double.isNaN(settlingTime)) c.add(new HeaderCard("CHPSETL", settlingTime / Unit.ms, "(ms) Chopper settling time."));
    if(!Double.isNaN(phase)) c.add(new HeaderCard("CHPPHASE", phase / Unit.ms, "(ms) Chop phase."));
}
 
开发者ID:attipaci,项目名称:crush,代码行数:20,代码来源:SofiaChopperData.java


示例2: editHeader

import nom.tam.fits.HeaderCard; //导入依赖的package包/类
@Override
public void editHeader(Header header) throws HeaderCardException {
    Cursor<String, HeaderCard> c = FitsToolkit.endOf(header);
    
    c.add(new HeaderCard("COMMENT", "<------ SOFIA Processing Information ------>", false));
    int level = 0;
    if(processLevel != null) if(processLevel.toUpperCase().startsWith("LEVEL_")) {
        try { level = Integer.parseInt(processLevel.substring(6)); }
        catch(NumberFormatException e) {}
    }

    if(processLevel != null) c.add(new HeaderCard("PROCSTAT", processLevel, getComment(level)));
    if(headerStatus != null) c.add(new HeaderCard("HEADSTAT", headerStatus, "Status of header key/value pairs."));
    if(softwareName != null) c.add(new HeaderCard("PIPELINE", softwareName, "Software that produced scan file."));
    if(softwareFullVersion != null) c.add(new HeaderCard("PIPEVERS", softwareFullVersion, "Full version info of software."));
    if(productType != null) c.add(new HeaderCard("PRODTYPE", productType, "Prodcu type produced by software."));
    if(revision != null) c.add(new HeaderCard("FILEREV", revision, "File revision identifier."));
    if(quality != null) c.add(new HeaderCard("DATAQUAL", quality, "Data quality."));
    if(nSpectra >= 0) c.add(new HeaderCard("N_SPEC", nSpectra, "Number of spectra included."));
}
 
开发者ID:attipaci,项目名称:crush,代码行数:21,代码来源:SofiaProcessingData.java


示例3: editHeader

import nom.tam.fits.HeaderCard; //导入依赖的package包/类
@Override
public void editHeader(Header header) throws HeaderCardException {
    Cursor<String, HeaderCard> c = FitsToolkit.endOf(header);
	c.add(new HeaderCard("COMMENT", "<------ SOFIA Instrument Data ------>", false));
	if(instrumentName != null) c.add(new HeaderCard("INSTRUME", instrumentName, "Name of SOFIA instrument."));
	if(dataType != null) c.add(new HeaderCard("DATATYPE", dataType, "Data type."));
	if(instrumentConfig != null) c.add(new HeaderCard("INSTCFG", instrumentConfig, "Instrument configuration."));
	if(instrumentMode != null) c.add(new HeaderCard("INSTMODE", instrumentMode, "Instrument observing mode."));
	if(mccsMode != null) c.add(new HeaderCard("MCCSMODE", instrumentMode, "MCCS mode."));
	if(hardwareVersion != null) c.add(new HeaderCard("INSTHWV", hardwareVersion, "Instrument hardware version."));
	if(softwareVersion != null) c.add(new HeaderCard("INSTSWV", softwareVersion, "Instrument software version."));
	if(!Double.isNaN(exposureTime)) c.add(new HeaderCard("EXPTIME", exposureTime / Unit.s, "(s) total effective on-source time."));
	if(spectralElement1 != null) c.add(new HeaderCard("SPECTEL1", spectralElement1, "First spectral element."));
	if(spectralElement2 != null) c.add(new HeaderCard("SPECTEL2", spectralElement2, "Second spectral element."));
	if(slitID != null) c.add(new HeaderCard("SLIT", slitID, "Slit identifier."));
	if(!Double.isNaN(wavelength)) c.add(new HeaderCard("WAVECENT", wavelength / Unit.um, "(um) wavelength at passband center."));
	if(!Double.isNaN(bandwidthMicrons)) c.add(new HeaderCard("BANDWDTH", bandwidthMicrons, "(um) total bandwith."));
	if(!Double.isNaN(spectralResolution)) c.add(new HeaderCard("RESOLUN", spectralResolution, "Spectral resolution."));
	if(detectorChannel != null) c.add(new HeaderCard("DETCHAN", detectorChannel, "Detector channel ID."));
	if(!Double.isNaN(totalIntegrationTime)) c.add(new HeaderCard("TOTINT", totalIntegrationTime / Unit.s, "(s) Total integration time."));
}
 
开发者ID:attipaci,项目名称:crush,代码行数:22,代码来源:SofiaInstrumentData.java


示例4: editHeader

import nom.tam.fits.HeaderCard; //导入依赖的package包/类
@Override
public void editHeader(Header header) throws HeaderCardException {
    Cursor<String, HeaderCard> c = FitsToolkit.endOf(header);
    c.add(new HeaderCard("COMMENT", "<------ SOFIA Observation Data ------>", false));
    if(sourceName != null) c.add(new HeaderCard("OBJECT", sourceName, "Object catalog name."));
    if(!Double.isNaN(startMJD)) c.add(new HeaderCard("MJD-OBS", startMJD, "MJD at the start of observation."));
    if(!Double.isNaN(startLST)) c.add(new HeaderCard("LST-OBS", Util.HMS(startLST), "LST at the start of observation"));
    if(dataSource != null) c.add(new HeaderCard("DATASRC", dataSource, "data source category."));
    if(obsType != null) c.add(new HeaderCard("OBSTYPE", obsType, "type of observation."));
    if(errorStatus != null) c.add(new HeaderCard("OBSSTAT", errorStatus, "Observation error status."));
    if(sourceType != null) c.add(new HeaderCard("SRCTYPE", sourceType, "AOR source type."));
    if(dictionaryVersion != null) c.add(new HeaderCard("KWDICT", dictionaryVersion, "SOFIA keword dictionary version."));
    if(obsID != null) c.add(new HeaderCard("OBS_ID", obsID, "Sofia observation ID."));
    if(serialNo >= 0) c.add(new HeaderCard("OBSERNO", serialNo, "Observation serial number."));
    if(imageID != null) c.add(new HeaderCard("IMAGEID", imageID, "Image ID within an observation."));
    if(aotID != null) c.add(new HeaderCard("AOT_ID", aotID, "unique Astronomical Observation Template ID."));
    if(aorID != null) c.add(new HeaderCard("AOR_ID", aorID, "unique Astronomical Observation Request ID."));
    if(fileGroupID != null) c.add(new HeaderCard("FILEGPID", fileGroupID, "User ID for grouping files together."));
}
 
开发者ID:attipaci,项目名称:crush,代码行数:20,代码来源:SofiaObservationData.java


示例5: updateMultiScanKeys

import nom.tam.fits.HeaderCard; //导入依赖的package包/类
public void updateMultiScanKeys(List<Scan<?,?>> scans, Header header) throws HeaderCardException {
    Cursor<String, HeaderCard> c = FitsToolkit.endOf(header);
    
    // Add mandatory TRACERR entry...
    boolean hasTrackingError = false;
    for(Scan<?,?> scan : scans) hasTrackingError |= ((SofiaScan<?,?>) scan).telescope.hasTrackingError;      
    c.add(new HeaderCard("TRACERR", hasTrackingError, "Whether any input data had tracking errors."));

    // EXPTIME
    double expTime = getTotalExposureTime(scans);
    if(!Double.isNaN(expTime)) c.add(new HeaderCard("EXPTIME", expTime, "(s) Total effective on-source time."));

    // AOR_ID, ASSC_AOR
    addAssociatedAORIDs(scans, header);

    // TELEL, TELXEL, TELLOS to earliest input.
    //getEarliestScan(scans).telescope.updateElevationKeys(header);

    // TSC-STAT, FBS-STAT from latest input
    //getLatestScan(scans).telescope.updateStatusKeys(header);

}
 
开发者ID:attipaci,项目名称:crush,代码行数:23,代码来源:SofiaCamera.java


示例6: addHistory

import nom.tam.fits.HeaderCard; //导入依赖的package包/类
@Override
public void addHistory(Header header, List<Scan<?,?>> scans) throws HeaderCardException {	
    super.addHistory(header, scans);			

    Cursor<String, HeaderCard> c = FitsToolkit.endOf(header);
    
    // Add auxiliary file information
    try { FitsToolkit.addHistory(c, " PWD: " + new File(".").getCanonicalPath()); }
    catch(Exception e) { warning("Could not determine PWD for HISTORY entry..."); }

    for(int i=0; i<history.size(); i++) FitsToolkit.addHistory(c, " " + history.get(i));

    // Add obs-IDs for all input scans...
    if(scans != null) for(int i=0; i<scans.size(); i++)
        FitsToolkit.addHistory(c, " OBS-ID[" + (i+1) + "]: " + scans.get(i).getID());	
}
 
开发者ID:attipaci,项目名称:crush,代码行数:17,代码来源:SofiaCamera.java


示例7: editHeader

import nom.tam.fits.HeaderCard; //导入依赖的package包/类
@Override
public void editHeader(Header header) throws HeaderCardException {
    Cursor<String, HeaderCard> c = FitsToolkit.endOf(header);
    c.add(new HeaderCard("COMMENT", "<------ SOFIA Nodding Data ------>", false));
    if(cycles != SofiaHeader.UNKNOWN_INT_VALUE) c.add(new HeaderCard("NODN", cycles, "Number of nod cycles."));
    if(!Double.isNaN(amplitude)) c.add(new HeaderCard("NODAMP", amplitude / Unit.arcsec, "(arcsec) Nod amplitude on sky."));
    if(!Double.isNaN(angle)) c.add(new HeaderCard("NODANGLE", angle / Unit.deg, "(deg) Nod angle on sky."));
    if(!Double.isNaN(dwellTime)) c.add(new HeaderCard("NODTIME", dwellTime / Unit.s, "(s) Total dwell time per nod position."));
    if(!Double.isNaN(settlingTime)) c.add(new HeaderCard("NODSETL", settlingTime / Unit.s, "(s) Nod settling time."));
    if(pattern != null) c.add(new HeaderCard("NODPATT", pattern, "Pointing sequence for one nod cycle."));
    if(style != null) c.add(new HeaderCard("NODSTYLE", style, "Nodding style."));
    if(coordinateSystem != null) c.add(new HeaderCard("NODCRSYS", coordinateSystem, "Nodding coordinate system."));
    if(offset != null) {
        c.add(new HeaderCard("NODPOSX", offset.x() / Unit.deg, "(deg) nod position x in nod coords."));
        c.add(new HeaderCard("NODPOSY", offset.y() / Unit.deg, "(deg) nod position y in nod coords."));
    }
    if(beamPosition != null) c.add(new HeaderCard("NODBEAM", beamPosition, "Nod beam position."));
}
 
开发者ID:attipaci,项目名称:crush,代码行数:19,代码来源:SofiaNoddingData.java


示例8: cloneHeader

import nom.tam.fits.HeaderCard; //导入依赖的package包/类
static Header cloneHeader(Header header) {
    // first collect cards from old header
    Cursor iter = header.iterator();
    String cards[] = new String[header.getNumberOfCards()];
    int i = 0;
    while (iter.hasNext()) {
        HeaderCard card = (HeaderCard) iter.next();
        cards[i] = card.toString();
        i++;
    }

    Header clonedHeader = new Header(cards);

    clonedHeader.resetOriginalSize();
    return clonedHeader;
}
 
开发者ID:lsst,项目名称:firefly,代码行数:17,代码来源:FitsRead.java


示例9: copyOldKeywords

import nom.tam.fits.HeaderCard; //导入依赖的package包/类
private void copyOldKeywords(Cursor oldPointer, Cursor newPointer) {


        newPointer.add(new HeaderCard("COMMENT"));
        newPointer.add(new HeaderCard("COMMENT   Header info copied from original image"));
        newPointer.add(new HeaderCard("COMMENT"));

        while (oldPointer.hasNext()) {
            HeaderCard card = (HeaderCard) oldPointer.next();
            String key = card.getKey();
            if (key.equals("END")) {
                break;
            }

            if (!reservedKeys.contains(key)) {
                newPointer.add(card);
            }
        }
    }
 
开发者ID:jankotek,项目名称:asterope,代码行数:20,代码来源:TiledImageHDU.java


示例10: setHeaderCursor

import nom.tam.fits.HeaderCard; //导入依赖的package包/类
/**
 * Set the header to the end of the keywords
 **/
private void setHeaderCursor (Header header)
{
	
	//TODO This is a hack to push the header to the end. The front
	// of the header must be the basic header for the module to validate
	// correctly. Go to the of data. Changes to the fits module may
	// render this code useless or even incorrect.
	Cursor cursor = header.iterator();
	String key = "";
	while (cursor.hasNext())
	{
		key = ((HeaderCard)cursor.next()).getKey();
		// stop right after the field to try and keep column cards together
		if (key.equalsIgnoreCase("TFIELDS") && cursor.hasNext())
		{
			key = ((HeaderCard)cursor.next()).getKey();
			break;
		}
	}
	header.findCard (key);
	
}
 
开发者ID:ChandraCXC,项目名称:sedlib,代码行数:26,代码来源:FitsSerializer.java


示例11: editScanHeader

import nom.tam.fits.HeaderCard; //导入依赖的package包/类
@Override
public void editScanHeader(Header header) throws HeaderCardException {	
	super.editScanHeader(header);
	Cursor<String, HeaderCard> c = FitsToolkit.endOf(header);
	c.add(new HeaderCard("MJD", iMJD, "Modified Julian Day."));
	c.add(new HeaderCard("FAZO", fixedOffset.x() / Unit.arcsec, "Fixed AZ pointing offset."));
	c.add(new HeaderCard("FZAO", -fixedOffset.y() / Unit.arcsec, "Fixed ZA pointing offset."));
	c.add(new HeaderCard("ELGAIN", elevationResponse, "Relative response at elevation."));
	c.add(new HeaderCard("TEMPERAT", ambientT / Unit.K, "Ambient temperature (K)."));
	c.add(new HeaderCard("PRESSURE", pressure / Unit.mbar, "Atmospheric pressure (mbar)."));
	c.add(new HeaderCard("HUMIDITY", humidity, "Humidity (%)."));
}
 
开发者ID:attipaci,项目名称:crush,代码行数:13,代码来源:CSOScan.java


示例12: editHeader

import nom.tam.fits.HeaderCard; //导入依赖的package包/类
@Override
public void editHeader(Header header) throws HeaderCardException {
    Cursor<String, HeaderCard> c = FitsToolkit.endOf(header);
    c.add(new HeaderCard("COMMENT", "<------ SOFIA Scanning Data ------>", false));
    if(!Double.isNaN(RA.start)) c.add(new HeaderCard("SCNRA0", RA.start / Unit.hourAngle, "(hour) Initial scan RA."));
    if(!Double.isNaN(DEC.start)) c.add(new HeaderCard("SCNDEC0", DEC.start / Unit.deg, "(deg) Initial scan DEC."));
    if(!Double.isNaN(RA.end)) c.add(new HeaderCard("SCNRAF", RA.start / Unit.hourAngle, "(hour) Final scan RA."));
    if(!Double.isNaN(DEC.end)) c.add(new HeaderCard("SCNDECF", DEC.start / Unit.deg, "Final scan DEC."));
    if(!Double.isNaN(speed)) c.add(new HeaderCard("SCNRATE", speed / (Unit.arcsec / Unit.s), "(arcsec/s) Commanded slew rate on sky."));
    if(!Double.isNaN(angle)) c.add(new HeaderCard("SCNDIR", angle / Unit.deg, "(deg) Scan direction on sky."));	
}
 
开发者ID:attipaci,项目名称:crush,代码行数:12,代码来源:SofiaScanningData.java


示例13: editHeader

import nom.tam.fits.HeaderCard; //导入依赖的package包/类
@Override
public void editHeader(Header header) throws HeaderCardException {
    Cursor<String, HeaderCard> c = FitsToolkit.endOf(header);
    
    c.add(new HeaderCard("COMMENT", "<------ SOFIA Array Data ------>", false));
    if(detectorName != null) c.add(new HeaderCard("DETECTOR", detectorName, "Detector name"));
    if(detectorSizeString != null) c.add(new HeaderCard("DETSIZE", detectorSizeString, "Detector size"));
    if(!Double.isNaN(pixelScale)) c.add(new HeaderCard("PIXSCAL", pixelScale / Unit.arcsec, "(arcsec) Pixel scale on sky."));
    if(subarrays > 0) {
        c.add(new HeaderCard("SUBARRNO", subarrays, "Number of subarrays."));
        DecimalFormat d2 = new DecimalFormat("00");
        for(int i=0; i<subarrays; i++) if(subarraySize[i] != null)
            c.add(new HeaderCard("SUBARR" + d2.format(i+1), subarraySize[i], "Subarray " + (i+1) + " location and size."));
    }

    if(!Double.isNaN(saturationValue)) c.add(new HeaderCard("SATURATE", saturationValue, "Detector saturation level."));
    if(!Double.isNaN(detectorAngle)) c.add(new HeaderCard("DET_ANGL", detectorAngle, "(deg) Detector angle wrt North."));
    if(averagedFrames > 0) c.add(new HeaderCard("COADDS", averagedFrames, "Number of raw frames per sample."));

    if(!Double.isNaN(boresightIndex.x())) c.add(new HeaderCard("SIBS_X", boresightIndex.x(), "(pixel) boresight pixel x."));
    else c.add(new HeaderCard("SIBS_X", SofiaHeader.UNKNOWN_FLOAT_VALUE, "Undefined value."));

    if(!Double.isNaN(boresightIndex.y())) c.add(new HeaderCard("SIBS_Y", boresightIndex.y(), "(pixel) boresight pixel y."));
    else c.add(new HeaderCard("SIBS_Y", SofiaHeader.UNKNOWN_FLOAT_VALUE, "Undefined value."));

    if(grid != null) grid.editHeader(header); // TODO...
}
 
开发者ID:attipaci,项目名称:crush,代码行数:28,代码来源:SofiaArrayData.java


示例14: editHeader

import nom.tam.fits.HeaderCard; //导入依赖的package包/类
@Override
public void editHeader(Header header) throws HeaderCardException {
    Cursor<String, HeaderCard> c = FitsToolkit.endOf(header);
    c.add(new HeaderCard("COMMENT", "<------ SOFIA Aircraft Data ------>", false));
    if(!Double.isNaN(longitude.start)) c.add(new HeaderCard("LON_STA", longitude.start / Unit.deg, "(deg) Longitude at start of observation."));
    if(!Double.isNaN(longitude.end)) c.add(new HeaderCard("LON_END", longitude.end / Unit.deg, "(deg) Longitude at end of observation."));
    if(!Double.isNaN(latitude.start)) c.add(new HeaderCard("LAT_STA", latitude.start / Unit.deg, "(deg) Latitude at start of observation."));
    if(!Double.isNaN(latitude.end)) c.add(new HeaderCard("LAT_END", latitude.end / Unit.deg, "(deg) Latitude at end of observation."));
    if(!Double.isNaN(altitude.start)) c.add(new HeaderCard("ALTI_STA", altitude.start / Unit.ft, "(ft) Altitude at start of observation."));
    if(!Double.isNaN(altitude.end)) c.add(new HeaderCard("ALTI_END", altitude.end / Unit.ft, "(ft) Altitude at end of observation."));
    if(!Double.isNaN(airSpeed)) c.add(new HeaderCard("AIRSPEED", airSpeed / Unit.kn, "(kn) Airspeed at start of observation."));
    if(!Double.isNaN(groundSpeed)) c.add(new HeaderCard("GRDSPEED", groundSpeed / Unit.kn, "(kn) Ground speed at start of observation."));
    if(!Double.isNaN(heading)) c.add(new HeaderCard("HEADING", heading / Unit.deg, "(deg) True aircraft heading at start of observation."));
    if(!Double.isNaN(trackAngle)) c.add(new HeaderCard("TRACKANG", trackAngle / Unit.deg, "(deg) Aircraft tracking angle at start of observation."));	
}
 
开发者ID:attipaci,项目名称:crush,代码行数:16,代码来源:SofiaAircraftData.java


示例15: editHeader

import nom.tam.fits.HeaderCard; //导入依赖的package包/类
@Override
public void editHeader(Header header) throws HeaderCardException {
    Cursor<String, HeaderCard> c = FitsToolkit.endOf(header);
    c.add(new HeaderCard("COMMENT", "<------ SOFIA Environment Data ------>", false));
    if(!Double.isNaN(pwv.start)) c.add(new HeaderCard("WVZ_STA", pwv.start / Unit.um, "(um) Precipitable Water Vapor at start."));
    if(!Double.isNaN(pwv.end)) c.add(new HeaderCard("WVZ_END", pwv.start / Unit.um, "(um) Precipitable Water Vapor at start."));
    if(!Double.isNaN(pwvLOS)) c.add(new HeaderCard("WVTALOS", pwvLOS / Unit.um, "(um) PWV at TA line-of-sight."));
    if(!Double.isNaN(ambientT)) c.add(new HeaderCard("TEMP_OUT", ambientT, "(C) Ambient air temperature."));
    if(!Double.isNaN(primaryT1)) c.add(new HeaderCard("TEMPPRI1", primaryT1, "(C) Primary mirror temperature #1."));
    if(!Double.isNaN(primaryT2)) c.add(new HeaderCard("TEMPPRI2", primaryT2, "(C) Primary mirror temperature #2."));
    if(!Double.isNaN(primaryT3)) c.add(new HeaderCard("TEMPPRI3", primaryT3, "(C) Primary mirror temperature #3."));
    if(!Double.isNaN(secondaryT)) c.add(new HeaderCard("TEMPSEC1", secondaryT, "(C) Secondary mirror temperature."));
}
 
开发者ID:attipaci,项目名称:crush,代码行数:14,代码来源:SofiaEnvironmentData.java


示例16: editImageHeader

import nom.tam.fits.HeaderCard; //导入依赖的package包/类
@Override
public void editImageHeader(List<Scan<?,?>> scans, Header header) throws HeaderCardException {
    super.editImageHeader(scans, header);	

    int level = hasOption("calibrated") ? 3 : 2;
    // TODO if multiple mission IDs, then Level 4...

    Cursor<String, HeaderCard> c = FitsToolkit.endOf(header);
    
    // Add SOFIA processing keys
    c.add(new HeaderCard("COMMENT", "<------ SOFIA Data Processing Keys ------>", false));
    c.add(new HeaderCard("PROCSTAT", "LEVEL_" + level, SofiaProcessingData.getComment(level)));
    c.add(new HeaderCard("HEADSTAT", "UNKNOWN", "See original header values in the scan HDUs."));
    c.add(new HeaderCard("PIPELINE", "crush v" + CRUSH.getVersion(), "Software that produced this file."));
    c.add(new HeaderCard("PIPEVERS", "crush v" + CRUSH.getFullVersion(), "Full software version information.")); 
    c.add(new HeaderCard("PRODTYPE", "CRUSH-IMAGE", "Type of product produced by the software."));
    c.add(new HeaderCard("DATAQUAL", getQualityString(scans), "Lowest quality input scan."));

    // Add required keys and prior history
    c.add(new HeaderCard("COMMENT", "<------ SOFIA Additional Required Primary Header Keys ------>", false));

    // TODO workaround for updates...
    // -----------------------------------------------------------------------------------------------------
    Header required = new Header();
    ((SofiaScan<?,?>) scans.get(0)).addRequiredPrimaryHeaderKeysTo(required);
    updateMultiScanKeys(scans, required);

    Cursor<String, HeaderCard> from = required.iterator();
    while(from.hasNext()) c.add(from.next());
    // -----------------------------------------------------------------------------------------------------	
}
 
开发者ID:attipaci,项目名称:crush,代码行数:32,代码来源:SofiaCamera.java


示例17: addAssociatedAORIDs

import nom.tam.fits.HeaderCard; //导入依赖的package包/类
public void addAssociatedAORIDs(List<Scan<?,?>> scans, Header header) throws HeaderCardException {
    ArrayList<String> aorIDs = getAORIDs(scans);
    if(aorIDs.size() < 2) return;

    StringBuffer buf = new StringBuffer();
    buf.append(aorIDs.get(1));

    for(int i=2; i<aorIDs.size(); i++) {
        buf.append(", ");
        buf.append(aorIDs.get(i));
    }

    Cursor<String, HeaderCard> c = FitsToolkit.endOf(header);
    c.add(new HeaderCard("ASSC_AOR", new String(buf), "Associated AOR IDs."));
}
 
开发者ID:attipaci,项目名称:crush,代码行数:16,代码来源:SofiaCamera.java


示例18: editHeader

import nom.tam.fits.HeaderCard; //导入依赖的package包/类
@Override
public void editHeader(Header header) throws HeaderCardException {
    Cursor<String, HeaderCard> c = FitsToolkit.endOf(header);
    c.add(new HeaderCard("COMMENT", "<------ SOFIA Origination Data ------>", false));
    if(organization != null) c.add(new HeaderCard("ORIGIN", organization, "Organization where data originated."));
    if(observer != null) c.add(new HeaderCard("OBSERVER", observer, "Name(s) of observer(s)."));
    if(creator != null) c.add(new HeaderCard("CREATOR", creator, "Software / Task that created the raw data."));
    if(operator != null) c.add(new HeaderCard("OPERATOR", operator, "Name(s) of operator(s)."));
    if(fileName != null) FitsToolkit.addLongKey(c, "FILENAME", fileName, "Original file name.");
    if(observatory != null) c.add(new HeaderCard("OBSERVAT", observatory, "Observatory name."));
}
 
开发者ID:attipaci,项目名称:crush,代码行数:12,代码来源:SofiaOriginationData.java


示例19: editHeader

import nom.tam.fits.HeaderCard; //导入依赖的package包/类
@Override
public void editHeader(Header header) throws HeaderCardException {
    Cursor<String, HeaderCard> c = FitsToolkit.endOf(header);
    c.add(new HeaderCard("COMMENT", "<------ SOFIA Dithering Data ------>", false));
    if(coordinateSystem != null) c.add(new HeaderCard("DTHCRSYS", coordinateSystem, "Dither coordinate system."));
    if(offset != null) {
        c.add(new HeaderCard("DTHXOFF", offset.x() / Unit.arcsec, "(arcsec) Dither X offset."));
        c.add(new HeaderCard("DTHYOFF", offset.y() / Unit.arcsec, "(arcsec) Dither Y offset."));
    }
    if(patternShape != null) c.add(new HeaderCard("DTHPATT", patternShape, "Approximate shape of dither pattern."));
    if(positions != SofiaHeader.UNKNOWN_INT_VALUE) c.add(new HeaderCard("DTHNPOS", positions, "Number of dither positions."));
    c.add(new HeaderCard("DTHINDEX", index, "Dither position index."));
    if(!Double.isNaN(spacing)) c.add(new HeaderCard("DTHOFFS", spacing / Unit.arcsec, "(arcsec) Dither spacing."));
}
 
开发者ID:attipaci,项目名称:crush,代码行数:15,代码来源:SofiaDitheringData.java


示例20: editHeader

import nom.tam.fits.HeaderCard; //导入依赖的package包/类
@Override
public void editHeader(Header header) throws HeaderCardException {
    Cursor<String, HeaderCard> c = FitsToolkit.endOf(header);
    c.add(new HeaderCard("COMMENT", "<------ SOFIA Mapping Data ------>", false));
    if(coordinateSystem != null) c.add(new HeaderCard("MAPCRSYS", coordinateSystem, "Mapping coordinate system."));
    if(pattern != null) c.add(new HeaderCard("MAPPATT", pattern, "Mapping pattern."));
    if(sizeX != SofiaHeader.UNKNOWN_INT_VALUE) c.add(new HeaderCard("MAPNXPOS", sizeX, "Number of map positions in X"));
    if(sizeY != SofiaHeader.UNKNOWN_INT_VALUE) c.add(new HeaderCard("MAPNYPOS", sizeY, "Number of map positions in Y"));
    if(Double.isNaN(step.x())) c.add(new HeaderCard("MAPINTX", step.x() / Unit.arcmin, "(arcmin) Map step interval in X"));
    if(Double.isNaN(step.y())) c.add(new HeaderCard("MAPINTY", step.y() / Unit.arcmin, "(arcmin) Map step interval in Y"));
}
 
开发者ID:attipaci,项目名称:crush,代码行数:12,代码来源:SofiaMappingData.java



注:本文中的nom.tam.fits.HeaderCard类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Repository类代码示例发布时间:2022-05-23
下一篇:
Java AndroidExcludedRefs类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap