Skip to content

Feature/rrfs dev2#22

Merged
TrevorAlcott-NOAA merged 23 commits into
NOAA-GSL:feature/RRFS_dev2from
hu5970:feature/RRFS_dev2
Dec 31, 2020
Merged

Feature/rrfs dev2#22
TrevorAlcott-NOAA merged 23 commits into
NOAA-GSL:feature/RRFS_dev2from
hu5970:feature/RRFS_dev2

Conversation

@hu5970
Copy link
Copy Markdown

@hu5970 hu5970 commented Dec 11, 2020

DESCRIPTION OF CHANGES:

This PR is to add the following data preprocess for RRFS:

  1. NSSL mosaic
  2. Lightning NetCDF (NLDN obs)
  3. METAR cloud observations
  4. NASA LaRC cloud products
  5. Lightning BUFR (operation obs)

This PR also adds two analysis applications for RRFS:

  1. radar temperature tendency analysis from radar and lightning
  2. standalone no-var cloud analysis

TESTS CONDUCTED:

The components are tested:
/mnt/lfs4/BMC/rtwbl/mhu/rrfs/dev2/RRFS_dev2

Will put those components to RRFS_dev2 soon.

ISSUE (optional):

The radar then and no-var cloud analysis are not used in the forecast step. Will link them into the cycling in next PR.

CONTRIBUTORS (optional):

Ming.Hu@noaa.gov

test $(find <cyclestr offset="-{{ extrn_mdl_lbcs_offset_hrs }}:00:00">{{ extrn_mdl_sysbasedir_lbcs }}/@Y@m@d@H/postprd</cyclestr> \
test $(find <cyclestr offset="-{{ extrn_mdl_lbcs_offset_hrs }}:00:00">{{ extrn_mdl_sysbasedir_lbcs }}/@Y@m@d@H/postprd/</cyclestr> \
-name wrfnat_rr_[0-3][0-9].grib2 -mmin +5 | wc -l) \
== 40
Copy link
Copy Markdown

@TrevorAlcott-NOAA TrevorAlcott-NOAA Dec 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This dependency is only satisfied if the RAP forecast length is 39 hours (0 thru 39 = 40 files), or if you just happen to catch it when wrfnat_rr_xx.grib2 files have been generated for 40 of the 52 hours. This will probably lead to a lot of missed dacycles. I think you need some logic in here to look for 52 files when processing 03,09,15,21z RAP, or 22 files at all other hours, or a way to look for only the RAP files required to provide LBCs for the given dacycle or full forecast

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trevor,

I found this issue and manually changed this check to find smaller number of the RAP forecast files in dev2.
I will leave this problem to the future PR. We need to check the forecast length for boundary. We also should let this step start if certain time passed and the scripts should check older RAP cycles for the boundary.

Thanks,
Ming

@TrevorAlcott-NOAA
Copy link
Copy Markdown

I was able to get most of the pieces in your workflow PR to run successfully in real time. A complete test would take longer just because we don’t have a recent set of “RESTART” files available due to the downtime, so the analysis step fails for the DA cycles due to missing ICs. If you can confirm you got all of this to run successfully in your own tests, I’ll approve the PR to get things moving. Can you just briefly say how you get these runs started (it seems like you need an existing dev2 system or this won't work)?

@TrevorAlcott-NOAA
Copy link
Copy Markdown

TrevorAlcott-NOAA commented Dec 17, 2020

Also note that this PR depends on the ufs-srweather-app PR, because we need the install.sh fix in order to get the new DA executables where they need to be in /exec (NOAA-GSL/ufs-srweather-app#3)

@christinaholtNOAA
Copy link
Copy Markdown
Collaborator

@hu5970 Could you resolve the conflicts before the review? I think many of them are duplicates from the previous PR.

Copy link
Copy Markdown
Collaborator

@christinaholtNOAA christinaholtNOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of the comments here are related to comments and the duplication of information. I only left a couple of comments, but please consider applying that notion to the other scripts where it makes sense.

Comment thread jobs/JREGIONAL_NOVARCLD Outdated
WORKDIR=${CYCLE_DIR}/novar_cldana
if [ -r ${WORKDIR} ]; then
rm -fr ${WORKDIR}
fi
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This logic is not necessary (same is true in other jobs scripts).

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed all the scripts.

@@ -0,0 +1,315 @@
#!/bin/bash
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name of this script uses yet another abbreviation of "analysis". Please consider renaming it to use "anl" for clarity and consistency. I'd suggest the same for the executable name, too.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed from cldana to cldanl.

Comment thread scripts/exregional_process_bufr.sh
Comment thread scripts/exregional_process_bufr.sh Outdated
#
#-----------------------------------------------------------------------
#
# link/copy observation files to working directory
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is not accurate.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment thread scripts/exregional_process_bufr.sh
Comment thread scripts/exregional_process_bufr.sh
Comment thread scripts/exregional_process_lightning.sh
Comment thread scripts/exregional_process_lightning.sh
Comment thread scripts/exregional_process_lightning.sh Outdated
#-----------------------------------------------------------------------
#
$APRUN ./process_Lightning_nc.exe < lightning.namelist > stdout 2>&1 || print_err_msg_exit "\
Call to executable to run radar refl process returned with nonzero exit code."
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This error comment is inaccurate.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment thread ush/addtten.py
@hu5970
Copy link
Copy Markdown
Author

hu5970 commented Dec 18, 2020

@TrevorAlcott-NOAA @TrevorAlcott-NOAA Just updated the code based on the comments. Please review. Thanks.

Comment thread scripts/exregional_process_bufr.sh
Comment thread scripts/exregional_process_bufr.sh
Comment thread scripts/exregional_process_bufr.sh
Comment thread scripts/exregional_process_bufr.sh
Comment thread ush/config.sh.RRFS_AK_dev1 Outdated
@@ -0,0 +1,74 @@
MACHINE="jet"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should not be included in this branch.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deleted

@hu5970
Copy link
Copy Markdown
Author

hu5970 commented Dec 23, 2020

@christinaholtNOAA @TrevorAlcott-NOAA Do you have further review comments on this PR?

Copy link
Copy Markdown
Collaborator

@christinaholtNOAA christinaholtNOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hu5970 Just a couple more comments on duplication of information. I think it looks good after this, though! :)

The executable specified in EXEC does not exist:
EXEC = \"$EXEC\"
Build executable and rerun."
fi
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is relevant in many of the ex-scripts, and sometimes multiple times.

Since the name of the executable is left unchanged, please consider the following alternative to address the duplication of information (name of file is here multiple times):

cp_vrfy ${EXEC} ${WORKDIR}

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will make the change in the next PR.

else
print_info_msg "$VERBOSE" "Warning: ${obs_file} does not exist!"
fi

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please consider making the above section a loop to reduce the number of repeats. It's easier to maintain in the long run.


for obs_file in ${obs_files[@]} ; do
  if [ -r "${obs_file}" ]; then
     cp_vrfy "${obs_file}" $WORKDIR
  else
     print_info_msg "$VERBOSE" "Warning: ${obs_file} does not exist!"
  fi
done

Copy link
Copy Markdown
Author

@hu5970 hu5970 Dec 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need more change here to make it work. Most of the observation files used in DA code have different name from their files name during generation. Need to pair the observation file name with the ones used in the DA first.

@hu5970
Copy link
Copy Markdown
Author

hu5970 commented Dec 29, 2020

@christinaholtNOAA Your suggested changes are good. But please merge this PR first. I have another PR now and will make your suggested change in the new PR. Thanks, Ming

@TrevorAlcott-NOAA TrevorAlcott-NOAA merged commit 145796e into NOAA-GSL:feature/RRFS_dev2 Dec 31, 2020
EdwardColon-NOAA pushed a commit to EdwardColon-NOAA/regional_workflow that referenced this pull request Sep 24, 2023
guoqing-noaa pushed a commit to guoqing-noaa/regional_workflow that referenced this pull request Sep 15, 2024
Modify production generation job for real-time parallel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants