Skip to content

Conversation

whannah1
Copy link
Contributor

@whannah1 whannah1 commented Jul 9, 2024

Add new tool incomponents/eam/tools/mkatmsrffile/mkatmsrffile.py, which is a python rewrite of the
older fortran tool, which now lives in components/eam/tools/mkatmsrffile/old_mkatmsrffile. The old version was
problematic to use because the build configuration was often broken. The new python version efficiently
applies the input map weighting efficiently due to the numba package, which is included in the E3SM unified environment.

[BFB]

@whannah1 whannah1 added BFB PR leaves answers BFB inputdata Changes affecting inputdata collection on blues labels Jul 9, 2024
Copy link

github-actions bot commented Jul 10, 2024

PR Preview Action v1.4.7
🚀 Deployed preview to https://E3SM-Project.github.io/E3SM/pr-preview/pr-6506/
on branch gh-pages at 2024-09-04 00:49 UTC

@rljacob rljacob requested a review from wlin7 July 11, 2024 22:48
@rljacob
Copy link
Member

rljacob commented Jul 25, 2024

@wlin7 please review

@rljacob
Copy link
Member

rljacob commented Aug 12, 2024

@wlin7 I'd really like someone who uses this tool to approve. Can you suggest anyone else?

@wlin7
Copy link
Contributor

wlin7 commented Aug 20, 2024

@wlin7 I'd really like someone who uses this tool to approve. Can you suggest anyone else?

@rljacob , @brhillman went very deep onto using this tool. He will be a best person to review this.

@rljacob rljacob requested a review from brhillman August 20, 2024 23:48
@whannah1
Copy link
Contributor Author

@wlin7 can you give this another look?

@rljacob
Copy link
Member

rljacob commented Aug 30, 2024

@wlin7 please approve.

Copy link
Contributor

@mahf708 mahf708 left a comment

Choose a reason for hiding this comment

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

I think this PR can be improved further before merging. I strongly recommend a unit test that we can add to the growing gh ci suite.

@mahf708 mahf708 force-pushed the whannah/tools/add-mkatmsrffile branch from 053980a to 846531d Compare September 3, 2024 23:44
Copy link
Contributor

@mahf708 mahf708 left a comment

Choose a reason for hiding this comment

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

With a test in hand, this is ready to go:
https://github.com/E3SM-Project/E3SM/actions/runs/10692384555/job/29640697312?pr=6506#step:5:1475

  File and parameter values:
    map_file        : map_1x1_to_ne30pg2_traave_c20240903.nc
    vegetation_file : regrid_vegetation.nc
    soil_water_file : clim_soilw.nc
    output_root     : ./ 
    output_file     : .//atm_srf_ne30pg2_20240903.nc
    dst_grid        : ne30pg2
    map_file n_a    : 64800
    map_file n_b    : 21600
  

successfully created atmsrf file: .//atm_srf_ne30pg2_20240903.nc

rljacob added a commit that referenced this pull request Sep 4, 2024
Add new tool in components/eam/tools/mkatmsrffile/mkatmsrffile.py, which is a python rewrite of the
older fortran tool, which now lives in components/eam/tools/mkatmsrffile/old_mkatmsrffile. The old
version was problematic to use because the build configuration was often broken. The new python version efficiently
applies the input map weighting efficiently due to the numba package, which is included
in the E3SM unified environment.

[BFB]
@rljacob rljacob merged commit fa9a231 into master Sep 5, 2024
24 checks passed
@rljacob rljacob deleted the whannah/tools/add-mkatmsrffile branch September 5, 2024 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Atmosphere BFB PR leaves answers BFB inputdata Changes affecting inputdata collection on blues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants