Conversion of standardized ReadMe file for
file /./ftp/cats/J/AZh/88/22 into FORTRAN code for loading all data files into arrays.
Note that special values are assigned to unknown or unspecified
numbers (also called NULL numbers);
when necessary, the coordinate components making up the right ascension
and declination are converted into floating-point numbers
representing these angles in degrees.
program load_ReadMe C============================================================================= C F77-compliant program generated by readme2f_1.81 (2015-09-23), on 2024-Mar-29 C============================================================================= * This code was generated from the ReadMe file documenting a catalogue * according to the "Standard for Documentation of Astronomical Catalogues" * currently in use by the Astronomical Data Centers (CDS, ADC, A&A) * (see full documentation at URL http://vizier.u-strasbg.fr/doc/catstd.htx) * Please report problems or questions to C============================================================================= implicit none * Unspecified or NULL values, generally corresponding to blank columns, * are assigned one of the following special values: * rNULL__ for unknown or NULL floating-point values * iNULL__ for unknown or NULL integer values real*4 rNULL__ integer*4 iNULL__ parameter (rNULL__=--2147483648.) ! NULL real number parameter (iNULL__=(-2147483647-1)) ! NULL int number integer idig ! testing NULL number C============================================================================= Cat. J/AZh/88/22 Angles rotation/magnetic moment in pulsars (Malov+, 2011) *================================================================================ *Angles between the rotational axis and magnetic moment in 80 pulsars from *observations near 1 GHz. * Malov I.F., Nikitina E.B. * <Astron. Zh. 88, 22 (2011)> * =2011AZh....88...22M * =2011ARep...55...19M C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Calculated angles {beta} integer*4 nr__ parameter (nr__=80) ! Number of records character*41 ar__ ! Full-size record integer*4 Seq (nr__) ! Pulsar sequential number real*4 beta1 (nr__) ! (deg) {beta} angle from Eq. (7) (1) real*4 beta2_ (nr__) ! (deg) ? {beta} angle value from Eq.(12) for C>0 (1) real*4 beta2__1 (nr__) ! (deg) ? {beta} angle value from Eq.(12) for C<0 (1) real*4 beta3_ (nr__) ! (deg) ? {beta} angle value from Eq.(16)-(19) for C<0 (1) real*4 beta3__1 (nr__) ! (deg) ? {beta} angle value from Eq.(16)-(19) for C>0 (1) real*4 zeta3_ (nr__) ! (deg) ? {zeta} angle value from Eq.(16)-(19) for C>0 (1) real*4 theta3_ (nr__) ! (deg) ? {theta} angle value from Eq.(16)-(19) for C>0 (1) *Note (1): Definitions of the angles: * * {beta} (beta) is the angle between the rotational axis and * magnetic moment of the neutron star associated with the pulsar * * {zeta} (zeta) is the angle between the observer's line of sight * and the pulsar rotational axis * * {theta} (theta) is the angular radius of the emission cone * See text for equations. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! Initial pulsar parameters integer*4 nr__1 parameter (nr__1=80) ! Number of records character*33 ar__1 ! Full-size record integer*4 Seq_1 (nr__1) ! Pulsar sequential number character*7 PSR (nr__1) ! PSR name (HHMM-DD) real*4 Per (nr__1) ! (s) Spin period real*4 C (nr__1) ! ? Derivative of the polarization angle with * respect to longitude (d{psi}/d{phi})_max_ (1) real*4 D (nr__1) ! D parameter (D=cos(W_10_/2), where W_10_ is * the profile width at 10% level) (1) character*3 n (nr__1) ! Ratio of the emission-cone half-width {theta} * to the angular distance where the line of sight * crosses this cone ({zeta}-{beta}) (1) *Note (1): Initial values of the parameters for the solution of Eq. (12) * Eq. (14) and Eq. (15). See text for equations. * Values studied for n = {theta}/({zeta}-{beta}) are * 5/4, 3/2, 2, 4 and infinity (inf) C============================================================================= C Loading file 'table1.dat' ! Calculated angles {beta} C Format for file interpretation 1 format( + I2,1X,F4.1,1X,F4.1,1X,F4.1,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,80 read(1,'(A41)')ar__ read(ar__,1) + Seq(i__),beta1(i__),beta2_(i__),beta2__1(i__),beta3_(i__), + beta3__1(i__),zeta3_(i__),theta3_(i__) if(ar__(9:12) .EQ. '') beta2_(i__) = rNULL__ if(ar__(14:17) .EQ. '') beta2__1(i__) = rNULL__ if(ar__(19:23) .EQ. '') beta3_(i__) = rNULL__ if(ar__(25:29) .EQ. '') beta3__1(i__) = rNULL__ if(ar__(31:35) .EQ. '') zeta3_(i__) = rNULL__ if(ar__(37:41) .EQ. '') theta3_(i__) = rNULL__ c ..............Just test output........... write(6,1) + Seq(i__),beta1(i__),beta2_(i__),beta2__1(i__),beta3_(i__), + beta3__1(i__),zeta3_(i__),theta3_(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table2.dat' ! Initial pulsar parameters C Format for file interpretation 2 format(I2,1X,A7,1X,F5.3,1X,F5.2,1X,F6.4,1X,A3) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,80 read(1,'(A33)')ar__1 read(ar__1,2)Seq_1(i__),PSR(i__),Per(i__),C(i__),D(i__),n(i__) if(ar__1(18:22) .EQ. '') C(i__) = rNULL__ c ..............Just test output........... write(6,2)Seq_1(i__),PSR(i__),Per(i__),C(i__),D(i__),n(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end