本文整理汇总了Java中nom.tam.fits.Header类的典型用法代码示例。如果您正苦于以下问题:Java Header类的具体用法?Java Header怎么用?Java Header使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Header类属于nom.tam.fits包,在下文中一共展示了Header类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: editHeader
import nom.tam.fits.Header; //导入依赖的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.Header; //导入依赖的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.Header; //导入依赖的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.Header; //导入依赖的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.Header; //导入依赖的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.Header; //导入依赖的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.Header; //导入依赖的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: parseHeader
import nom.tam.fits.Header; //导入依赖的package包/类
@Override
public void parseHeader(Header header) throws Exception {
if(header.containsKey("INSTRUME")) {
instrument = Instrument.forName(header.getStringValue("INSTRUME"));
if(instrument == null) instrument = new GenericInstrument(header.getStringValue("INSTRUME"));
}
else instrument = new GenericInstrument("unknown");
if(instrument instanceof GenericInstrument) {
GenericInstrument generic = (GenericInstrument) instrument;
if(header.containsKey("TELESCOP")) generic.setTelescopeName(header.getStringValue("TELESCOP"));
else generic.setTelescopeName("unknown");
}
if(instrument.getOptions() == null) instrument.setOptions(new Configurator());
instrument.parseImageHeader(header);
}
开发者ID:attipaci,项目名称:crush,代码行数:21,代码来源:SourceModel.java
示例9: testGetPositionAxis
import nom.tam.fits.Header; //导入依赖的package包/类
@Test
public void testGetPositionAxis() throws Exception
{
Integer naxis = 5;
FitsMapping mapping = new FitsMapping(config, null, null);
mapping.header = new Header();
mapping.header.addValue("CTYPE1", "RA", null);
mapping.header.addValue("CTYPE2", "DEC", null);
mapping.header.addValue("CTYPE3", "WAVE", null);
mapping.header.addValue("CTYPE4", "STOKES", null);
mapping.header.addValue("CTYPE5", "TIME", null);
Integer[] axes = Wcs.getPositionAxis(naxis, mapping);
junit.framework.Assert.assertNotNull(axes);
junit.framework.Assert.assertNotNull(axes[0]);
junit.framework.Assert.assertNotNull(axes[1]);
junit.framework.Assert.assertEquals(1, axes[0], 0.0);
junit.framework.Assert.assertEquals(2, axes[1], 0.0);
}
开发者ID:opencadc,项目名称:caom2,代码行数:21,代码来源:WcsTest.java
示例10: testGetEnergyAxis
import nom.tam.fits.Header; //导入依赖的package包/类
@Test
public void testGetEnergyAxis() throws Exception
{
Integer naxis = 5;
FitsMapping mapping = new FitsMapping(config, null, null);
mapping.header = new Header();
mapping.header.addValue("CTYPE1", "RA", null);
mapping.header.addValue("CTYPE2", "DEC", null);
mapping.header.addValue("CTYPE3", "WAVE", null);
mapping.header.addValue("CTYPE4", "STOKES", null);
mapping.header.addValue("CTYPE5", "TIME", null);
Integer axis = Wcs.getEnergyAxis(naxis, mapping);
junit.framework.Assert.assertNotNull(axis);
junit.framework.Assert.assertEquals(3, axis, 0.0);
}
开发者ID:opencadc,项目名称:caom2,代码行数:18,代码来源:WcsTest.java
示例11: testGetPolarizationAxis
import nom.tam.fits.Header; //导入依赖的package包/类
@Test
public void testGetPolarizationAxis() throws Exception
{
Integer naxis = 5;
FitsMapping mapping = new FitsMapping(config, null, null);
mapping.header = new Header();
mapping.header.addValue("CTYPE1", "RA", null);
mapping.header.addValue("CTYPE2", "DEC", null);
mapping.header.addValue("CTYPE3", "WAVE", null);
mapping.header.addValue("CTYPE4", "STOKES", null);
mapping.header.addValue("CTYPE5", "TIME", null);
Integer axis = Wcs.getPolarizationAxis(naxis, mapping);
junit.framework.Assert.assertNotNull(axis);
junit.framework.Assert.assertEquals(4, axis, 0.0);
}
开发者ID:opencadc,项目名称:caom2,代码行数:18,代码来源:WcsTest.java
示例12: convertIpacToFITS
import nom.tam.fits.Header; //导入依赖的package包/类
/**
* Convert an Ipac table file on disk to a FITS binary table file on disk
* @param Ipac_filename input filename
* @param FITS_filename output_filename
*/
public void convertIpacToFITS(String Ipac_filename, String FITS_filename)
throws FitsException, IOException, IpacTableException
{
DataGroup data_group = null;
File file = new File(Ipac_filename);
data_group = IpacTableReader.readIpacTable(file, null);
Fits f = convertToFITS(data_group);
if (debug)
{
BinaryTableHDU bhdu = (BinaryTableHDU) f.getHDU(1);
Header header = bhdu.getHeader();
header.dumpHeader(System.out);
}
BufferedFile bf = new BufferedFile(FITS_filename, "rw");
f.write(bf);
bf.flush();
bf.close();
}
开发者ID:lsst,项目名称:firefly,代码行数:29,代码来源:IpacTableToFITS.java
示例13: do_crop
import nom.tam.fits.Header; //导入依赖的package包/类
/**
* Crop an image directly from a file on disk, given world coordinates
* @param fits Fits object for file on disk
* @param wpt WorldPt of center of desired crop box
* @param radius Radius in degrees of desired area
* @return Fits object with cropped image
*/
static public Fits do_crop(Fits fits, WorldPt wpt, double radius)
throws FitsException, IOException, ProjectionException
{
ImageHDU h = (ImageHDU) fits.readHDU();
Header old_header = h.getHeader();
ImageHeader temp_hdr = new ImageHeader(old_header);
CoordinateSys in_coordinate_sys = CoordinateSys.makeCoordinateSys(
temp_hdr.getJsys(), temp_hdr.file_equinox);
Projection in_proj = temp_hdr.createProjection(in_coordinate_sys);
ProjectionPt ipt = in_proj.getImageCoords(wpt.getLon(), wpt.getLat());
double x = ipt.getFsamp();
double y = ipt.getFline();
double x_size = 2 * radius / Math.abs(temp_hdr.cdelt1);
if (SUTDebug.isDebug())
{
System.out.println("x = " + x + " y = " + y + " x_size = " + x_size);
}
Fits out_fits = common_crop(h, old_header,
(int) x, (int) y, (int) x_size, (int) x_size);
return (out_fits);
}
开发者ID:lsst,项目名称:firefly,代码行数:31,代码来源:CropFile.java
示例14: getMasksInFits
import nom.tam.fits.Header; //导入依赖的package包/类
private short[] getMasksInFits(Fits fits) throws FitsException {
//get all the Header Data Unit from the fits file
BasicHDU[] HDUs = fits.read();
for (int j = 0; j < HDUs.length; j++) {
if (!(HDUs[j] instanceof ImageHDU)) {
continue; //ignor non-image extensions
}
Header header = HDUs[j].getHeader();
if (header == null) {
throw new FitsException("Missing header in FITS file");
}
else if ( header.containsKey("EXTTYPE") && header.getStringValue("EXTTYPE").equalsIgnoreCase("mask") ){
short[] mArray=(short[]) ArrayFuncs.flatten(ArrayFuncs.convertArray(HDUs[j].getData().getData(), Short.TYPE, true));
return getMasks(header, mArray);
}
}
return null;
}
开发者ID:lsst,项目名称:firefly,代码行数:23,代码来源:FitsRead.java
示例15: createFitsReadPositionAngle
import nom.tam.fits.Header; //导入依赖的package包/类
/**
* Rotate an image so that North is at the specified position angle in the new image
*
* @param fitsRead FitsReadLZ object for the input image
* @param positionAngle desired position angle in degrees
* @param coordinateSys desired coordinate system for output image
* @return FitsReadLZ object for the new, rotated image
*/
public static FitsRead createFitsReadPositionAngle(FitsRead fitsRead, double positionAngle,
CoordinateSys coordinateSys)
throws FitsException, IOException, GeomException {
Geom geom = new Geom();
Header refHeader = getRefHeader(geom, fitsRead, positionAngle, coordinateSys);
//create a ImageHDU with the null data
ImageHDU refHDU = new ImageHDU(refHeader, null);
Fits refFits = new Fits();
refFits.addHDU(refHDU);
refFits = geom.do_geom(refFits); // throws GeomException
FitsRead[] fitsReadArray = createFitsReadArray(refFits);
fitsRead = fitsReadArray[0];
return fitsRead;
}
开发者ID:lsst,项目名称:firefly,代码行数:26,代码来源:FitsRead.java
示例16: isImageGood
import nom.tam.fits.Header; //导入依赖的package包/类
private static boolean isImageGood(Header aHeader) {
int naxis = aHeader.getIntValue("NAXIS", -1);
boolean goodImage = true;
if (naxis == 0) {
goodImage = false;
} else {
for (int i = 1; i <= naxis; i++) {
int naxisValue = aHeader.getIntValue("NAXIS" + i, -1);
if (naxisValue == 0) {
goodImage = false;
break;
}
}
}
return goodImage;
}
开发者ID:lsst,项目名称:firefly,代码行数:19,代码来源:FitsRead.java
示例17: splitFitsCube
import nom.tam.fits.Header; //导入依赖的package包/类
private static BasicHDU[] splitFitsCube(ImageHDU hdu)
throws FitsException {
Header header = hdu.getHeader();
int bitpix = header.getIntValue("BITPIX", -1);
if (!SUPPORTED_BIT_PIXS.contains(new Integer(bitpix))) {
System.out.println("Unimplemented bitpix = " + bitpix);
}
int naxis3 = header.getIntValue("NAXIS3", 0);
float[][][] data32 = (float[][][]) ArrayFuncs.convertArray(hdu.getData().getData(), Float.TYPE, true);
BasicHDU[] hduList = new BasicHDU[naxis3];
for (int i = 0; i < naxis3; i++) {
hduList[i] = makeHDU(hdu,data32[i] );
hdu.addValue("SPOT_PL", i + 1, "PLANE OF FITS CUBE (IN SPOT)");
hdu.getHeader().resetOriginalSize();
}
return hduList;
}
开发者ID:lsst,项目名称:firefly,代码行数:24,代码来源:FitsRead.java
示例18: cloneHeader
import nom.tam.fits.Header; //导入依赖的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
示例19: updateHeader
import nom.tam.fits.Header; //导入依赖的package包/类
/** Describe the mosaicking of the image . */
public void updateHeader(Header h) {
try {
h.insertHistory("");
h.insertHistory("Image mosaicking using skyview.geometry.AddingMosaicker");
h.insertHistory("");
String[] names = usedImageNames.toArray(new String[0]);
if (names.length == 0) {
h.insertComment("");
h.insertComment("************************************");
h.insertComment("** No valid pixels for mosaicking **");
h.insertComment("************************************");
h.insertComment("");
h.addValue("SV_ERROR", "No valid pixels found in mosaicker", "");
}
for (int i=0; i<usedImageNames.size(); i += 1) {
h.insertHistory(" Used "+usedPixelCount.get(i)+" pixels from "+usedImageNames.get(i));
}
h.insertHistory("");
} catch (nom.tam.fits.FitsException e) {
System.err.println(" Error updating FITS header:\n "+e);
// Just continue
}
}
开发者ID:jankotek,项目名称:asterope,代码行数:25,代码来源:AddingMosaicker.java
示例20: updateHeader
import nom.tam.fits.Header; //导入依赖的package包/类
/** Describe the mosaicking of the image . */
public void updateHeader(Header h) {
try {
h.insertHistory("");
h.insertHistory("Image mosaicking using skyview.geometry.SubsetMosaicker");
h.insertHistory(" Tile dimensions: "+tileX+", "+tileY);
h.insertHistory("");
String[] names = usedImageNames.toArray(new String[0]);
if (names.length == 0) {
h.insertComment("");
h.insertComment("************************************");
h.insertComment("** No valid pixels for mosaicking **");
h.insertComment("************************************");
h.insertComment("");
h.addValue("SV_ERROR", "No valid pixels found in mosaicker", "");
} else {
for (String name: names) {
h.insertHistory(" Used image:"+name);
}
}
h.insertHistory("");
} catch (nom.tam.fits.FitsException e) {
System.err.println("Error updating FITS header:\n "+e);
// Just continue
}
}
开发者ID:jankotek,项目名称:asterope,代码行数:27,代码来源:SubsetMosaicker.java
注:本文中的nom.tam.fits.Header类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论