00001
00002
00003
00004 #include "cddefines.h"
00005 #include "geometry.h"
00006 #include "opacity.h"
00007 #include "parse.h"
00008
00009 void ParseSphere(char *chCard )
00010 {
00011 bool lgEOL;
00012 long int i;
00013 double fac;
00014
00015 DEBUG_ENTRY( "ParseSphere()" );
00016
00017
00018 geometry.lgSphere = true;
00019
00020
00021 opac.lgScatON = false;
00022
00023
00024 if( nMatch("STAT",chCard) )
00025 {
00026 geometry.lgStatic = true;
00027 opac.tlamin = 1e5;
00028
00029 if( nMatch("(OK)",chCard) )
00030 {
00031 geometry.lgStaticNoIt = true;
00032 }
00033 }
00034
00035
00036 geometry.covgeo = 1.;
00037 geometry.covrt = 1.;
00038
00039
00040 i = 5;
00041 fac = FFmtRead(chCard,&i,INPUT_LINE_LENGTH,&lgEOL);
00042
00043 if( !lgEOL )
00044 {
00045
00046 fprintf(ioQQQ," The number %g appeared on the SPHERE command.\n", fac);
00047 fprintf(ioQQQ," The covering factor can no longer be set with the SPHERE command.\n");
00048 fprintf(ioQQQ," The number has been ignored.\n");
00049 }
00050
00051
00052
00053
00054
00055
00056
00057 if( nMatch("SLIT",chCard) || nMatch("BEAM",chCard) )
00058 {
00059
00060 fprintf(ioQQQ," The SLIT and BEAM options are now part of the APERTURE command.\n");
00061 fprintf(ioQQQ," The syntax is the same.\n");
00062 fprintf(ioQQQ," This option has been ignored.\n");
00063 }
00064 return;
00065 }