PDB_EXTRACT is a FORTRAN90 program which extracts certain columns from certain lines of a Protein Data Bank file.
Right now, the controls for which lines are to be considered, and what data is to be extracted, are hardwired into the code. For instance, we might want to consider every line in which the fourth word is "CA", and for those lines, we would write out columns 9 and 10.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
PDB_EXTRACT is available in a FORTRAN90 version.
PDB, a data directory which contains a description and examples of the PDB format.
PDB_READ, a FORTRAN90 program which can read a PDB file.
PDB_TO_XYZ, a FORTRAN90 program which reads the coordinates of atoms in a PDB file and writes them out as an XYZ file.
XYZ_TO_PDB, a FORTRAN90 program which reads an XYZ file and writes the data as coordinates of atoms in a PDB file.
You can go up one level to the FORTRAN90 source codes.