Skip to content
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

Feature/firewx #33

Merged

Conversation

PerryShafran-NOAA
Copy link
Contributor

Pull Request Testing

  • [X ] Describe testing already performed for this Pull Request:

Extensive daily testing of the system

  • Recommend testing for the reviewer(s) to perform, including the location of input datasets, and any additional instructions:
  1. Clone the repository https://github.com/PerryShafran-NOAA/EVS.git
  2. Change directory name to EVS2
  3. Checkout feature/firewx
  4. Run the file /lfs/h2/emc/vpppg/save/$USER/EVS2/ecf/cam/stats/run_firewx_stats.sh to run all 24 hours.
  5. Small stat files would be located in /lfs/h2/emc/vpppg/noscrub/$USER/evs/v1.0/stats/cam/atmos.20221109/nam_firewxnest/grid2obs
  6. Final stat file would be located in /lfsh2/emc/vpppg/noscrub/$USER/evs/1.0.stats/cam/nam_firewxnest.$VDATE
  • [X ] Has the code been checked to ensure that no errors occur during the execution? [Yes or No]

  • Do these updates/additions include sufficient testing updates? [Yes or No]

  • Please complete this pull request review by [Fill in date].

Pull Request Checklist

  • [ X] Review the source issue metadata (required labels, projects, and milestone).

  • [X ] Complete the PR description above.

  • [ X] Ensure the PR title matches the feature branch name.

  • Check the following:

  • [ X] Instructions provided on how to run

  • [X ] Developer's name is replaced by ${user} where necessary throughout the code

  • [ X] Check that the ecf file has all the proper definitions of variables

  • [X ] Check that the jobs file has all the proper settings of COMIN and COMOUT and other input variables

  • [ X] Check to see that the output directory structure is followed

  • [ X] Be sure that you are not using MET utilities outside the METplus wrapper structure

  • After submitting the PR, select Development issue with the original issue number.

  • After the PR is approved, merge your changes. If permissions do not allow this, request that the reviewer do the merge.

  • Close the linked issue.

@PerryShafran-NOAA
Copy link
Contributor Author

You may work on the PR now. I changed my scripts from ksh to bash, and when I did so I noticed some errors in the number processing. I made some modifications and now it's working normally now.

Thanks!

Perry

@AliciaBentley-NOAA
Copy link
Contributor

AliciaBentley-NOAA commented Nov 14, 2022 via email

@ShelleyMelchior-NOAA
Copy link
Contributor

I have checked out feature branch feature/firewx. I will commence the next steps soon.

@PerryShafran-NOAA
Copy link
Contributor Author

Hold once again, as I'm figuring out that StatAnalysis can only gather one data type at a time, which is why PBL stat lines were missing from the gathered output. I should have an update later on today.

@PerryShafran-NOAA
Copy link
Contributor Author

Changes made, ready for testing!

@ShelleyMelchior-NOAA
Copy link
Contributor

Can this dir be removed? It should not be in the repository. It is full of binary files.
ush/cam/__pycache__/

@PerryShafran-NOAA
Copy link
Contributor Author

Yes, it can be removed.

@ShelleyMelchior-NOAA
Copy link
Contributor

I was able to test this PR running from my user environment. I generated stat files in both COMOUTsmall and COMOUTfinal. Perry has been informed and my output is under his review to make sure it agrees with his output.
/lfs/h2/emc/obsproc/noscrub/shelley.melchior/evs/v1.0/stats/cam

@PerryShafran-NOAA
Copy link
Contributor Author

The final output file is now identical with Shelley's test.

Perry

Copy link
Contributor

@ShelleyMelchior-NOAA ShelleyMelchior-NOAA left a comment

Choose a reason for hiding this comment

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

Some binary files wriggled their way back into the PR. Please remove them. (ush/cam/pycache/cam_util.cpython-38.pcyc
Please update line 55 of JEVS_CAM_STATS.

@@ -52,6 +52,7 @@ export COMINobs=${COMINobs:-$(compath.py ${envir}/com/obsproc/${obsproc_ver})}
export COMOUT=${COMOUT:-$(compath.py ${NET}/${evs_ver}/${STEP}/${COMPONENT}/${RUN})}
export COMOUTsmall=${COMOUTsmall:-$(compath.py ${NET}/${evs_ver}/${STEP}/${COMPONENT}/${RUN}.${VDATE}/${MODELNAME}/${VERIF_CASE})}
export COMOUTfinal=${COMOUTfinal:-$(compath.py ${NET}/${evs_ver}/${STEP}/${COMPONENT}/${MODELNAME}.${VDATE})}
mkdir -p $COMOUTfinal
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a good start, but the mkdir command needs to be for $COMOUT specifically. See examples in $PACKAGEROOT for other models or networks. The reason is b/c COMOUTsmall and COMOUTfinal depend on the existence of COMOUT (COMOUT is in their parent path). COMOUTsmall and COMOUTfinal do not need to be created at the J-job level. Downstream scripting properly creates those dirs before there are any attempts to write to them (lines 103 and 108 of exevs_nam_firewxnest_grid2obs_stats.sh).
It also does not hurt to adopt the NCO option of "-m 775". So I suggest line 55 should be:
mkdir -m 775 -p $COMOUT

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I changed the mkdir line to this specification.

I don't see the pycache directory at all in the ush directory:

https://github.com/PerryShafran-NOAA/EVS/tree/feature/firewx/ush/cam

Perry

@ShelleyMelchior-NOAA
Copy link
Contributor

Great! I see the update to JEVS_CAM_STATS.
Re: the ush pcache dir, I still see it in my clone after a git pull, but I won't sweat it for now. We will have to do a general sweep at some point once the auth repo is fully populated to remove all binary files.

@ShelleyMelchior-NOAA
Copy link
Contributor

The PR is now approved and merged!

@ShelleyMelchior-NOAA ShelleyMelchior-NOAA merged commit 4a8571c into NOAA-EMC:develop Nov 21, 2022
ShelleyMelchior-NOAA added a commit that referenced this pull request Dec 28, 2023
…ectory exists, fix 2 typos in sub-domain names in href plot script files (#398)

* remove met_v in all plotting scripts

* remove met_v from sref's ecf scripts

* remove met_v from sref's ecf scripts

* avoid mkdir for existing directory and 2 typos

* fix one typo in scripts/plots/cam/exevs_href_profile_plots.sh

* Update PointStat_fcstSREF_obsPREPBUFR_cnv.conf to select one from  multiple fields

* address EVS v1.0 Issues #31 and #32

* Updating metar config file to check for 3hr cycle frequency.

---------

Co-authored-by: Shelley Melchior <Shelley.Melchior@noaa.gov>
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