mirror of
https://gitea.psi.ch/APOG/acsmnode.git
synced 2025-07-02 22:20:48 +02:00
Add new step to remove inletP or in general a column from nas file
This commit is contained in:
@ -56,6 +56,7 @@
|
|||||||
"from pipelines.steps.update_actris_header import main as update_actris_header\n",
|
"from pipelines.steps.update_actris_header import main as update_actris_header\n",
|
||||||
"from pipelines.steps.utils import load_project_yaml_files\n",
|
"from pipelines.steps.utils import load_project_yaml_files\n",
|
||||||
"from pipelines.steps.update_datachain_params import main as update_datachain_params\n",
|
"from pipelines.steps.update_datachain_params import main as update_datachain_params\n",
|
||||||
|
"from pipelines.steps.drop_column_from_nas_file import main as drop_column_from_nas_file\n",
|
||||||
"\n",
|
"\n",
|
||||||
"campaign_descriptor = load_project_yaml_files(project_path, \"campaignDescriptor.yaml\")\n",
|
"campaign_descriptor = load_project_yaml_files(project_path, \"campaignDescriptor.yaml\")\n",
|
||||||
"YEAR = campaign_descriptor['year']\n",
|
"YEAR = campaign_descriptor['year']\n",
|
||||||
@ -231,6 +232,25 @@
|
|||||||
"prepare_ebas_submission([PATH1, PATH2, PATH3], PATH4, month)\n"
|
"prepare_ebas_submission([PATH1, PATH2, PATH3], PATH4, month)\n"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "markdown",
|
||||||
|
"metadata": {},
|
||||||
|
"source": [
|
||||||
|
"## Step 5.1: Remove inletP column from a generated nas file\n",
|
||||||
|
"* Select a nas file from the data folder"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": null,
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"#path_to_data_file = '../data/CH0001G.20240201010000.20250519140310.aerosol_mass_spectrometer.chemistry_ACSM.pm1_non_refractory.2mo.1h.CH02L_Aerodyne_ToF-ACSM_017.CH02L_Aerodyne_ToF-ACSM_JFJ.lev2.nas'\n",
|
||||||
|
"path_to_data_file = '../data/CH0002G.20240201010000.20250521074436.aerosol_mass_spectrometer.chemistry_ACSM.pm1_non_refractory.7w.1h.CH02L_Aerodyne_ToF-ACSM_092.CH02L_Aerodyne_ToF-ACSM_PAY.lev2.nas'\n",
|
||||||
|
"drop_column_from_nas_file(path_to_data_file, column_to_remove='inletP')"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
|
Reference in New Issue
Block a user