Changeset 7167 for trunk/MagicSoft/Mars/datacenter/macros
- Timestamp:
- 06/15/05 17:12:46 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/createdataset.C
r7166 r7167 16 16 ! 17 17 ! 18 ! Author(s): Daniela Dorner, 0 5/2005 <mailto:dorner@astro.uni-wuerzburg.de>18 ! Author(s): Daniela Dorner, 06/2005 <mailto:dorner@astro.uni-wuerzburg.de> 19 19 ! 20 20 ! Copyright: MAGIC Software Development, 2000-2005 … … 82 82 fouthtml << source << endl; 83 83 fouthtml << "</td><td>" << endl; 84 if (wobble .Contains("Y"))84 if (wobble!="N") 85 85 fouthtml << "wobble," << endl; 86 86 if (startdate=="0000-00-00 00:00:00") … … 89 89 fouthtml << "from " << startdate << " to " << stopdate << endl; 90 90 if (cal) 91 fouthtml << " only data processed to the imgpar is taken into account" << endl;91 fouthtml << ", only data processed to the imgpar is taken into account" << endl; 92 92 fouthtml << "</td></tr>" << endl; 93 93 … … 100 100 if (cal) 101 101 query +=" left join SequenceProcessStatus on Sequences.fSequenceFirst=SequenceProcessStatus.fSequenceFirst "; 102 query +=Form(" where fSourceName like '%s%%' and fRunStart between '%s' and '%s'", 103 source.Data(), startdate.Data(), stopdate.Data()); 102 if (wobble=="N") 103 query +=Form(" where fSourceName like '%s%%' and fRunStart between '%s' and '%s'", 104 source.Data(), startdate.Data(), stopdate.Data()); 105 else 106 query +=Form(" where fSourceName like '%s%%' and fRunStart between '%s' and '%s'", 107 wobble.Data(), startdate.Data(), stopdate.Data()); 104 108 if (cal) 105 109 query +=" and not IsNull(fStar) "; … … 123 127 delete res; 124 128 125 if (wobble .Contains("N"))126 { 127 if (off .Contains("none"))129 if (wobble=="N") 130 { 131 if (off=="none") 128 132 { 129 133 off ="Off"; … … 161 165 } 162 166 163 if (wobble .Contains("N"))167 if (wobble=="N") 164 168 fout << "#" << flush; 165 169 fout << "SourceName: " << source << endl; 166 170 fout << "Catalog: /magic/datacenter/setup/magic_favorites.edb" << endl; 167 if (wobble .Contains("N"))171 if (wobble=="N") 168 172 fout << "#" << flush; 169 173 fout << "WobbleMode: On" << endl << endl;
Note:
See TracChangeset
for help on using the changeset viewer.