Difference between revisions of "Merging WPS"

From openwfm
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
Our custom version of {{wrf-fire-path|WPS|WPS}} is based on WPS 3.x and the wrfinput files it produces are no longer compatible with current WRF. Also, its [[WPS with GeoTIFF support|geotiff support]] is not compatible with current geotiff files from [https://www.landfire.gov/ LANDFIRE]. Consequently we can't run with WRF4+ or update our geographical databases.
 
Our custom version of {{wrf-fire-path|WPS|WPS}} is based on WPS 3.x and the wrfinput files it produces are no longer compatible with current WRF. Also, its [[WPS with GeoTIFF support|geotiff support]] is not compatible with current geotiff files from [https://www.landfire.gov/ LANDFIRE]. Consequently we can't run with WRF4+ or update our geographical databases.
  
==Progress==
+
==Checking==
 
===Clone WPS and add wrf-fire repository as a branch===
 
===Clone WPS and add wrf-fire repository as a branch===
 
<pre>
 
<pre>
Line 35: Line 35:
 
==Filtering==
 
==Filtering==
 
<pre>
 
<pre>
mkdir wrf-fire-wps  
+
mkdir wrf-fire-wps-filtered
cd wrf-fire-wps  
+
cd wrf-fire-wps-filtered
 
git clone --bare github:/openwfm/wrf-fire.git .git
 
git clone --bare github:/openwfm/wrf-fire.git .git
 
git config --bool core.bare false
 
git config --bool core.bare false
Line 49: Line 49:
  
 
==Merge==
 
==Merge==
Fork https://github.com/wrf-model/WPS as https://github.com/openwfm/WPS-merge and clone
+
Fork https://github.com/wrf-model/WPS as https://github.com/openwfm/WPS-merge then
 
<pre>
 
<pre>
 +
git clone git@github.com:openwfm/WPS-merge.git
 +
cd WPS-merge
 
git remote add filtered git@github.com:janmandel/wrf-fire-wps-filtered.git
 
git remote add filtered git@github.com:janmandel/wrf-fire-wps-filtered.git
 
git fetch filtered
 
git fetch filtered
git checkout -b wrf-fire-track/master filtered/master
+
git checkout -b wrf-fire-filtered/master filtered/master
git checkout -b wrf-fire-track/jb/wps filtered/jb/wps
+
git checkout -b wrf-fire-filtered/jb/wps filtered/jb/wps
git push -u origin -a
+
git push -u origin --all
 
</pre>
 
</pre>
  
 
==Notable branches and tags==
 
==Notable branches and tags==
* {{wps-merge-branch|master}} tracks upstream WPS master
+
* {{wps-merge-branch|master}} tracks upstream master
* {{wps-merge-branch|wrf-fire-wps-track}} WPS filtered from
+
* {{wps-merge-branch|wrf-fire-wps-filtered/master}}

Latest revision as of 14:23, 28 April 2019

Issue description

Our custom version of WPS is based on WPS 3.x and the wrfinput files it produces are no longer compatible with current WRF. Also, its geotiff support is not compatible with current geotiff files from LANDFIRE. Consequently we can't run with WRF4+ or update our geographical databases.

Checking

Clone WPS and add wrf-fire repository as a branch

git clone git@github.com:wrf-model/WPS.git
cd WPS
git remote add wrf-fire git@github.com:openwfm/wrf-fire.git
git fetch git@github.com:openwfm/wrf-fire.git
git fetch wrf-fire
git checkout -b wrf-fire-track/master wrf-fire/master
git checkout -b wrf-fire-track/wps3.4 wrf-fire/wps3.4

Compare WPS versions

git checkout wrf-fire-track/wps3.4
git checkout HEAD^
HEAD is now at 5e1819bd WPS update to version 3.3.1
cp -a WPS ../wps3.3.1
git checkout RELEASE-3-3-1
HEAD is now at bedb19c7 tagging 3.3.1 release
 diff -r -x .git . ../wps3.3.1
Only in .: test_suite
Only in ./util: make_regression_data.tar
Only in ./util: regtest_wps.csh
Only in ./util: wps_reg.html
Only in ./util: wps_reg_html_maker.csh
Only in ./util: zap_reg.csh

Filtering

mkdir wrf-fire-wps-filtered 
cd wrf-fire-wps-filtered
git clone --bare github:/openwfm/wrf-fire.git .git
git config --bool core.bare false
git reset --hard
git filter-branch --subdirectory-filter WPS --tag-name-filter cat -- --all

Now the top level directory has the contents of the WPS subdirectory only and files outside of WPS subdirectory are stripped from all commits. All branches that touch WPS are kept.

git remote add filtered git@github.com:janmandel/wrf-fire-wps-filtered.git
git push filtered --mirror

Merge

Fork https://github.com/wrf-model/WPS as https://github.com/openwfm/WPS-merge then

git clone git@github.com:openwfm/WPS-merge.git
cd WPS-merge
git remote add filtered git@github.com:janmandel/wrf-fire-wps-filtered.git
git fetch filtered
git checkout -b wrf-fire-filtered/master filtered/master
git checkout -b wrf-fire-filtered/jb/wps filtered/jb/wps
git push -u origin --all

Notable branches and tags