INTERFACE:
subroutine ncdf_read_topo_file(filename)USES:
IMPLICIT NONEDESCRIPTION:
This routine checks for and opens a NetCDF file with GETM bathymetry and grid information. The first variable read and checked is . Subsequent operations depends on the value of .
The following steps are done in :
1: | check and open NetCDF file specified by 'filename' |
2: | read |
3: | inquire |
4: | some test related to |
5: | set local and global index ranges for reading |
6: | read bathymetry into |
7: | depending on read axes and grid information - also check for optional variables |
8: | finally - check for and read spatially |
character(len=*), intent(in) :: filenameREVISION HISTORY:
Original author(s): Lars UmlaufLOCAL VARIABLES:
integer :: ncid integer :: status integer :: ndims integer :: dimlen integer :: id integer :: bathymetry_id integer :: xaxis_id=-1 integer :: yaxis_id=-1 integer, dimension(2) :: dimidsT(2) character*(NF90_MAX_NAME) :: xaxis_name,yaxis_name integer :: i,j,n integer :: iskipl,jskipl integer, dimension(1) :: start integer, dimension(1) :: count logical :: have_dx=.true.,have_dy=.true. logical :: have_dlon=.true.,have_dlat=.true. logical :: have_lon=.false. logical :: have_lat=.false. logical :: have_xc=.false. logical :: have_yc=.false. REALTYPE :: a(2) integer :: rc