FITS WCS Header Cards — CSV Reference (.csv)
Every header card of the tangent-plane WCS file transcribed to keyword, value and comment columns. Diff a header parser's output against it to prove the parser split each 80-column card at the right places instead of guessing on whitespace.
keyword,value,comment
SIMPLE,T,conforms to FITS standard
BITPIX,32,bits per data pixel
NAXIS,2,number of data axes
NAXIS1,24,length of data axis 1
NAXIS2,16,length of data axis 2
EXTEND,T,FITS dataset may contain extensions
OBJECT,'NX WCS TARGET',
BUNIT,'ADU ',
RADESYS,'ICRS ',celestial reference frame
EQUINOX,2000.0,
CTYPE1,'RA---TAN',"gnomonic projection, axis 1"
CTYPE2,'DEC--TAN',"gnomonic projection, axis 2"
CRPIX1,12.5,reference pixel on axis 1 (1-based)
CRPIX2,8.5,reference pixel on axis 2 (1-based)
CRVAL1,202.484167,"RA at the reference pixel, degrees"
CRVAL2,47.230556,"Dec at the reference pixel, degrees"
CDELT1,-0.000277778,degrees per pixel on axis 1
CDELT2,0.000277778,degrees per pixel on axis 2
CUNIT1,'deg ',
CUNIT2,'deg ',
COMMENT,Synthetic pointing. CRPIX is 1-based: pixel 1 is the first pixel.,
END,,
Specifications
- Cards
- 22
- Columns
- 3
- Source
- the tangent-plane WCS file
- Card Width
- 80
- Quoting
- RFC 4180 double quotes
Testing contract
Reference control- Scenario
- Parse the paired FITS primary header and emit one row per card, then diff against this file.
- Expected result
- Row count and keyword order match exactly, CRPIX1 reads as 12.5 rather than '12.5 / reference pixel', and comments arrive in the third column with the ' / ' separator stripped.
What is a .csv file?
CSV (Comma-Separated Values) is a plain-text tabular format where rows are lines and fields are separated by commas, with quoting rules for values that contain delimiters, quotes, or newlines. It has no formal type system and depends on encoding and dialect conventions. It is the most portable format for tabular data exchange.
How to use this file
Use an example CSV to test parsers against quoting and embedded-delimiter edge cases, header handling, encoding detection, and import pipelines into databases or spreadsheets.
How to use this file for testing
“FITS WCS Header Cards — CSV Reference (.csv)” is a deterministic Novus Examples fixture for Scientific data, Conversion testing, Editor testing. Citation catalogs (BibTeX, RIS), chemistry structures (MDL Molfile, PDB), and gridded binary data (NetCDF, FITS) — for testing reference managers, molecule viewers, and scientific-data loaders.
Documented properties for this file: 3 columns. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.
Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.
Scientific fixtures are small, valid, and fully synthetic — no real organism, patient, sample, or observation. Point your parser or loader at the file and check it reads the documented records, variables, or headers; binary formats ship a readable twin or metadata listing for comparison.
Code examples
import pandas as pd
df = pd.read_csv("wcs-header-cards.csv")
print(df.head())
print(df.dtypes)Related files
- csvChemistry Fixture Molecule Index (.csv)One row per molecule used across the chemistry fixtures, with formula, molecular weight, SMILES and the atom and bond counts each file should yield. It is the oracle a cheminformatics toolkit can be scored against without needing a second toolkit to generate the answers.

- csvDICOM-Shaped Dataset — Element Table Reference (.csv)Every element of the synthetic phantom dataset as tag, value representation, meaning and encoded length, in the ascending tag order the standard mandates. Diff a parser's element list against it to check both the ordering rule and the two different length encodings.

- molEthanol — MDL Molfile V2000 (.mol)Ethanol as a V2000 molfile with fixed-column 3D coordinates, a nine-atom counts line and an eight-bond block. The column widths are part of the format rather than a convention, so it is a genuine test of fixed-width parsing rather than of whitespace splitting.

- sdfEthanol — SDfile With Data Fields (.sdf)An SDfile wrapping the identical ethanol molfile plus five tagged data fields and the mandatory $$$$ terminator. The property block syntax — a header line, a value and a blank line — is where SDfile parsers usually diverge from molfile parsers.

- smiEthanol — SMILES String (.smi)Ethanol as a single tab-delimited SMILES record, the most compressed member of this family: three heavy atoms with every hydrogen implicit and no geometry whatsoever. Round-tripping molfile to SMILES and back is the classic lossy conversion, and this pair is the reference for it.

- xyzEthanol — XYZ Cartesian Coordinates (.xyz)The same ethanol geometry in XYZ format: an atom count, a free-text comment line and one line of element and coordinates per atom. XYZ carries no connectivity at all, so converting to it from the molfile is a lossy operation that this pair makes measurable.

Generated by generation/scientific.py. Free for any use, no attribution required — license.