Skip to content

Commit 964f3d3

Browse files
committed
change gridname
1 parent 2501505 commit 964f3d3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

GEOSldas_App/preprocess_ldas_routines.F90

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2402,6 +2402,12 @@ subroutine optimize_latlon(fname_tilefile, N_proc_string, optimized_file, run_di
24022402
call ldas_abort(LDAS_GENERIC_ERROR, Iam, err_msg)
24032403
end if
24042404

2405+
if (index(gridname, 'SMAP') /=0 ) then
2406+
gridname = trim(adjustl(gridname))
2407+
gridname = gridname(6:)
2408+
gridname(7:7) = '_' ! replace '-' with '_'
2409+
endif
2410+
24052411
open(10,file=optimized_file, action='write')
24062412
write(10,'(A)') "GEOSldas.GRID_TYPE: EASE"
24072413
write(10,'(A)') "GEOSldas.GRIDNAME: "//trim(gridname)

0 commit comments

Comments
 (0)