-
Notifications
You must be signed in to change notification settings - Fork 155
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
GitHub Issue NOAA-EMC/GSI#243. AMVs changes to v16x #294
Conversation
Two /fix files need to be updated - How to be sure that the correct prepobs_errtable.global is used? How to be sure that the correct global_convinfo.txt is used? |
@ilianagenkova While looking through the issues, I can't find an issue 109 that corresponds with AMV changes for v16x. It appears as though associated with this work is issue #243. Please update the issue number in the commit message in your fork's master by:
Also, please let me know who you would like to have review your changes. |
@MichaelLueken-NOAA , Trying: git clone --recursive git@github.com:ilianagenkova/GSI.git update returns: Please make sure you have the correct access rights |
@MichaelLueken-NOAA , I managed to fix the issue number in the PR, thanks! Please assign @HaixiaLiu-NOAA as reeviewer. |
@ilianagenkova Can you please provide your regression test summary here? Thank you |
@MichaelLueken-NOAA or @HaixiaLiu-NOAA, could you point me to the instructions for regression tests, thanks! |
@ilianagenkova The regression tests currently use CMake's ctest capabilities. The end of the README in the repository shows how to use ctest to start the regression tests. The quick way is to go into your build directory and use: ctest -j19 This will submit all 19 regression test configurations. The output will be in your noscrub/regression directory. Do a grep for Fail and please note any failures either in this PR or in your issue. If there are failures, please make sure that they are expected (especially for reproducibility). |
In the setupw.f90, the rdiagbufr array has dimension (nreal, nobs). The 1st dimension nreal=ioff0. The ioff0 is increased by 1 (changed from 25 to 26), but the subroutine contents_binary_diag_was not modified, which does not look right to me. At least the rdiagbufr(26,ii) is missing. Should it be assigned as AMVQ? |
@HaixiaLiu-NOAA, I didn't update routine contents_binary_diag_ so that rdiagbuf array would include AMVQ. |
@ilianagenkova We can write to both binary and netcdf diag files at the same time. It is controlled at the script level and If you set both netcdf_diag and binary_diag to be true. However, that is unnecessary. If you do NOT want to add AMVQ to the rdiagbufr array, then there is no need to change ioff0 from 25 to 26. |
@MichaelLueken-NOAA Would you please add Brett.Hoover@noaa.gov to the reviewer list. One is Brett can observe the process and eventually he will need to do PR in the future as well. Secondly, Brett can contribute as well. @ilianagenkova What do you think? |
@HaixiaLiu-NOAA, there is really no need to add AMVQ to the binary diag. |
@HaixiaLiu-NOAA @ilianagenkov I have added @BrettHoover-NOAA as a reviewer. |
@ilianagenkova, While running the debug tests, the two configurations that use NetCDF diagnostic files failed with the following message:
This is occurring on line 1808 in setupw.f90. Printing out nreal values, I'm seeing that the failure is occurring because nreal is 26. Looking at the changes you made for this PR, you changed nreal to be 27 in read_satwnd.f90. I suspect the issue that is happening is prepbufr uv data is hitting line 1808 in setupw and failing. I was able to make the debug compilation work by setting nreal to 27 for uvobs in read_prepbufr. Is this the correct fix? It would seem like changing read_prepbufr to account for changes to read_satwnd is not the correct answer. A new variable to ensure that only satwnd data uses the diagnostic write seems to be the better method for correcting the failure. |
@MichaelLueken-NOAA Running the regression test returns: The following tests FAILED: The *out files for the failed tests are: I added you to my AMVs meeting tomorrow, to go over the log files and discuss the debug run. |
@MichaelLueken-NOAA Regarding line 1808 in setupw.f90, are you convinced there is an index issue? I ran an experiment with that setup just fine. Could it be a netcdf concatenation problem, @CoryMartin-NOAA ? I am printing extra variables in the netcdf diag file, while I am not changing the binary diag array. |
@ilianagenkova I see that you added me to the AMV tag up this morning, but I'm on leave from 11 am - 1 pm, then out for the rest of the day, so I will be unable to attend. Looking at the regression tests that failed, they failed due to an out-of-memory issue in SLURM. I was able to correct several of these issues, but not all. On Hera, please try replacing your regression/regression_param.sh file with: /scratch1/NCEPDEV/da/Michael.Lueken/regression_param.sh Please note that there are still issues with the nmm(b) configurations. I would recommend running the regression tests on WCOSS. Having said that, I have run the regression tests on WCOSS and all passed successfully. As for the debug tests, both global_C96_aerorad and global_fv3_4denvar_C192 failed the debug test due to out of bound subscripts. This needs to be addressed before I can merge this work to the authoritative repository. Again, the regression tests pass, but the debug tests that I run found this issue. |
@MichaelLueken-NOAA, I updated read_prepbufr.f90 and setupw.f90 to resolve the issue with the debug test. |
@ilianagenkova So long as the code compiled after your modification, that is fine. I can't move forward until either @HaixiaLiu-NOAA or @BrettHoover-NOAA approve the PR. Once that is complete, I will go over the changes more thoroughly and then submit the work to the review committee (so long as there are no outstanding issues). |
@@ -1534,11 +1585,12 @@ subroutine read_satwnd(nread,ndata,nodata,infile,obstype,lunout,gstime,twind,sis | |||
cdata_all(22,iout)=r_prvstg(1,1) ! provider name | |||
cdata_all(23,iout)=r_sprvstg(1,1) ! subprovider name | |||
cdata_all(25,iout)=var_jb ! non linear qc parameter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ilianagenkova why the cdata_all(24,iout) is missing? If the 24th element should be missing, would it be better to reduce the cdata_all array to be nreal-1 for the 1st dimension?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HaixiaLiu-NOAA, setupw.f90 processes winds from multiple sources (AMVs, aircraft, sondes). AMVs don't have a parameter equivalent to "cdata_all(24,iout) = cat" . Only the winds that come to setupw.f90 from read_prepbufr.f90 have it. Regardless of whether winds are read in by read_prepbufr or read_satwnd, they need to fit in one cdata_all, therefore the dimensions need to match.
@HaixiaLiu-NOAA , thanks for the quick review. |
@ilianagenkova I have completed my review and the modifications look good. I have run the regression tests (both standard and debug) and all passed successfully following your update. I will be able to submit your work to the review next Tuesday, after the current work out for review has been merged to the authoritative repository. Before this work is sent to the review committee, however, please go into your fork's master and use the following commands:
When you pushed the correction to allow the debug executable to run, you added another commit message. Only a single commit message will be accepted. These steps will undo the last update, while maintaining the modifications made to the allow the code to run in debug, make an amended commit, then push the change back. If you have any questions, please let me know. |
@MichaelLueken-NOAA Done! Thanks for the clear instructions. |
@ilianagenkova Following the update to the authoritative master this morning, these is a conflict in src/gsi/setupw.f90. To update your master with the authoritative repository and correct the conflict:
I should be able to get this work out to the review committee tomorrow once these steps have been completed. Please let me know if you have any questions. |
…op-BC and Him-8 new BUFR, station_id bug fix
Changes done as instructed! |
The due date for the review committee has passed with no feedback, so I will now give final approval to these changes and merge them to the authoritative repository. |
GitHub Issue NOAA-EMC#243. AMVs changes to v16x
This branch brings: