-
Notifications
You must be signed in to change notification settings - Fork 0
/
harp_archival_steps.txt
62 lines (44 loc) · 1.99 KB
/
harp_archival_steps.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
############################################
#HARP archival data products analysis
############################################
(1) statup starlink
starlink
kappa
smurf
convert
(2)set input/output directories
datadir=path/to/data
export ORAC_DATA_IN=$datadir
export ORAC_DATA_OUT=$datadir
(3)convert fits to ndf file
fits2ndf jcmt_archivalfile.fits jcmt_archivalfile.sdf
(4) archival reduced data has a GHz velocity axis that is in the baryocentric frame, we need to fix this
# Set the 3rd axis of the coordinate system to be in units of radio velocity
wcsattrib ndf=jcmt_archivalfile.sdf mode=set name=system\(3\) newval=vrad
# Set the standard of rest to be the LSRK
wcsattrib ndf=jcmt_archivalfile.sdf mode=set name=StdofRest newval=LSRK
#rewrite fixed files
ndf2fits jcmt_archivalfile.sdf jcmt_archivalfile_vrad.fits
fits2ndf jcmt_archivalfile_vrad.fits jcmt_archivalfile_vrad.sdf
(5) archival reduced data has Ta* temp scale, need to change to Tmb to fix temp scale
cdiv in=jcmt_archivalfile_vrad.sdf scalar=0.63 out=jcmt_archivalfile_vrad_tmb.sdf
(6) (optionl) crop map to area of interest
#open in gaia to make mask first (image-analysis,image regions,save ard description)
gaia jcmt_archivalfile_vrad_tmb.sdf
ardmask jcmt_archivalfile_vrad_tmb.sdf inside=False ard=jcmt_mask out=jcmt_archivalfile_vrad_tmb_crop.sdf
ndfcopy jcmt_archivalfile_vrad_tmb_crop.sdf trimbad out=jcmt_archivalfile_vrad_tmb_crop_trim.sdf
(7) make moment 0 map
#################
params_moments.lst
###################
[CREATE_MOMENTS_MAP]
BASELINE_ORDER = 1
FREQUENCY_SMOOTH = 10
SPATIAL_SMOOTH = 5
MOMENTS_LOWER_VELOCITY = -110
MOMENTS_UPPER_VELOCITY = 0
#################
picard -recpars params_moments.lst CREATE_MOMENTS_MAP jcmt_archivalfile_vrad_tmb_crop_trim.sdf -log sf
gaia jcmt_archivalfile_vrad_tmb_crop_integ.sdf
ndf2fits jcmt_archivalfile_vrad_tmb_crop_integ.sdf jcmt_archivalfile_vrad_tmb_crop_integ.fits
(8) may need to reproject to better coordinate frame. If you have template image, can use reproject package in python