1- # b4rpipe
1+ # b4r
22
3- [ ![ ] ( https://img.shields.io/pypi/v/b4rpipe.svg?label=PyPI&style=flat-square )] ( https://pypi.org/pypi/b4rpipe/ )
4- [ ![ ] ( https://img.shields.io/pypi/pyversions/b4rpipe.svg?label=Python&color=yellow&style=flat-square )] ( https://pypi.org/pypi/b4rpipe/ )
5- [ ![ License] ( https://img.shields.io/badge/license-MIT-blue.svg?label=License&style=flat-square )] ( LICENSE )
3+ [ ![ Release] ( https://img.shields.io/pypi/v/b4r?label=Release&color=cornflowerblue&style=flat-square )] ( https://pypi.org/project/b4r/ )
4+ [ ![ Python] ( https://img.shields.io/pypi/pyversions/b4r?label=Python&color=cornflowerblue&style=flat-square )] ( https://pypi.org/project/b4r/ )
5+ [ ![ Downloads] ( https://img.shields.io/pypi/dm/b4r?label=Downloads&color=cornflowerblue&style=flat-square )] ( https://pepy.tech/project/b4r )
6+ [ ![ Tests] ( https://img.shields.io/github/actions/workflow/status/b4r-dev/b4r/tests.yaml?label=Tests&style=flat-square )] ( https://github.com/b4r-dev/b4r/actions )
67
7- Pipeline reduction tools for B4R/ LMT data.
8+ Reduction and analysis tools for LMT/B4R
89
9- **************************************************************
10- Installation
11- **************************************************************
10+ ## Installation
1211
13- ``` terminal
14- $ pip install b4rpipe
12+ ``` shell
13+ pip install b4r==2024.7.0
1514```
1615
17- **************************************************************
18- Usage
19- **************************************************************
16+ ## Usage
2017
2118### Reduce individual data
2219
23- ``` terminal
24- $ python
25- $ >>> import b4rpipe as Bp
26- $ >>> Bp.globBaseDir = '/home/hoge/b4r'
27- $ >>> Bp.globLogDir = '/home/hoge/b4r/logv1'
28- $ >>> Bp.PipelineAnalysis(86420)
20+ ``` python
21+ import b4r.pipe as Bp
22+
23+
24+ Bp.globBaseDir = ' /home/hoge/b4r'
25+ Bp.globLogDir = ' /home/hoge/b4r/logv1'
26+ Bp.PipelineAnalysis(86420 )
2927```
3028
31- This example shows a pipeline analysis for the data obsid 86420.
29+ This example shows a pipeline analysis for the data obsid ` 86420 ` .
3230
3331### Reduce all data (for database)
3432
35- ``` terminal
36- $ python
37- $ >>> import b4rpipe as Bp
38- $ >>> Bp.globBaseDir = '/home/hoge/b4r'
39- $ >>> Bp.globLogDir = '/home/hoge/b4r/logv1'
40- $ >>> Bp.PipelineAnalysisBatchRun()
33+ ``` python
34+ import b4r.pipe as Bp
35+
36+ Bp.globBaseDir = ' /home/hoge/b4r'
37+ Bp.globLogDir = ' /home/hoge/b4r/logv1'
38+ Bp.PipelineAnalysisBatchRun()
4139```
4240
4341You need to specify following pathes.
44- #### b4pipe.globBaseDir
45- * The path where "xffts" and "lmttpm" directorys are located.
46- * XFFTS binary data (e.g., xffts20181003111006.xfftsx.01) should be stored under the "xffts" directory.
47- * LMT antenna log data (e.g., lmttpm_2018-04-22_075858_01_0000.nc) should be stored under the "lmttpm" directory.
48-
49- #### b4rpipe.globLogDir
50- * The path where outputs are created.
51- * Anywhere you like is OK.
52-
53- **************************************************************
54- Products
55- **************************************************************
56- The script create following outputs (if possible).
5742
58- * Continuum Map Qlook (Pointing offset, efficiency (only for uranus), etc.)
59- * Line (SiO) Map Qlook (Pointing offset, etc.)
60- * Spectrum Qlook (with auto-flag)
61- * Time series spectrum of PSW data (numpy readable format)
62- * GoDec calibration results (see Taniguch et al. 2021)
63- * MS2 (CASA readable format)
64-
65- **************************************************************
66- Data query and download (only for internal use now)
67- **************************************************************
68- If you are in the NAOJ or IoA (U. Tokyo) local network, you can access the B4R ftp server.
69-
70- ``` terminal
71- $ python
72- $ >>> import b4rpipe as Bp
73- $ >>> Bp.PipelineAnalysis(86420,DataDownload=True,username='hogehoge',password='*****')
74- ```
43+ #### b4r.pipe.globBaseDir
7544
76- Then "rawdata" and "calibrated" directory appears at the current directory.
45+ - The path where ` xffts ` and ` lmttpm ` directories are located.
46+ - XFFTS binary data (e.g., ` xffts20181003111006.xfftsx.01 ` ) should be stored under the ` xffts ` directory.
47+ - LMT antenna log data (e.g., ` lmttpm_2018-04-22_075858_01_0000.nc ` ) should be stored under the ` lmttpm ` directory.
7748
78- ``` terminal
79- $ ls
80- raw calibrated
81- $ ls rawdata
82- lmttpm xffts
83- $ls calibrated
84- 86420
85- ```
49+ #### b4r.pipe.globLogDir
50+
51+ - The path where outputs are created.
52+ - Anywhere you like is OK.
8653
87- **************************************************************
88- Correspondence
89- **************************************************************
90- + B4R 2018/2019 (obsnum<=087433) data <-> CASA MS2
54+ ## Products
55+
56+ The script create following outputs (if possible).
57+
58+ - Continuum Map Qlook (Pointing offset, efficiency (only for uranus), etc.)
59+ - Line (SiO) Map Qlook (Pointing offset, etc.)
60+ - Spectrum Qlook (with auto-flag)
61+ - Time series spectrum of PSW data (NumPy readable format)
62+ - GoDec calibration results (see Taniguchi et al. 2021)
63+ - MS2 (CASA readable format)
64+
65+ ## Correspondence
66+
67+ B4R 2018/2019 (obsnum<=087433) data <-> CASA MS2:
9168
9269| Name | B4R | CASA MS2 |
9370| --- | --- | --- |
@@ -96,9 +73,6 @@ Correspondence
9673| sideband | LSB | spw 0 |
9774| sideband | USB | spw 1 |
9875
99- **************************************************************
100- Information
101- **************************************************************
102- * B4R webpage: http://lmtgtm.org/b4r/?lang=en
103- * Contact: Yuki Yoshimura
104- (email: astro.yoshimura(_ at_ )gmail.com)
76+ ## Information
77+
78+ - B4R webpage: http://lmtgtm.org/b4r/?lang=en
0 commit comments