<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pwiki.pic.es/index.php?action=history&amp;feed=atom&amp;title=The_COSMOS_ACS_Catalog</id>
	<title>The COSMOS ACS Catalog - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pwiki.pic.es/index.php?action=history&amp;feed=atom&amp;title=The_COSMOS_ACS_Catalog"/>
	<link rel="alternate" type="text/html" href="https://pwiki.pic.es/index.php?title=The_COSMOS_ACS_Catalog&amp;action=history"/>
	<updated>2026-04-26T10:16:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://pwiki.pic.es/index.php?title=The_COSMOS_ACS_Catalog&amp;diff=575&amp;oldid=prev</id>
		<title>Jcarrete: Created page with &quot;The catalog comes from:      https://alexie.sites.ucsc.edu/dataproducts/  In particular I ingest the file: acs_clean.fits  I use the following notebook to convert from FITS in...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pwiki.pic.es/index.php?title=The_COSMOS_ACS_Catalog&amp;diff=575&amp;oldid=prev"/>
		<updated>2019-12-04T15:34:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;The catalog comes from:      https://alexie.sites.ucsc.edu/dataproducts/  In particular I ingest the file: acs_clean.fits  I use the following notebook to convert from FITS in...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The catalog comes from:&lt;br /&gt;
&lt;br /&gt;
    https://alexie.sites.ucsc.edu/dataproducts/&lt;br /&gt;
&lt;br /&gt;
In particular I ingest the file: acs_clean.fits&lt;br /&gt;
&lt;br /&gt;
I use the following notebook to convert from FITS into parquet:&lt;br /&gt;
&lt;br /&gt;
    /python_notebooks/Ingesting_Lethaud_COSMOS_ACS_WL_catalog_and_ACS_Kai_catalog.ipynb&lt;br /&gt;
&lt;br /&gt;
There is one of the fields which is a array: FLUX_RADIUS &lt;br /&gt;
I separate it into 4 elements: FLUX_RADIUS_[0-3]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Create external table from beeline-hive2:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
CREATE EXTERNAL TABLE jcarrete.cosmos_acs_clean_pq (&lt;br /&gt;
MAG_ISO float,&lt;br /&gt;
MAGERR_ISO float,&lt;br /&gt;
MAG_ISOCOR float,&lt;br /&gt;
MAGERR_ISOCOR float,&lt;br /&gt;
MAG_PETRO float,&lt;br /&gt;
MAGERR_PETRO float,&lt;br /&gt;
PETRO_RADIUS float,&lt;br /&gt;
MAG_APER float,&lt;br /&gt;
MAGERR_APER float,&lt;br /&gt;
MAG_AUTO float,&lt;br /&gt;
MAGERR_AUTO float,&lt;br /&gt;
MAG_BEST float,&lt;br /&gt;
MAGERR_BEST float,&lt;br /&gt;
FLUX_AUTO float,&lt;br /&gt;
FLUXERR_AUTO float,&lt;br /&gt;
KRON_RADIUS float,&lt;br /&gt;
BACKGROUND float,&lt;br /&gt;
THRESHOLD float,&lt;br /&gt;
FLUX_MAX float,&lt;br /&gt;
ISOAREA_IMAGE int,&lt;br /&gt;
X_IMAGE float,&lt;br /&gt;
Y_IMAGE float,&lt;br /&gt;
XMIN_IMAGE int,&lt;br /&gt;
YMIN_IMAGE int,&lt;br /&gt;
XMAX_IMAGE int,&lt;br /&gt;
YMAX_IMAGE int,&lt;br /&gt;
XPEAK_IMAGE int,&lt;br /&gt;
YPEAK_IMAGE int,&lt;br /&gt;
ALPHAPEAK_J2000 double,&lt;br /&gt;
DELTAPEAK_J2000 double,&lt;br /&gt;
A_IMAGE float,&lt;br /&gt;
B_IMAGE float,&lt;br /&gt;
ALPHA_J2000 double,&lt;br /&gt;
DELTA_J2000 double,&lt;br /&gt;
THETA_IMAGE float,&lt;br /&gt;
MU_THRESHOLD float,&lt;br /&gt;
MU_MAX float,&lt;br /&gt;
ISOAREA_WORLD float,&lt;br /&gt;
X_WORLD double,&lt;br /&gt;
Y_WORLD double,&lt;br /&gt;
A_WORLD float,&lt;br /&gt;
B_WORLD float,&lt;br /&gt;
THETA_WORLD float,&lt;br /&gt;
FLAGS int,&lt;br /&gt;
FWHM_IMAGE float,&lt;br /&gt;
FWHM_WORLD float,&lt;br /&gt;
CXX_IMAGE float,&lt;br /&gt;
CYY_IMAGE float,&lt;br /&gt;
CXY_IMAGE float,&lt;br /&gt;
ELONGATION float,&lt;br /&gt;
CLASS_STAR float,&lt;br /&gt;
FIELD binary,&lt;br /&gt;
SE int,&lt;br /&gt;
IDENT int,&lt;br /&gt;
MU_CLASS int,&lt;br /&gt;
OVERLAP int,&lt;br /&gt;
NEARSTAR int,&lt;br /&gt;
MASK int,&lt;br /&gt;
MASKED int,&lt;br /&gt;
GOOD int,&lt;br /&gt;
CLEAN int,&lt;br /&gt;
UNIQUE int,&lt;br /&gt;
FLUX_RADIUS_0 float,&lt;br /&gt;
FLUX_RADIUS_1 float,&lt;br /&gt;
FLUX_RADIUS_2 float,&lt;br /&gt;
FLUX_RADIUS_3 float,&lt;br /&gt;
NUMBER bigint&lt;br /&gt;
)&lt;br /&gt;
ROW FORMAT SERDE&lt;br /&gt;
  'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe'&lt;br /&gt;
STORED AS INPUTFORMAT&lt;br /&gt;
  'org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat'&lt;br /&gt;
OUTPUTFORMAT&lt;br /&gt;
  'org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat'&lt;br /&gt;
LOCATION&lt;br /&gt;
  'hdfs://namenode01/user/jcarrete/data/COSMOS_ACS_catalog'&lt;br /&gt;
;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Internal table:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
CREATE TABLE cosmohub.cosmos_acs_clean (&lt;br /&gt;
IDENT int COMMENT 'Unique number that identifies object',&lt;br /&gt;
NUMBER bigint COMMENT 'Running object number from SExtractor, do not use this number as a unique identification number',&lt;br /&gt;
MAG_ISO float COMMENT 'Isophotal magnitude (mag)',&lt;br /&gt;
MAGERR_ISO float COMMENT 'RMS error for isophotal magnitude (mag)',&lt;br /&gt;
MAG_ISOCOR float COMMENT 'Corrected isophotal magnitude (mag)',&lt;br /&gt;
MAGERR_ISOCOR float COMMENT 'RMS error for corrected isophotal magnitude (mag)',&lt;br /&gt;
MAG_PETRO float COMMENT 'Petrosian magnitude. Kron_fact = 2.5 (mag)',&lt;br /&gt;
MAGERR_PETRO float COMMENT 'RMS error for petrosian magnitude (mag)',&lt;br /&gt;
PETRO_RADIUS float COMMENT 'Petrosian radius. Pixel size is 0.03 arcseconds (pixel)',&lt;br /&gt;
MAG_APER float COMMENT 'Fixed aperture magnitude. Aperture = 0.6 arcseconds (mag)',&lt;br /&gt;
MAGERR_APER float COMMENT 'RMS error for fixed aperture mag. Aperture = 0.6 arcseconds (mag)',&lt;br /&gt;
MAG_AUTO float COMMENT 'Kron-like elliptical aperture magnitude (mag)',&lt;br /&gt;
MAGERR_AUTO float COMMENT 'RMS error for AUTO magnitude (mag)',&lt;br /&gt;
MAG_BEST float COMMENT 'Best of MAG_AUTO and MAG_ISOCOR (mag)',&lt;br /&gt;
MAGERR_BEST float COMMENT 'RMS error for MAG_BEST (mag)',&lt;br /&gt;
FLUX_AUTO float COMMENT 'Flux within a Kron-like elliptical aperture (count)',&lt;br /&gt;
FLUXERR_AUTO float COMMENT 'RMS error for AUTO flux (count)',&lt;br /&gt;
KRON_RADIUS float COMMENT 'Kron radius for AUTO magnitude. Pixel size is 0.03 arcseconds (pixel)',&lt;br /&gt;
BACKGROUND float COMMENT 'Background at centroid position (counts)',&lt;br /&gt;
THRESHOLD float COMMENT 'Detection threshold above background (counts)',&lt;br /&gt;
FLUX_MAX float COMMENT 'Peak flux above backgound (counts)',&lt;br /&gt;
FLUX_RADIUS_0 float COMMENT 'Half-light radius (PHOT_FLUXFRAC = 0.5) (pixel)',&lt;br /&gt;
FLUX_RADIUS_1 float COMMENT 'Half-light radius (PHOT_FLUXFRAC = 0.5) (pixel)',&lt;br /&gt;
FLUX_RADIUS_2 float COMMENT 'Half-light radius (PHOT_FLUXFRAC = 0.5) (pixel)',&lt;br /&gt;
FLUX_RADIUS_3 float COMMENT 'Half-light radius (PHOT_FLUXFRAC = 0.5) (pixel)',&lt;br /&gt;
ISOAREA_IMAGE int COMMENT 'Isophotal area (pixel^2)',&lt;br /&gt;
X_IMAGE float COMMENT 'Object position along x. Pixel size is 0.03 arcseconds (pixel)',&lt;br /&gt;
Y_IMAGE float COMMENT 'Object position along y. Pixel size is 0.03 arcseconds (pixel)',&lt;br /&gt;
XMIN_IMAGE int COMMENT 'Minimum x-coordinate among detected pixels. Pixel size is 0.03 arcseconds (pixel)',&lt;br /&gt;
YMIN_IMAGE int COMMENT 'Minimum y-coordinate among detected pixels. Pixel size is 0.03 arcseconds (pixel)',&lt;br /&gt;
XMAX_IMAGE int COMMENT 'Maximum x-coordinate among detected pixels. Pixel size is 0.03 arcseconds (pixel)',&lt;br /&gt;
YMAX_IMAGE int COMMENT 'Maximum y-coordinate among detected pixels. Pixel size is 0.03 arcseconds (pixel)',&lt;br /&gt;
XPEAK_IMAGE int COMMENT 'x-coordinate of the brightest pixel (pixel)',&lt;br /&gt;
YPEAK_IMAGE int COMMENT 'y-coordinate of the brightest pixel (pixel)',&lt;br /&gt;
ALPHAPEAK_J2000 double COMMENT 'Right ascension of the brightest pixel (J2000) (deg)',&lt;br /&gt;
DELTAPEAK_J2000 double COMMENT 'Declination of the brightest pixel (J2000) (deg)',&lt;br /&gt;
A_IMAGE float COMMENT 'Profile RMS along major axis. Pixel size is 0.03 arcseconds (pixel)',&lt;br /&gt;
B_IMAGE float COMMENT 'Profile RMS along minor axis. Pixel size is 0.03 arcseconds (pixel)',&lt;br /&gt;
ALPHA_J2000 double COMMENT 'Right ascension of the barycenter (J2000) (deg)',&lt;br /&gt;
DELTA_J2000 double COMMENT 'Declination of the barycenter (J2000) (deg)',&lt;br /&gt;
THETA_IMAGE float COMMENT 'Position angle (CCW/x). Defined counterclockwise (deg)',&lt;br /&gt;
MU_THRESHOLD float COMMENT 'Detection threshold above background (max*arcsec^-2)',&lt;br /&gt;
MU_MAX float COMMENT 'Peak surface brightness abouve background (max*arcsec^-2)',&lt;br /&gt;
ISOAREA_WORLD float COMMENT 'Isophotal area above analysis threshold (deg^2)',&lt;br /&gt;
X_WORLD double COMMENT 'Object position along world x axis',&lt;br /&gt;
Y_WORLD double COMMENT 'Object position along world y axis',&lt;br /&gt;
A_WORLD float COMMENT 'Profile RMS along major axis (world units)',&lt;br /&gt;
B_WORLD float COMMENT 'Profile RMS along minor axis (world units)',&lt;br /&gt;
THETA_WORLD float COMMENT 'Position angle (CCW/world-x)',&lt;br /&gt;
FLAGS int COMMENT 'SExtractor quality flag',&lt;br /&gt;
FWHM_IMAGE float COMMENT 'FWHM assuming a gaussian core. Pixel size is 0.03 arcseconds (pixel)',&lt;br /&gt;
FWHM_WORLD float COMMENT 'FWHM assuming a gaussian core (deg)',&lt;br /&gt;
CXX_IMAGE float COMMENT 'Cxx object ellipse parameter (pixel^-2)',&lt;br /&gt;
CYY_IMAGE float COMMENT 'Cyy object ellipse parameter (pixel^-2)',&lt;br /&gt;
CXY_IMAGE float COMMENT 'Cxy object ellipse parameter (pixel^-2)',&lt;br /&gt;
ELONGATION float COMMENT 'A_IMAGE/B_IMAGE',&lt;br /&gt;
CLASS_STAR float COMMENT 'SExtractor star/galaxy classifier. Prefer the MU_CLASS classifier',&lt;br /&gt;
FIELD string COMMENT 'Name of ACS pointing in which object is detected',&lt;br /&gt;
SE int COMMENT 'Detection from &amp;quot;hot&amp;quot; pass or &amp;quot;cold&amp;quot; pass (se = 0 cold (bright), se = 1 hot (faint))',&lt;br /&gt;
MU_CLASS int COMMENT 'classification flag: 1: Galaxies, 2: Stars, 3: Objects with mu_max higher than stars (fake objects and residual cosmic rays)',&lt;br /&gt;
OVERLAP int COMMENT 'overlap = 1 no overlapm if an overlap is detected: overlap = (-1)*&amp;lt;ident&amp;gt; of corresponding overlap',&lt;br /&gt;
NEARSTAR int COMMENT '0: object is in a star mask, 1: object is not in a star mask',&lt;br /&gt;
MASK int COMMENT '0: , 1: star used to make automatic masks',&lt;br /&gt;
MASKED int COMMENT '-1: object in manual mask (astrophysical obj), 0: object in manual mask (artefact or image defect)',&lt;br /&gt;
GOOD int COMMENT 'flag for lensing cuts',&lt;br /&gt;
CLEAN int COMMENT '0: do not use this object, 1: use this object',&lt;br /&gt;
UNIQUE int COMMENT 'flags faint objects ( &amp;lt;se&amp;gt; = 1 ) that are already identified in the &amp;quot;cold&amp;quot; pass, 0: object that has a &amp;quot;cold counterpart&amp;quot;'&lt;br /&gt;
)&lt;br /&gt;
CLUSTERED BY ( &lt;br /&gt;
  IDENT) &lt;br /&gt;
INTO 8 BUCKETS&lt;br /&gt;
ROW FORMAT SERDE &lt;br /&gt;
  'org.apache.hadoop.hive.ql.io.orc.OrcSerde' &lt;br /&gt;
STORED AS INPUTFORMAT &lt;br /&gt;
  'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat' &lt;br /&gt;
OUTPUTFORMAT &lt;br /&gt;
  'org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat'&lt;br /&gt;
;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
INSERT OVERWRITE TABLE cosmohub.cosmos_acs_clean&lt;br /&gt;
SELECT IDENT, NUMBER, MAG_ISO, MAGERR_ISO, MAG_ISOCOR, MAGERR_ISOCOR, MAG_PETRO, MAGERR_PETRO, PETRO_RADIUS, MAG_APER, MAGERR_APER, MAG_AUTO, MAGERR_AUTO, MAG_BEST, MAGERR_BEST, FLUX_AUTO, FLUXERR_AUTO, KRON_RADIUS, BACKGROUND, THRESHOLD, FLUX_MAX, FLUX_RADIUS_0, FLUX_RADIUS_1, FLUX_RADIUS_2, FLUX_RADIUS_3, ISOAREA_IMAGE, X_IMAGE, Y_IMAGE, XMIN_IMAGE, YMIN_IMAGE, XMAX_IMAGE, YMAX_IMAGE, XPEAK_IMAGE, YPEAK_IMAGE, ALPHAPEAK_J2000, DELTAPEAK_J2000, A_IMAGE, B_IMAGE, ALPHA_J2000, DELTA_J2000, THETA_IMAGE, MU_THRESHOLD, MU_MAX, ISOAREA_WORLD, X_WORLD, Y_WORLD, A_WORLD, B_WORLD, THETA_WORLD, FLAGS, FWHM_IMAGE, FWHM_WORLD, CXX_IMAGE, CYY_IMAGE, CXY_IMAGE, ELONGATION, CLASS_STAR, FIELD, SE, MU_CLASS, OVERLAP, NEARSTAR, MASK, MASKED, GOOD, CLEAN, UNIQUE&lt;br /&gt;
FROM jcarrete.cosmos_acs_clean_pq;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For statistics I have to run them in HIVE1:&lt;br /&gt;
&lt;br /&gt;
    beeline --color=true --showHeader=true --verbose=true --silent=false -u &amp;quot;jdbc:hive2://ambarisrv02.pic.es:2181,ambarisrv03.pic.es:2181,ambarisrv01.pic.es:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
    ANALYZE TABLE cosmohub.cosmos_acs_clean COMPUTE STATISTICS FOR COLUMNS&lt;/div&gt;</summary>
		<author><name>Jcarrete</name></author>
	</entry>
</feed>