Skip to content

Commit 5d260e1

Browse files
authored
Merge pull request #192 from esowc/branch-alba
Improve functions args definition and variable names
2 parents a0f7953 + 08c4ccb commit 5d260e1

13 files changed

+17879
-17969
lines changed

functions/functions_cams.ipynb

Lines changed: 114 additions & 114 deletions
Large diffs are not rendered by default.

functions/functions_general.ipynb

Lines changed: 273 additions & 236 deletions
Large diffs are not rendered by default.

functions/functions_gome.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
" Args:\n",
4949
" component_nom (str): Component chemical nomenclature\n",
5050
" date (str): Query date\n",
51-
" satellite (str): A, B and/or C referring to METOP series\n",
51+
" satellite (str): A, B or C referring to Metop satellites\n",
5252
" \"\"\"\n",
5353
" \n",
5454
" year = date.split('-')[0]\n",
@@ -109,7 +109,7 @@
109109
"\n",
110110
" sensor_ds_ABC = []\n",
111111
"\n",
112-
" # Combine data from METOP-A, METOP-B and METOP-C\n",
112+
" # Combine data from Metop-A, Metop-B and Metop-C\n",
113113
" GOME_product_path = os.path.join('/', '/'.join(\n",
114114
" os.getcwd().split('/')[1:3]), 'adc-toolbox', \n",
115115
" os.path.relpath('data/gome/' + component_nom + '/L3/' + year + '-' + month))\n",
@@ -156,7 +156,7 @@
156156
" Args:\n",
157157
" component_nom (str): Component chemical nomenclature\n",
158158
" date (str): Query date\n",
159-
" satellite (str): A, B and/or C referring to METOP series\n",
159+
" satellite (str): A, B or C referring to Metop satellites\n",
160160
" \"\"\"\n",
161161
"\n",
162162
" year = date.split('-')[0]\n",
@@ -316,7 +316,7 @@
316316
" Args:\n",
317317
" component_nom (str): Component chemical nomenclature\n",
318318
" date (str): Query date\n",
319-
" satellite (str): A, B and/or C referring to METOP series\n",
319+
" satellite (str): A, B or C referring to Metop satellites\n",
320320
" \"\"\"\n",
321321
" \n",
322322
" GOME_product_path = os.path.join('/', '/'.join(\n",
@@ -358,7 +358,7 @@
358358
" print(product_name, 'was downloaded.')\n",
359359
"\n",
360360
" else:\n",
361-
" print(f'The datasets for {date} and METOP-{satellite} are not available.')"
361+
" print(f'The datasets for {date} and Metop-{satellite} are not available.')"
362362
]
363363
},
364364
{

functions/functions_iasi.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
" Args:\n",
6767
" component_nom (str): Component chemical nomenclature\n",
6868
" date (str): Query date\n",
69-
" satellite (str): A, B and/or C referring to METOP series\n",
69+
" satellite (str): A, B or C referring to Metop satellites\n",
7070
" \"\"\"\n",
7171
" \n",
7272
" cnl = component_nom.lower()\n",
@@ -136,7 +136,7 @@
136136
"\n",
137137
" sensor_ds_ABC = []\n",
138138
"\n",
139-
" # Combine data from METOP-A, METOP-B and METOP-C\n",
139+
" # Combine data from Metop-A, Metop-B and Metop-C\n",
140140
" IASI_product_path = os.path.join('/', '/'.join(\n",
141141
" os.getcwd().split('/')[1:3]), 'adc-toolbox', \n",
142142
" os.path.relpath('data/iasi/' + component_nom + '/L3/' + year + '-' + month))\n",
@@ -183,7 +183,7 @@
183183
" year (str): Year of dataset\n",
184184
" month (str): Month of dataset\n",
185185
" day (str): Day of dataset\n",
186-
" satellite (str): A, B and/or C referring to METOP series\n",
186+
" satellite (str): A, B or C referring to Metop satellites\n",
187187
"\n",
188188
" Returns:\n",
189189
" version (str): IASI dataset version\n",
@@ -241,7 +241,7 @@
241241
" Args:\n",
242242
" component_nom (str): Component chemical nomenclature\n",
243243
" date (str): Query date\n",
244-
" satellite (str): A, B and/or C referring to METOP series\n",
244+
" satellite (str): A, B or C referring to Metop satellites\n",
245245
" \"\"\"\n",
246246
"\n",
247247
" cnl = component_nom.lower()\n",

functions/functions_tropomi.ipynb

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@
5757
" Args:\n",
5858
" component_nom (str): Component chemical nomenclature\n",
5959
" dates (list): Available dates\n",
60-
"\n",
60+
" at_res (float): Spatial resolution for latitude\n",
61+
" lon_res (float): Spatial resolution for longitude\n",
62+
" \n",
6163
" Returns:\n",
6264
" sensor_ds (xarray): TROPOMI dataset in xarray format\n",
6365
" \"\"\"\n",
@@ -532,12 +534,12 @@
532534
" Subset dataset into desired bounding box.\n",
533535
"\n",
534536
" Args:\n",
535-
" sensor_ds_time (xarray): TROPOMI dataset in xarray format per time\n",
537+
" sensor_ds_time (xarray): Sensor dataset in xarray format at specific time\n",
536538
" bbox (arr): Query bounding box\n",
537539
" component_nom (str): Component chemical nomenclature\n",
538540
" \n",
539541
" Returns:\n",
540-
" sensor_ds_time (xarray): TROPOMI dataset in xarray format\n",
542+
" sensor_ds_time (xarray): Sensor dataset in xarray format at specific time\n",
541543
" \"\"\"\n",
542544
"\n",
543545
" # Read lookup table\n",
@@ -578,13 +580,13 @@
578580
" (in latitude and longitudes) and interpolate values in pressure\n",
579581
"\n",
580582
" Args:\n",
581-
" match_df (dataframe): Dataframe used to apply averaging kernels\n",
582-
" model_ds_time (xarray): Model levels dataset in xarray format per time\n",
583-
" sensor_ds_time (xarray): TROPOMI dataset in xarray format per time\n",
583+
" match_df (dataframe): Merge table with total or partial columns from both datasets\n",
584+
" model_ds_time (xarray): Model dataset in xarray format at specific time\n",
585+
" sensor_ds_time (xarray): Sensor dataset in xarray format at specific time\n",
584586
" component_nom (str): Component chemical nomenclature\n",
585587
" \n",
586588
" Returns:\n",
587-
" match_df (dataframe): Dataframe used to apply averaging kernels\n",
589+
" match_df (dataframe): Merge table with total or partial columns from both datasets\n",
588590
" \"\"\"\n",
589591
"\n",
590592
" print('WARNING: The application of averaging kernels will take some time.')\n",

main_cams_gome_L2.ipynb

Lines changed: 17086 additions & 17074 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)