-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1578 from dmocko/feature/nldas2-lismetforcing-netcdf
Add NLDAS-2 netCDF-4 LIS metforcing reader
- Loading branch information
Showing
18 changed files
with
2,659 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
!-----------------------BEGIN NOTICE -- DO NOT EDIT----------------------- | ||
! NASA Goddard Space Flight Center | ||
! Land Information System Framework (LISF) | ||
! Version 7.5 | ||
! | ||
! Copyright (c) 2024 United States Government as represented by the | ||
! Administrator of the National Aeronautics and Space Administration. | ||
! All Rights Reserved. | ||
!-------------------------END NOTICE -- DO NOT EDIT----------------------- | ||
! | ||
!BOP | ||
!\section{NLDAS20} | ||
!The atmospheric forcing used in the North American Land Data | ||
!Assimilation System Phase 2 (NLDAS-2) features products at an | ||
!hourly 0.125$^\circ$ spatial resolution, from 25 to 53 North | ||
!and from -125 to -67 West, from January 1979 to present. | ||
!For details, see Xia et al. (2012, JGR) and visit: | ||
! https://ldas.gsfc.nasa.gov/nldas/v2/forcing | ||
! | ||
!This metforcing reader handles the netcdf-4 version 020 format | ||
!of the NLDAS-2 forcing available from the NASA GES DISC. | ||
! | ||
!EOP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
!-----------------------BEGIN NOTICE -- DO NOT EDIT----------------------- | ||
! NASA Goddard Space Flight Center | ||
! Land Information System Framework (LISF) | ||
! Version 7.5 | ||
! | ||
! Copyright (c) 2024 United States Government as represented by the | ||
! Administrator of the National Aeronautics and Space Administration. | ||
! All Rights Reserved. | ||
!-------------------------END NOTICE -- DO NOT EDIT----------------------- | ||
!BOP | ||
! !ROUTINE: finalize_nldas20 | ||
! \label{finalize_nldas20} | ||
! | ||
! !REVISION HISTORY: | ||
! 11 Jul 2024: David Mocko, Initial Specification | ||
! (derived from finalize_nldas2.F90) | ||
! | ||
! !INTERFACE: | ||
subroutine finalize_nldas20(findex) | ||
! !USES: | ||
use LIS_coreMod, only : LIS_rc | ||
use nldas20_forcingMod, only : nldas20_struc | ||
|
||
implicit none | ||
! !ARGUMENTS: | ||
integer :: findex | ||
! | ||
! !DESCRIPTION: | ||
! Routine to cleanup nldas20 forcing related memory allocations. | ||
! | ||
!EOP | ||
integer :: n | ||
|
||
do n = 1,LIS_rc%nnest | ||
if (trim(LIS_rc%met_interp(findex)).eq."bilinear") then | ||
deallocate(nldas20_struc(n)%n111) | ||
deallocate(nldas20_struc(n)%n121) | ||
deallocate(nldas20_struc(n)%n211) | ||
deallocate(nldas20_struc(n)%n221) | ||
deallocate(nldas20_struc(n)%w111) | ||
deallocate(nldas20_struc(n)%w121) | ||
deallocate(nldas20_struc(n)%w211) | ||
deallocate(nldas20_struc(n)%w221) | ||
elseif (trim(LIS_rc%met_interp(findex)).eq."budget-bilinear") & | ||
then | ||
deallocate(nldas20_struc(n)%n111) | ||
deallocate(nldas20_struc(n)%n121) | ||
deallocate(nldas20_struc(n)%n211) | ||
deallocate(nldas20_struc(n)%n221) | ||
deallocate(nldas20_struc(n)%w111) | ||
deallocate(nldas20_struc(n)%w121) | ||
deallocate(nldas20_struc(n)%w211) | ||
deallocate(nldas20_struc(n)%w221) | ||
deallocate(nldas20_struc(n)%n112) | ||
deallocate(nldas20_struc(n)%n122) | ||
deallocate(nldas20_struc(n)%n212) | ||
deallocate(nldas20_struc(n)%n222) | ||
deallocate(nldas20_struc(n)%w112) | ||
deallocate(nldas20_struc(n)%w122) | ||
deallocate(nldas20_struc(n)%w212) | ||
deallocate(nldas20_struc(n)%w222) | ||
elseif(trim(LIS_rc%met_interp(findex)).eq."neighbor") then | ||
deallocate(nldas20_struc(n)%n113) | ||
endif | ||
|
||
if (LIS_rc%met_ecor(findex).ne."none") then | ||
deallocate(nldas20_struc(n)%orig_ediff) | ||
endif | ||
enddo | ||
deallocate(nldas20_struc) | ||
|
||
end subroutine finalize_nldas20 | ||
|
Oops, something went wrong.