GreenBankObservatory / antenna_plots_v2

GNU Affero General Public License v3.0
0 stars 0 forks source link

Per-Session Antenna Position Data #8

Closed tchamberlin closed 1 year ago

tchamberlin commented 1 year ago

Write a script that takes two positional arguments: antenna_fits_manifest_path and output_dir. Your script will load the set of paths from this file -- each line represents a path to an Antenna FITS file, then open the Antenna FITS file for each

You can create a test input file via ls /home/scratch/kwei/raw_data/*/Antenna/*.fits > ant_fits.txt

You could then run your script via $ create_session_parquet_files ./ant_fits.txt ./ant_pos_parquet/

In this example, your script would create the following files/structure:

$ tree ./ant_pos_parquet/
./ant_pos_parquet/
├── AGBT13B_312_25
│   └── AGBT13B_312_25.parquet
├── AGBT13B_312_34
│   └── AGBT13B_312_34.parquet
├── AGBT16A_353_104
│   └── AGBT16A_353_104.parquet
└── TRFI_021523_L1
    └── TRFI_021523_L1.parquet

4 directories, 4 files