-
Notifications
You must be signed in to change notification settings - Fork 210
Add observation preparation job for aerosols DA to workflow #2624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
f7ea78c
9d5aeb7
a8faff2
bdc5338
c014ae1
8d64fdd
5c31d4a
1b7482a
c224002
8beebee
68d3e2c
18f11fb
7a631d9
8f78765
25616c4
8bc479a
03324f5
3db2938
8fa0ecd
777437f
bfdfe07
43ec97c
beaed42
d0aa0da
f5bd885
adbe97c
a941154
cac1e3d
75b6d6b
5dd514b
8d0ce42
7f6d171
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| #! /usr/bin/env bash | ||
|
|
||
| source "${HOMEgfs}/ush/preamble.sh" | ||
| source "${HOMEgfs}/ush/jjob_header.sh" -e "prepobsaero" -c "base prepobsaero" | ||
|
|
||
| ############################################## | ||
| # Set variables used in the script | ||
| ############################################## | ||
|
|
||
| export COMIN_OBS="${DATA}" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this right? this means the input OBS would come from the current working directory
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agree.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will likely need to be updated, but that can wait since the new job is now off by default. Can you create an issue for this @CoryMartin-NOAA?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| YMD=${PDY} HH=${cyc} declare_from_tmpl -rx COMOUT_OBS:COM_OBS_TMPL | ||
|
|
||
| ############################################## | ||
| # Begin JOB SPECIFIC work | ||
| ############################################## | ||
|
|
||
| ############################################################### | ||
| # Run relevant script | ||
|
|
||
| EXSCRIPT=${GDASPREPAEROOBSPY:-${SCRgfs}/exglobal_prep_obs_aero.py} | ||
| ${EXSCRIPT} | ||
| status=$? | ||
| [[ ${status} -ne 0 ]] && exit "${status}" | ||
|
|
||
|
|
||
| ############################################## | ||
| # End JOB SPECIFIC work | ||
| ############################################## | ||
|
|
||
| ############################################## | ||
| # Final processing | ||
| ############################################## | ||
| if [[ -e "${pgmout}" ]] ; then | ||
| cat "${pgmout}" | ||
| fi | ||
|
|
||
| ########################################## | ||
| # Remove the Temporary working directory | ||
| ########################################## | ||
| cd "${DATAROOT}" || exit | ||
| [[ "${KEEPDATA}" = "NO" ]] && rm -rf "${DATA}" | ||
|
|
||
| exit 0 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| #! /usr/bin/env bash | ||
|
|
||
| source "${HOMEgfs}/ush/preamble.sh" | ||
|
|
||
| ############################################################### | ||
| # Source UFSDA workflow modules | ||
| . "${HOMEgfs}/ush/load_ufsda_modules.sh" | ||
| status=$? | ||
| [[ ${status} -ne 0 ]] && exit "${status}" | ||
|
|
||
| export job="prepobsaero" | ||
| export jobid="${job}.$$" | ||
|
|
||
| ############################################################### | ||
| # setup python path for workflow utilities and tasks | ||
| wxflowPATH="${HOMEgfs}/ush/python:${HOMEgfs}/ush/python/wxflow/src" | ||
| PYTHONPATH="${PYTHONPATH:+${PYTHONPATH}:}${wxflowPATH}" | ||
| export PYTHONPATH | ||
|
|
||
| ############################################################### | ||
| # Execute the JJOB | ||
| "${HOMEgfs}/jobs/JGLOBAL_PREP_OBS_AERO" | ||
| status=$? | ||
| exit "${status}" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| #!/bin/bash -x | ||
|
|
||
| ########## config.prepobsaero ########## | ||
| # Prepare and thin/superob aerosol observations | ||
|
|
||
| echo "BEGIN: config.prepobsaero" | ||
|
|
||
| # Get task specific resources | ||
| source "${EXPDIR}/config.resources" prepobsaero | ||
|
|
||
| export OBSPROCYAML="${PARMgfs}/gdas/aero/obs/lists/gdas_aero_obsproc.yaml.j2" | ||
| export OBSPROCEXE="${EXECgfs}/gdas_obsprovider2ioda.x" | ||
| export VIIRS_DATA_DIR="/scratch2/NCEPDEV/stmp3/Yaping.Wang/VIIRS/AWS/" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ypwang19 can you download the obs for 2021-12-20 18z and 2021-12-21 00z and provide them to @WalterKolczynski-NOAA so that they can be staged in the proper spot for the CI test.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps this could be wrapped into the new issue. |
||
| export SENSORS="npp,n20" | ||
|
|
||
|
|
||
| echo "END: config.prepaeroobs" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,7 +13,7 @@ if (( $# != 1 )); then | |
| echo "atmanlinit atmanlvar atmanlfv3inc atmanlfinal" | ||
| echo "atmensanlinit atmensanlletkf atmensanlfv3inc atmensanlfinal" | ||
| echo "snowanl" | ||
| echo "aeroanlinit aeroanlrun aeroanlfinal" | ||
| echo "prepobsaero aeroanlinit aeroanlrun aeroanlfinal" | ||
| echo "anal sfcanl analcalc analdiag fcst echgres" | ||
| echo "upp atmos_products" | ||
| echo "tracker genesis genesis_fsu" | ||
|
|
@@ -289,6 +289,14 @@ case ${step} in | |
| export npe_node_snowanl=$(( npe_node_max / nth_snowanl )) | ||
| ;; | ||
|
|
||
| "prepobsaero") | ||
| export wtime_prepobsaero="00:30:00" | ||
| export npe_prepobsaero=1 | ||
| export nth_prepobsaero=1 | ||
| export npe_node_prepobsaero=1 | ||
| export memory_prepobsaero="96GB" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this prep job really need this much memory?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably not, but it is somewhat intensive, but this is probably an order of magnitude too large, I can test next week with less memory
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can be addressed later. |
||
| ;; | ||
|
|
||
| "aeroanlinit") | ||
| # below lines are for creating JEDI YAML | ||
| case ${CASE} in | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| #!/usr/bin/env python3 | ||
| # exglobal_prep_obs_aero.py | ||
| # This script collect available viirs | ||
| # obs files, combine and preprocess | ||
| # them. | ||
| import os | ||
|
|
||
| from wxflow import Logger, cast_strdict_as_dtypedict | ||
| from pygfs.task.aero_prepobs import AerosolObsPrep | ||
|
|
||
| # Initialize root logger | ||
| logger = Logger(level='DEBUG', colored_log=True) | ||
|
|
||
|
|
||
| if __name__ == '__main__': | ||
|
|
||
| # Take configuration from environment and cast it as python dictionary | ||
| config = cast_strdict_as_dtypedict(os.environ) | ||
|
|
||
| AeroObs = AerosolObsPrep(config) | ||
| AeroObs.initialize() | ||
| AeroObs.runConverter() | ||
| AeroObs.finalize() |
Uh oh!
There was an error while loading. Please reload this page.