| | 181 | |
| | 182 | |
| | 183 | We want to investigate the boresite info to assess how poor the PS2 pointing is. Things we should consider are: |
| | 184 | - alt az position |
| | 185 | - time of observation |
| | 186 | |
| | 187 | The query: |
| | 188 | {{{ |
| | 189 | mysql -hippdb08 -uX -pX gpc2 -B -e ' select path_base,exp_name,object,comment from camRun join camProcessedExp using (cam_id) join chipRun using (chip_id) join rawExp using (exp_id) where dateobs like "2019-05-22%" and ( comment like "%visit 1" or comment like "%visit 2" ) order by object; ' | grep -v path_base | awk '{print "neb-ls -p "$1".smf"}' | tcsh | fields OBJECT AST_R0 AST_D0 |
| | 190 | }}} |
| | 191 | |
| | 192 | This provides us with pairs of visits (one on each line), so that we can compare the RA and DEC positions. |
| | 193 | |
| | 194 | TODO: Just grab all those pointings, and plot them to see how they change across the night, for each night (just an MJD would be simple too) |
| | 195 | |
| | 196 | |
| | 197 | |
| | 198 | '''warp_stack_diff macro''' by JRF |
| | 199 | |
| | 200 | At the moment, the warpstack diffs processed by PS2 are not the best quality thanks to the poor masking and general unknown qualities of PS2. Coupled with this is the fact that the WWdiff and WSdiff processing is all done by stdscience for PS2 (unlike PS1 where it is separate). This means that stdscience could get clogged up with WSdiffs that keep failing and not process the WWdiffs as fast (the latter are critical for MOPS). |
| | 201 | |
| | 202 | What we plan to do is limit the time when warpstacks are run. This is determined by a macro living in file: |
| | 203 | ~ippps2/stdscience/input |
| | 204 | |
| | 205 | Looking at the ippitc version, there are the following macros: |
| | 206 | {{{ |
| | 207 | ## to change set the time UT |
| | 208 | macro warpstack.trange.all |
| | 209 | task survey.warpstack.diff |
| | 210 | trange -reset |
| | 211 | end |
| | 212 | end |
| | 213 | |
| | 214 | macro warpstack.trange.day |
| | 215 | task survey.warpstack.diff |
| | 216 | trange -reset |
| | 217 | trange 17:00:00 23:59:00 |
| | 218 | trange 00:00:00 05:00:00 |
| | 219 | end |
| | 220 | end |
| | 221 | }}} |
| | 222 | One for setting WS to be active all day, the other to only be during the daytime (note that the times are UTC time). |
| | 223 | |
| | 224 | These can be called during the setup, under the 'macro setup' section at the top of the input file, to automatically set when they should be used: |
| | 225 | {{{ |
| | 226 | #blah blah stuff |
| | 227 | |
| | 228 | ## modify the trange for wsdiff: |
| | 229 | ## trange.all -- run day and night; trange.day -- run only in the day |
| | 230 | warpstack.trange.all |
| | 231 | #warpstack.trange.day |
| | 232 | }}} |
| | 233 | You can only use one at a time (using more will overwrite the other). The above example shows the case where we are observing all the time. |
| | 234 | |
| | 235 | The macros are already in the input file for ippps2, but if they were not we could just copy the macros into the file and add the calling of them to the setup macro. |
| | 236 | |
| | 237 | The most important part is that we commented out 'warpstack.trange.all', and uncommented 'warpstack.trange.day' in the setup. Then WSdiffs will only be queued during the day. |
| | 238 | |
| | 239 | |
| | 240 | |
| | 241 | '''Euclid twilight observations''' by JRF |
| | 242 | |
| | 243 | Angie has fixed the Euclid comment strings to be more consistent with other observations, for example the before and after: |
| | 244 | {{{ |
| | 245 | | BRIGHT | 120 | Euclid twilight M8592 y; pos 10h offset from ps1_19_4388 Day 17 | |
| | 246 | | BRIGHT | 120 | Euclid.twilight.E8621.10a.z ps1_19_5863 Day 0 | |
| | 247 | }}} |
| | 248 | essentially the chunk names are now similar to the quad names used by MOPS and other parts of our processing. |
| | 249 | |
| | 250 | However, this means that they are no longer being picked up by the nightly_science processing. So we shall modify the nighty_science.config to fix this. |
| | 251 | |
| | 252 | nightly_science.config - contains the config for |
| | 253 | nightly_science.pro - loads it |
| | 254 | nightly_science.pl - runs it all |
| | 255 | |
| | 256 | The config for PS1 lives here: |
| | 257 | {{{ |
| | 258 | ~ippitc/src/ipp-20170121/ippconfig/recipes/nightly_science.config |
| | 259 | }}} |
| | 260 | |
| | 261 | The config for handling the Euclid, bright, z-band observations during full moon has 'Euclid.r%' in their comments, while the ones in our case belong to different settings where it is looking for 'Euclid ' - note the space. |
| | 262 | |
| | 263 | The config looks like this: |
| | 264 | {{{ |
| | 265 | TARGETS METADATA |
| | 266 | NAME STR Bright |
| | 267 | DISTRIBUTION STR NODIST |
| | 268 | TESS STR RINGS.V3 |
| | 269 | OBSMODE STR BRIGHT |
| | 270 | STACKABLE BOOL FALSE |
| | 271 | DIFFABLE BOOL TRUE |
| | 272 | OFFNIGHT_DIFFS BOOL FALSE |
| | 273 | DESPERATE_DIFFS BOOL TRUE |
| | 274 | REDUCTION STR EUCLID_DEFAULT |
| | 275 | COMMENT STR Euclid.r% |
| | 276 | # DIFF S16 7 |
| | 277 | END |
| | 278 | TARGETS METADATA |
| | 279 | NAME STR BrightTwi |
| | 280 | DISTRIBUTION STR NODIST |
| | 281 | TESS STR RINGS.V3 |
| | 282 | OBSMODE STR BRIGHT |
| | 283 | STACKABLE BOOL FALSE |
| | 284 | DIFFABLE BOOL FALSE |
| | 285 | OFFNIGHT_DIFFS BOOL FALSE |
| | 286 | DESPERATE_DIFFS BOOL FALSE |
| | 287 | REDUCTION STR EUCLID_DEFAULT |
| | 288 | COMMENT STR Euclid |
| | 289 | END |
| | 290 | }}} |
| | 291 | |
| | 292 | So, now we can change the config to handle the new comment format: |
| | 293 | {{{ |
| | 294 | TARGETS METADATA |
| | 295 | NAME STR BrightTwi |
| | 296 | DISTRIBUTION STR NODIST |
| | 297 | TESS STR RINGS.V3 |
| | 298 | OBSMODE STR BRIGHT |
| | 299 | STACKABLE BOOL FALSE |
| | 300 | DIFFABLE BOOL FALSE |
| | 301 | OFFNIGHT_DIFFS BOOL FALSE |
| | 302 | DESPERATE_DIFFS BOOL FALSE |
| | 303 | REDUCTION STR EUCLID_DEFAULT |
| | 304 | COMMENT STR Euclid.twi% |
| | 305 | END |
| | 306 | }}} |
| | 307 | |
| | 308 | Save this, and let's check that the built version of the config file is similar (bar this change). The reason to check is that we don't want to erase any genuine changes in the build version -- remember this is a little cheeky just putting the file there, but it's because of how tied the config is to the build. |
| | 309 | |
| | 310 | The build file is here: |
| | 311 | {{{ |
| | 312 | ~ippitc/psconfig/ipp-20170121.lin64/share/ippconfig/recipes/nightly_science.config |
| | 313 | }}} |
| | 314 | |
| | 315 | Diff them: |
| | 316 | {{{ |
| | 317 | diff nightly_science.config ~/src/ipp-20170121/ippconfig/recipes/nightly_science.config |
| | 318 | }}} |
| | 319 | |
| | 320 | If the only change is they one you're making great. In this case it was, so copy the src version across to the build version. |
| | 321 | |
| | 322 | |
| | 323 | ''' queuing Euclid twilight observations ''' by JRF |
| | 324 | |
| | 325 | We may have changed the config to recognise the new Euclid format, but there have already been observations taken under the new format that have not been processed. Therefore, we need to send them to processing. |
| | 326 | |
| | 327 | To do this we are going to do something similar to running the test quad: |
| | 328 | |
| | 329 | An example of the test quad (as a reminder): |
| | 330 | {{{ |
| | 331 | chiptool -dbname gpc2 -definebyquery -set_label MOPS.ps2testquad3.20190516ops -set_workdir neb://@HOST@.0/gpc2/MOPS.ps2testquad3.20190516ops -set_data_group MOPS.ps2testquad3.20190516ops -set_dist_group NULL -set_tess_id RINGS.V3 -set_end_stage warp -set_reduction SWEETSPOT -simple -exp_name o8507h0371o -pretend |
| | 332 | }}} |
| | 333 | |
| | 334 | For processing these exposures the label, work_dir, data_group, dist_group, and reduction need to be changed (and expname of course). |
| | 335 | {{{ |
| | 336 | chiptool -dbname gpc1 -definebyquery -set_label BrightTwi.nightlyscience -set_workdir neb://@HOST@.0/gpc1/BrightTwi.nt/2019/05/17/ -set_data_group BrightTwi.20190518 -set_dist_group NODIST -set_tess_id RINGS.V3 -set_end_stage warp -set_reduction EUCLID_DEFAULT -simple -exp_name -pretend |
| | 337 | }}} |
| | 338 | |
| | 339 | So previously, if we look at something that has been done: |
| | 340 | |
| | 341 | select * from chipRun WHERE data_group LIKE "BrightTwi.201905%"; |
| | 342 | |
| | 343 | TODO: script this up |
| | 344 | |
| | 345 | |
| | 346 | ''' wait state cleaning ''' by JRF |
| | 347 | |
| | 348 | Have a look to see what is still waiting: |
| | 349 | {{{ |
| | 350 | mysql -hscidbm -uX -pX gpc1 -B -e 'SELECT waitct,data_group,label from (SELECT count(*) as waitct,data_group,label FROM chipRun WHERE state like "wait" GROUP BY data_group) as s ORDER by waitct ASC;' |
| | 351 | }}} |
| | 352 | |
| | 353 | Choose a data group, and chuck it into the grinder: |
| | 354 | {{{ |
| | 355 | mysql -hscidbm -uX -pX gpc1 -B -e 'SELECT chip_id,data_group,label FROM chipRun WHERE state like "wait" and data_group like "LAP.ThreePi.2014%" and label not like "update.LAP.PV3" LIMIT 5000;' | grep -v data_group | awk '{print "chiptool -dbname gpc1 -updaterun -set_state goto_cleaned -set_label goto_cleaned -chip_id "$1}' | tcsh |
| | 356 | }}} |
| | 357 | Just replace the data_group with whichever you want to clean. |
| | 358 | Note that this one is limited to 5000 so as not to overload the system and that the label is not "update.LAP.PV3" so that we do not mess with the updates we're doing too. |
| | 359 | |
| | 360 | |
| | 361 | Have a check that they're doing ok: |
| | 362 | {{{ |
| | 363 | SELECT count(*), label FROM chipRun where state LIKE "goto_cleaned" GROUP BY label; |
| | 364 | }}} |
| | 365 | |
| | 366 | |