ripdp fails with nlcd landuse data

The RIP4 graphics package.

ripdp fails with nlcd landuse data

Postby ncwitcraft » Thu Jan 30, 2014 1:22 pm

I ran WRF using NLCD data. ripdp fails, with an error: Unexpected land use data set specified.
MMINLU=NLCD4

Is there a work around, or are there any plans to update the code to ingest WRF files with NLCD?

Thanks.
ncwitcraft
 
Posts: 3
Joined: Thu Jan 30, 2014 1:19 pm

Re: ripdp fails with nlcd landuse data

Postby ncwitcraft » Thu Jan 30, 2014 4:09 pm

I contacted one of the developers, and said to put in 3 lines of code in ripdp_wrfarw.f. Worked great.

807: ilandset=2 ! USGS 24-category land use data set
808- elseif (nf_att_text(1:5).eq.'MODIF') then
809: ilandset=3 ! MODIS 20-category land use data set
NEW>810- elseif (nf_att_text(1:5).eq.'NLCD4') then
NEW>811: ilandset=4 ! NLCD 40-category land use data set
812- elseif (nf_att_text(1:5).eq.'') then
813: ilandset=1 ! Probably idealized data
--------------------------------
2842: if ( ilandset == 2 ) nf_tmp_count(3)=24
2843: if ( ilandset == 3 ) nf_tmp_count(3)=20
NEW>2844: if ( ilandset == 4 ) nf_tmp_count(3)=40
ncwitcraft
 
Posts: 3
Joined: Thu Jan 30, 2014 1:19 pm


Return to RIP4

Who is online

Users browsing this forum: No registered users and 1 guest