diff --git a/src/apps/ESMF_Regrid/ESMF_Regrid.F90 b/src/apps/ESMF_Regrid/ESMF_Regrid.F90 index 2eea1fad7f..f0eb9598b9 100644 --- a/src/apps/ESMF_Regrid/ESMF_Regrid.F90 +++ b/src/apps/ESMF_Regrid/ESMF_Regrid.F90 @@ -112,9 +112,10 @@ program ESMF_RegridApp ! then broadcast the results to the rest of the Pets ! if (PetNo == 0) then - call ESMF_UtilGetArgIndex('--help', argindex=ind) + call ESMF_UtilGetArgIndex('-h', argindex=ind) + if (ind == -1) call ESMF_UtilGetArgIndex('--help', argindex=ind) if (ind /= -1) then - call PrintUsage() + call PrintUsage() terminateProg=.true. endif call ESMF_UtilGetArgIndex('--version', argindex=ind) @@ -526,7 +527,7 @@ subroutine PrintUsage() print *, " [--dst_regional]" print *, " [--check]" print *, " [--no_log]" - print *, " [--help]" + print *, " [--help|-h]" print *, " [--version]" print *, " [-V]" print *, "where" @@ -547,7 +548,7 @@ subroutine PrintUsage() print *, " where tilename is the tile name defined in the source grid file" print *, "--dstdatafile - If the destination grid is of type MOSAIC, the data is stored" print *, " in separated files, one per tile. dstdatafile is the prefix of" - print *, " the destination data file. The filename is srcdatafile.tilename.nc," + print *, " the destination data file. The filename is dstdatafile.tilename.nc," print *, " where tilename is the tile name defined in the destination grid file" print *, "--tilefile_path - The alternative file path for the tile files and mosaic data files" print *, " when either srcFile or dstFile is a GRIDSPEC MOSAIC grid. The path" @@ -578,7 +579,7 @@ subroutine PrintUsage() print *, " data(i,j,k,l)=2.0+(k-1)+2*(l-1)+cos(lat(i,j))**2*cos(2*lon(i,j)), assuming" print *, " it is a 2D grid " print *, "--no_log - Turn off the ESMF error log." - print *, "--help - Print this help message and exit." + print *, "--help or -h - Print this help message and exit." print *, "--version - Print ESMF version and license information and exit." print *, "-V - Print ESMF version number and exit." print *, "" diff --git a/src/apps/ESMF_RegridWeightGen/ESMF_RegridWeightGen.F90 b/src/apps/ESMF_RegridWeightGen/ESMF_RegridWeightGen.F90 index ef3ce33256..7bb5006cd1 100644 --- a/src/apps/ESMF_RegridWeightGen/ESMF_RegridWeightGen.F90 +++ b/src/apps/ESMF_RegridWeightGen/ESMF_RegridWeightGen.F90 @@ -1379,7 +1379,7 @@ subroutine PrintUsage() print *, " [--no_log]" print *, " [--check]" print *, " [--checkFlag]" - print *, " [--help]" + print *, " [--help|-h]" print *, " [--version]" print *, " [-V]" print *, "where" diff --git a/src/doc/ESMF_Regrid.tex b/src/doc/ESMF_Regrid.tex index e3629d85e2..d4f648d05b 100644 --- a/src/doc/ESMF_Regrid.tex +++ b/src/doc/ESMF_Regrid.tex @@ -21,7 +21,7 @@ \subsection{Description} a logically rectangular grid, the UGRID file format(~\ref{sec:fileformat:ugrid}) for unstructured grid and the GRIDSPEC Mosaic file format(~\ref{sec:fileformat:mosaic}) for cubed-sphere grid. For -the GRIDSPEC Mosaic file format, the data are stored in seperate data files, +the GRIDSPEC Mosaic file format, the data are stored in separate data files, one file per tile. The SCRIP format(~\ref{sec:fileformat:scrip}) and the ESMF unstructured grid format(~\ref{sec:fileformat:esmf}) are not supported because there is no way to define a variable field using these two formats. Currently, the tool only works with 2D grids, the support for the 3D grid will be made available in the future release. The variable array can be up to four dimensions. The @@ -113,7 +113,7 @@ \subsection{Description} The GRIDSPEC MOSAIC file(~\ref{sec:fileformat:mosaic}) can be identified by a dummy variable with {\tt standard\_name} attribute set to {\tt grid\_mosaic\_spec}. The data for a -GRIDSPEC Mosaic file are stored in seperate files, one tile per file. The +GRIDSPEC Mosaic file are stored in separate files, one tile per file. The name of the data file is not specified in the mosaic file. Therefore, additional optional argument {\tt --srcdatafile} or {\tt --dstdatafile} is required to provide the prefix of the datafile. The datafile is also a CF @@ -177,7 +177,7 @@ \subsection{Description} If the destination variable exists in the destination grid file, it has to have the same number of dimensions and the same type as the source variable. Except for the latitude and longitude dimensions, the size of the destination variable's extra dimensions (e.g., time and vertical layers) has to match with the -source variable. If the destination varialbe does not exist in the destination grid file, a +source variable. If the destination variable does not exist in the destination grid file, a new variable will be created with the same type and matching dimensions as the source variable. All the attributes of the source variable will be copied to the destination variable except those related to the grid definition (i.e. {\tt coordinates} attribute if the destination file is in