- PICARD recipe: SCUBA2_CHECK_RMS
- Offline pipeline recipe REDUCE_SCAN_CHECKRMS
/stardev
in Hilo or update your own version using rsync
(see http://starlink.jach.hawaii.edu/starlink/rsyncStarlink).
PICARD recipe: SCUBA2_CHECK_RMS
As usual, the PICARD recipe is designed to be run on processed data. To run it, type:
% picard -log sf -nodisplay SCUBA2_CHECK_RMS myfiles*.sdf
in the directory containing the files to be analyzed. You may notice a warning (cyan text) about missing NEP data: that doesn't affect the main analysis and can safely be ignored. However, if run in Hilo, the recipe can query the archive of log files generated by the QL pipelines for NEP data. These NEP data are used to determine an effective noise and NEFD from the timeseries noise calculations, which can then be compared with the other values.
The recipe can be given calibrated or uncalibrated maps: the default FCF will be applied to uncalibrated data. Note that these maps must be made from a single complete observation, either by hand with makemap
or the offline pipeline. Single observations must be used because the recipe relies on FITS header information that will be incorrect for coadded files. Note that maps made by the SUMMIT pipeline should not be given to this recipe; the SUMMIT pipeline will soon start recording the same CHECK_RMS data itself.
The input images are cropped to a circle of radius 90 arcsec from which the median noise and NEFD (the values RMS_MAP
and NEFD_MAP
in the log file) are calculated. The mean exposure time is estimated over the same map area (TEXP
). It's important to note that the RMS_MAP
is derived from the variance component in the map, and not from the map itself. This means that the results should be largely independent of the chosen makemap
config parameters, and are more likely to reflect changes in the number of samples that go into the map rather than any differences in spatial structure introduced by applying different high-pass filters in the map-maker.
The map size and scan type are read from the FITS header and used to define the observation type for the ITC. The RMS corresponding to this observation type is calculated from the SCUBA-2 ITC (RMS_ITC
); the integration time is used to convert that to a corresponding NEFD (NEFD_ITC
). However, it is important to note that if you have chosen a non-standard map size for a PONG then this recipe will be unable to calculate values from the ITC, rendering it somewhat less useful.
If the NEP data are available (in Hilo only, and for dates after 20120515), the average NEP for a given observation is calculated from the archived QL pipeline log file (log.nep
) corresponding to the date and wavelength of the input map. The FCF (either from the file or the standard value) and mean transmission over the observation is used to convert this to a zenith NEFD (NEFD_NEP
). The ITC scaled elapsed time is used to convert that to an RMS noise (RMS_NEP
).
The results are written to a log file called log.checkrms
, the format of which is described below.
The following recipe parameters are supported:
- KEEPFILES - if set to 1, the
_crop
files created during processing will be retained on disk, otherwise all intermediate files will be deleted. - MAP_RADIUS: radius (in arcsec) of the region used for calculating the map noise and NEFD. Default is 90 arcsec. Note that poor results can be derived if the map radius is too small and it may be more useful to use a larger radius for larger maps.
- STATS_ESTIMATOR: Statistical estimator for the NEFD and RMS calculated from the input map. May be mean or median - default is median.
Offline pipeline: REDUCE_SCAN_CHECKRMS
An alternative to the PICARD recipe, this recipe performs all the necessary steps on the raw data to do a complete self-consistent analysis for each observation, from calculating the timeseries noise to processing the data and comparing results with the ITC. The steps performed are:
- Calculate timeseries noise from the entire observation;
- Determine various values from the FITS headers (elapsed time, average airmass, elevation, optical depth, transmission, date etc);
- Make a map using the given config file (default if not specified);
- Calculate the noise (from the variance component), NEFD and exposure time within a 3-arcmin diameter circle at the map centre;
- Use the mapping parameters and elapsed time to derive the expected RMS and NEFD from the ITC;
- Write results to log file.
makemap
config file can be given (see below), it is possible to use this recipe as your main data reduction recipe (if the standard processing is sufficient), to avoid re-reducing data. Note that the recipe does not yet do any coadding, so currently output maps will have to be combined with MOSAIC_JCMT_IMAGES
.
To use it, run it like any other pipeline recipe. Initialize the pipeline in the usual way:
% oracdr_scuba2_XXX -cwd
Add the names of the relevant files to a text file (say, myfiles.lis
), and run the pipeline with:
% oracdr -log sf -nodisplay -loop file -files myfiles.lis REDUCE_SCAN_CHECKRMS
All of the recipe parameters supported by the default REDUCE_SCAN
recipe can be given to this recipe, the most important of which is likely to be MAKEMAP_CONFIG
for specifying an alternative config type for makemap
. If not given, the default config file (dimmconfig.lis
) is used. Note that the same config file will be used for all data so be sure to use an appropriate config.
Log file format
The log file, called log.checkrms
, produced by each method contain the following entries for each map (observation):
UT
- UT date including day fractionSource
- object name, upper case with spaces removedObs
- observation numberFILTER
- filter (wavelength)telapsed
- elapsed time of observation (sec)texp
- mean exposure time, derived from EXP_TIME NDF component (sec)trans
- mean line-of-sight transmissionnep_av
- mean NEP for current observation (W/sqrt(Hz))nep_av_err
- uncertainty innep_av
(W/sqrt(Hz))rms_nep
- RMS derived fromnefd_nep
(mJy/beam)nefd_nep
- NEFD derived fromnep_av
and scaled elapsed time (mJy sqrt(sec))rms_map
- RMS noise in map, obtained from median of error component (mJy/beam)nefd_map
- NEFD derived from combination of variance and exposure time images (mJy sqrt(sec))rms_itc
- RMS noise estimated by SCUBA-2 integration time calculator (ITC) (mJy/beam)nefd_itc
- NEFD derived fromrms_itc
and scaled elapsed time (mJy sqrt(sec))itc_obstype
- observation type used by the ITC to derived RMSrms_ratio
- ratio ofrms_map
torms_itc
El
- mean elevation in degreesCSO
- mean zenith optical depth at 225 GHz, derived from WVMTau
- mean zenith optical depth at the current wavelength (given by FILTER above)Radius
- radius in arcsec of image used in analysispixscale
- pixel scale in arcsecf
- ITC f parameterproject
- project ID
Note that ITC-derived values will be undefined if the PONG map size is non-standard.
So what should I look for?
The log file contains all the results of the analysis. It's worth comparing RMS_ITC
with the number you determined at the time your proposal was written. It's important to be aware that the PICARD and ORAC-DR recipes estimate values from the ITC using the actual observed airmass/opacity, rather than an average obtained from the source declination. This will undoubtedly lead to differences in the ITC-derived parameters.
Perhaps the most important number is the rms_ratio
which is the ratio of the RMS_MAP
to the RMS_ITC
. Ideally this value should be 1, though in practice that's rarely the case. Sometimes it's down to the region used for calculating the RMS being too small (in this case, increaseIf the results are very far from the expected values then contact your Friend of the Project to see if it's possible to work out why.
SUMMIT pipeline
While not yet released, the SUMMIT pipeline will also perform its own CHECK_RMS analysis and will write a corresponding log.checkrms
with the same format as for the other methods.
A few things to keep in mind when this is released:
- The NEP and derived values will be undefined (NaN) in the log file, as the SUMMIT pipeline does not have access to the QL log file data.
- An entry is written each time a new image is created, which may yield multiple entries for a given observation. However, each entry should be self-consistent.