Giter VIP home page Giter VIP logo

hrldas-release's Introduction

hrldas-release

Note that this an old archive of HRLDAS. The new HRLDAS repository can be found at: https://github.com/NCAR/hrldas

HRLDAS (High Resolution Land Data Assimilation System) containing the Noah-MP Land Surface Model

Repository branch structure (as of July 27, 2018)

master: this is the base branch and contains all finalized development before WRF release

release: branch from master at WRF release intervals; may include important bug fixes after release

hrldas-release's People

Contributors

barlage avatar dmocko avatar ncarchen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hrldas-release's Issues

licence for hrldas

Hi Mike,
I work at IBM and trying to use hrldas for some commercial application. Wish to know if there is a licence for hrldas and whether we can use the code for commercial purpose. I plan to modify the code for the input data we have from our weather company. But since I am not sure after putting efforts in modifying the code will I be able to use it for commercial purpose.. Will sincerely appreciate your help with any information or pointers on this.
Many thanks,
Jitendra

HRLDAS for Noah LSM

Hi,
I was looking for offline land surface model drivers for the WRF system, and was wondering if the Noah LSM can be coupled with hrldas. From what I have seen, the Noah LSM hasn't been an option with in hrldas since 2012. Is this driving framework flexible enough to allow for a new LSM already implemented in WRF to be driven offline?

Thanks!

Serial compilation with debugging flags

Hi Mike,
I have found that compiling hrldas using ifort (configuration option #3) on cheyenne results in a runtime error when debugging flags are enabled. I believe the only consequence is that common debugging flags cannot be used for development. Specifically the error is

forrtl: severe (194): Run-Time Check Failure. The variable 'module_hrldas_netcdf_io_mp_prepare_output_file_seq_$DIMID_IX' is being used in 'module_hrldas_netcdf_io.f90(3551,5)' without being defined

Image PC Routine Line Source
hrldas.exe 0000000000450B3F module_hrldas_net 3551 module_hrldas_netcdf_io.f90
hrldas.exe 00000000008F2BD6 module_noahmp_hrl 1958 module_NoahMP_hrldas_driver.f90
hrldas.exe 0000000000404126 MAIN__ 26 main_hrldas_driver.f90
hrldas.exe 000000000040401E Unknown Unknown Unknown
libc-2.19.so 00007FFFED03FB25 __libc_start_main Unknown Unknown
hrldas.exe 0000000000403F29 Unknown Unknown Unknown

Gfortran options don't build properly

The -fno-underscoring seems to cause a consistent failure when trying to build in an Ubuntu Docker container pretty much regardless of version (tested on several versions).

The hardcoded /opt/local/ paths also don't work under Debian/Ubuntu distributions, which I've worked around by doing a just in time sed to replace the full paths with just the executable name assuming they were installed in the $PATH by a package manager or the user adding those directories to the PATH manually.

Since libjasper-devel doesn't exist in Ubuntu versions newer than 16.04, it is also useful to grab the source tarball and compile that instead of polluting a newer distribution with a potentially incompatible package with invalid bindings. See #32 for the workarounds, which could possibly just be applied to the arch/user_build_options.gfortran.serial file if someone is able to test them on more distributions (should be easy enough using the Dockerfile and arguments in the README).

Soil_Thick_Input

Hello:
I'm having issues trying to compile HRLDAS in my ubunty system 20.04.
THis is the content of my user_build_options file I got so far.

COMPILERF90 = /usr/bin/gfortran-9
FREESOURCE = -ffree-form -ffree-line-length-none
F90FLAGS = -g -fconvert=big-endian -fbounds-check -fno-range-check
MODFLAG = -I
LDFLAGS =
CPP = /usr/bin/cpp-9
CPPFLAGS = -P -traditional -D_GFORTRAN_ # -D_HRLDAS_URBAN_
LIBS =
LIBJASPER = -ljpeg -L/usr/local/JASPER/lib -ljasper
INCJASPER = -I/usr/local/JASPER/include
NETCDFMOD = -I/usr/include #-L/home/Build_NOAH/LIBRARIES/netcdf/include
NETCDFLIB = -L/home/Build_NOAH/LIBRARIES/netcdf/lib -lnetcdf -lnetcdff #-L/usr/lib -lnetcdf -lnetcdff
BZIP2 = NO
BZIP2_LIB = -lbz2
BZIP2_INCLUDE = -I/opt/local/include
RM = rm -f
CC = /usr/bin/gcc-9

After that, I give the command "MAKE" and I'm getting this output:

mishel@mishel-VirtualBox:~/Build_NOAH/src/HRLDAS-v3.6$ make
(cd Utility_routines; make)
make[1]: Entering directory '/home/mishel/Build_NOAH/src/HRLDAS-v3.6/Utility_routines'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/mishel/Build_NOAH/src/HRLDAS-v3.6/Utility_routines'
(cd Noah; make)
make[1]: Entering directory '/home/mishel/Build_NOAH/src/HRLDAS-v3.6/Noah'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/mishel/Build_NOAH/src/HRLDAS-v3.6/Noah'
(cd IO_code; make)
make[1]: Entering directory '/home/mishel/Build_NOAH/src/HRLDAS-v3.6/IO_code'

rm -f module_NoahMP_hrldas_driver.f
/usr/bin/cpp-9 -P -traditional -D_GFORTRAN_ -D_HRLDAS_OFFLINE_ module_NoahMP_hrldas_driver.F > module_NoahMP_hrldas_driver.f
/usr/bin/gfortran-9 -o module_NoahMP_hrldas_driver.o -c -g -fconvert=big-endian -fbounds-check -fno-range-check -ffree-form -ffree-line-length-none -I.
-I../Noah -I../Utility_routines -I/usr/include module_NoahMP_hrldas_driver.f
module_NoahMP_hrldas_driver.f:341:33:

341 | REAL, DIMENSION(MAX_SOIL_LEVELS) :: soil_thick_input ! depth to soil interfaces from namelist [m]
| 1
Error: Expecting a scalar INTEGER expression at (1), found REAL
module_NoahMP_hrldas_driver.f:740:33:

740 | DZS = SOIL_THICK_INPUT(1:NSOIL)
| 1
Error: Syntax error in argument list at (1)
module_NoahMP_hrldas_driver.f:344:37:

344 | indir, nsoil, soil_thick_input, forcing_timestep, noah_timestep, &
| 1
Error: Symbol ‘soil_thick_input’ at (1) has no IMPLICIT type
make[1]: *** [Makefile:24: module_NoahMP_hrldas_driver.o] Error 1
make[1]: Leaving directory '/home/mishel/Build_NOAH/src/HRLDAS-v3.6/IO_code'
make: *** [Makefile:6: all] Error 2

Apparently, there is a conflict with the soil_thick_input and I'm not able to figure it out where is the file or the procedure for fixing it.
Thanks in advance for your support.

Mishel

Empty f90 files generated

The user_build_options.gfortran.serial build needs to have the -E option added to CPPFLAGS. This option enables:

-E Stop after the preprocessing stage; do not run the compiler proper. The output is in the form of preprocessed source code, which is sent to the standard output.

Otherwise, no stdout is generated, and therefore empty f90 files are created which causes strange compile issues.

single point forcing

The create_point.data.f90 - line 277 should be like:

write(filename,'(i4,3i2.2,a15)') yyyy, mm, dd, hh, ".LDASIN_DOMAIN1"

Because the current create_point.data.f90 code generates wrong file names in forcing netcdf data, and hrldas.exe does not understand the names. Please fix it in create_point.data.f90 code or hrldas code.

A question about install HRLDAS

HELLO
I want to install the hrldas 3.7.1 in my Ubuntu 17.04 .
I choose the gfortran for my linux system, I modify the "user_build_options"like this

COMPILERF90 = /usr/bin/gfortran-7
FREESOURCE = -ffree-form -ffree-line-length-none
F90FLAGS = -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring
MODFLAG = -I
LDFLAGS =
CPP = /usr/bin/cpp-6
CPPFLAGS = -P -traditional -D_GFORTRAN_ # -D_HRLDAS_URBAN_
LIBS =
LIBJASPER = -ljpeg -L/usr/local/JASPER/lib -ljasper
INCJASPER = -I/usr/local/JASPER/include
NETCDFMOD = -I/usr/local/netcdf/include
NETCDFLIB = -L/usr/local/netcdf/lib -lnetcdf -lnetcdff
BZIP2 = NO
BZIP2_LIB = -lbz2
BZIP2_INCLUDE = -I/opt/local/include
RM = rm -f
CC = /usr/bin/gcc-6

But when I type 'make' . I encountered an error like this

lxr@ubuntu:~/hrldas-release-3.7.1/HRLDAS$ make
(cd Utility_routines; make)
make[1]: Entering directory '/home/lxr/hrldas-release-3.7.1/HRLDAS/Utility_routines'

rm -f module_date_utilities.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -D_HRLDAS_OFFLINE_ module_date_utilities.F > module_date_utilities.f90
/usr/bin/gfortran-7 -o module_date_utilities.o -c -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -ffree-form -ffree-line-length-none module_date_utilities.f90

rm -f module_model_constants.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -D_HRLDAS_OFFLINE_ module_model_constants.F > module_model_constants.f90
/usr/bin/gfortran-7 -o module_model_constants.o -c -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -ffree-form -ffree-line-length-none module_model_constants.f90

rm -f module_wrf_utilities.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -D_HRLDAS_OFFLINE_ module_wrf_utilities.F > module_wrf_utilities.f90
/usr/bin/gfortran-7 -o module_wrf_utilities.o -c -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -ffree-form -ffree-line-length-none module_wrf_utilities.f90

rm -f kwm_string_utilities.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -D_HRLDAS_OFFLINE_ kwm_string_utilities.F > kwm_string_utilities.f90
/usr/bin/gfortran-7 -o kwm_string_utilities.o -c -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -ffree-form -ffree-line-length-none kwm_string_utilities.f90

make[1]: Leaving directory '/home/lxr/hrldas-release-3.7.1/HRLDAS/Utility_routines'
(cd phys; make)
make[1]: Entering directory '/home/lxr/hrldas-release-3.7.1/HRLDAS/phys'

rm -f module_sf_noahmplsm.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -D_HRLDAS_OFFLINE_ module_sf_noahmplsm.F > module_sf_noahmplsm.f90
/usr/bin/gfortran-7 -o module_sf_noahmplsm.o -c -I../Utility_routines -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -ffree-form -ffree-line-length-none module_sf_noahmplsm.f90

rm -f module_sf_noahmp_glacier.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -D_HRLDAS_OFFLINE_ module_sf_noahmp_glacier.F > module_sf_noahmp_glacier.f90
/usr/bin/gfortran-7 -o module_sf_noahmp_glacier.o -c -I../Utility_routines -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -ffree-form -ffree-line-length-none module_sf_noahmp_glacier.f90

rm -f module_sf_noahmp_groundwater.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -D_HRLDAS_OFFLINE_ module_sf_noahmp_groundwater.F > module_sf_noahmp_groundwater.f90
/usr/bin/gfortran-7 -o module_sf_noahmp_groundwater.o -c -I../Utility_routines -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -ffree-form -ffree-line-length-none module_sf_noahmp_groundwater.f90

rm -f module_sf_noahmpdrv.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -D_HRLDAS_OFFLINE_ module_sf_noahmpdrv.F > module_sf_noahmpdrv.f90
/usr/bin/gfortran-7 -o module_sf_noahmpdrv.o -c -I../Utility_routines -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -ffree-form -ffree-line-length-none module_sf_noahmpdrv.f90

make[1]: Leaving directory '/home/lxr/hrldas-release-3.7.1/HRLDAS/phys'
(cd IO_code; make)
make[1]: Entering directory '/home/lxr/hrldas-release-3.7.1/HRLDAS/IO_code'

rm -f module_hrldas_netcdf_io.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -D_HRLDAS_OFFLINE_ -I/usr/local/netcdf/include module_hrldas_netcdf_io.F > module_hrldas_netcdf_io.f90
/usr/bin/gfortran-7 -o module_hrldas_netcdf_io.o -c -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -ffree-form -ffree-line-length-none -I ../MPP -I../Utility_routines -I/usr/local/netcdf/include module_hrldas_netcdf_io.f90

rm -f module_NoahMP_hrldas_driver.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -D_HRLDAS_OFFLINE_ module_NoahMP_hrldas_driver.F > module_NoahMP_hrldas_driver.f90
/usr/bin/gfortran-7 -o module_NoahMP_hrldas_driver.o -c -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -ffree-form -ffree-line-length-none -I -I.
-I../phys -I../Utility_routines -I/usr/local/netcdf/include module_NoahMP_hrldas_driver.f90
f951: Warning: Nonexistent include directory ‘-I.’ [-Wmissing-include-dirs]

rm -f main_hrldas_driver.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -D_HRLDAS_OFFLINE_ main_hrldas_driver.F > main_hrldas_driver.f90
/usr/bin/gfortran-7 -o main_hrldas_driver.o -c -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -ffree-form -ffree-line-length-none -I ../MPP -I.
-I../phys -I../Utility_routines -I/usr/local/netcdf/include main_hrldas_driver.f90

make[1]: Leaving directory '/home/lxr/hrldas-release-3.7.1/HRLDAS/IO_code'
(cd run; make)
make[1]: Entering directory '/home/lxr/hrldas-release-3.7.1/HRLDAS/run'

echo " -Wl,-rpath, -L -lhdf5 -lz"
-Wl,-rpath, -L -lhdf5 -lz
/usr/bin/gfortran-7 -o hrldas.exe -I../IO_code -I../phys ../IO_code/main_hrldas_driver.o ../IO_code/module_hrldas_netcdf_io.o ../phys/module_sf_noahmpdrv.o ../phys/module_sf_noahmplsm.o ../phys/module_sf_noahmp_glacier.o ../phys/module_sf_noahmp_groundwater.o ../Utility_routines/module_wrf_utilities.o ../Utility_routines/module_model_constants.o ../Utility_routines/module_date_utilities.o ../Utility_routines/kwm_string_utilities.o ../IO_code/module_NoahMP_hrldas_driver.o -L/usr/local/netcdf/lib -lnetcdf -lnetcdff

make[1]: Leaving directory '/home/lxr/hrldas-release-3.7.1/HRLDAS/run'
(cd HRLDAS_forcing; make)
make[1]: Entering directory '/home/lxr/hrldas-release-3.7.1/HRLDAS/HRLDAS_forcing'
(cd lib; make)
make[2]: Entering directory '/home/lxr/hrldas-release-3.7.1/HRLDAS/HRLDAS_forcing/lib'

rm -f module_grib2_tables.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -DBIT32 -D_BZIP_NO module_grib2_tables.F > module_grib2_tables.f90
/usr/bin/gfortran-7 -c -ffree-form -ffree-line-length-none -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -I/usr/local/netcdf/include module_grib2_tables.f90

rm -f module_mapinfo.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -DBIT32 -D_BZIP_NO module_mapinfo.F > module_mapinfo.f90
/usr/bin/gfortran-7 -c -ffree-form -ffree-line-length-none -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -I/usr/local/netcdf/include module_mapinfo.f90

rm -f kwm_date_utilities.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -DBIT32 -D_BZIP_NO kwm_date_utilities.F > kwm_date_utilities.f90
/usr/bin/gfortran-7 -c -ffree-form -ffree-line-length-none -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -I/usr/local/netcdf/include kwm_date_utilities.f90

rm -f module_grib_common.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -DBIT32 -D_BZIP_NO module_grib_common.F > module_grib_common.f90
/usr/bin/gfortran-7 -c -ffree-form -ffree-line-length-none -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -I/usr/local/netcdf/include module_grib_common.f90

rm -f module_grib1.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -DBIT32 -D_BZIP_NO module_grib1.F > module_grib1.f90
/usr/bin/gfortran-7 -c -ffree-form -ffree-line-length-none -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -I/usr/local/netcdf/include module_grib1.f90

rm -f module_grib2.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -DBIT32 -D_BZIP_NO module_grib2.F > module_grib2.f90
/usr/bin/gfortran-7 -c -ffree-form -ffree-line-length-none -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -I/usr/local/netcdf/include module_grib2.f90

rm -f trig_degrees.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -DBIT32 -D_BZIP_NO trig_degrees.F > trig_degrees.f90
/usr/bin/gfortran-7 -c -ffree-form -ffree-line-length-none -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -I/usr/local/netcdf/include trig_degrees.f90

rm -f module_llxy.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -DBIT32 -D_BZIP_NO module_llxy.F > module_llxy.f90
/usr/bin/gfortran-7 -c -ffree-form -ffree-line-length-none -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -I/usr/local/netcdf/include module_llxy.f90

rm -f module_input_data_structure.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -DBIT32 -D_BZIP_NO module_input_data_structure.F > module_input_data_structure.f90
/usr/bin/gfortran-7 -c -ffree-form -ffree-line-length-none -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -I/usr/local/netcdf/include module_input_data_structure.f90

rm -f arguments_module.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -DBIT32 -D_BZIP_NO arguments_module.F > arguments_module.f90
/usr/bin/gfortran-7 -c -ffree-form -ffree-line-length-none -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -I/usr/local/netcdf/include arguments_module.f90

rm -f gbytesys.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -DBIT32 -D_BZIP_NO gbytesys.F > gbytesys.f90
/usr/bin/gfortran-7 -c -ffree-form -ffree-line-length-none -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -I/usr/local/netcdf/include gbytesys.f90

rm -f swap4f.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -DBIT32 -D_BZIP_NO swap4f.F > swap4f.f90
/usr/bin/gfortran-7 -c -ffree-form -ffree-line-length-none -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -I/usr/local/netcdf/include swap4f.f90
/usr/bin/gcc-6 -c -D_BZIP_NO cio.c
cio.c:31:15: warning: return type defaults to ‘int’ [-Wimplicit-int]
#define copen copen_
^
cio.c:72:1: note: in expansion of macro ‘copen’
copen(nunit, name, mode, err, oflag)
^~~~~
cio.c:36:16: warning: return type defaults to ‘int’ [-Wimplicit-int]
#define bnseek bnseek_
^
cio.c:148:1: note: in expansion of macro ‘bnseek’
bnseek(fd, bread, mode, iprint)
^~~~~~
cio.c: In function ‘bnseek_’:
cio.c:179:31: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘off_t {aka long int}’ [-Wformat=]
printf(" lseek return=%d, *mode=%d\n", i, *mode);
^
cio.c: At top level:
cio.c:33:16: warning: return type defaults to ‘int’ [-Wimplicit-int]
#define bnread bnread_
^
cio.c:186:1: note: in expansion of macro ‘bnread’
bnread(fd, buf, nbuf, bread, ios, idiag)
^~~~~~
cio.c:34:16: warning: return type defaults to ‘int’ [-Wimplicit-int]
#define bnwrit bnwrit_
^
cio.c:237:1: note: in expansion of macro ‘bnwrit’
bnwrit(fd, buf, nbuf, bwritten, err, idiag)
^~~~~~
cio.c:32:16: warning: return type defaults to ‘int’ [-Wimplicit-int]
#define cclose cclose_
^
cio.c:271:1: note: in expansion of macro ‘cclose’
cclose(nunit, iprint, err)
^~~~~~

rm -f kwm_grid_utilities.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -DBIT32 -D_BZIP_NO kwm_grid_utilities.F > kwm_grid_utilities.f90
/usr/bin/gfortran-7 -c -ffree-form -ffree-line-length-none -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -I/usr/local/netcdf/include kwm_grid_utilities.f90

rm -f kwm_timing_utilities.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -DBIT32 -D_BZIP_NO kwm_timing_utilities.F > kwm_timing_utilities.f90
/usr/bin/gfortran-7 -c -ffree-form -ffree-line-length-none -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -I/usr/local/netcdf/include kwm_timing_utilities.f90

rm -f kwm_string_utilities.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -DBIT32 -D_BZIP_NO kwm_string_utilities.F > kwm_string_utilities.f90
/usr/bin/gfortran-7 -c -ffree-form -ffree-line-length-none -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -I/usr/local/netcdf/include kwm_string_utilities.f90
/usr/bin/gcc-6 -c swap4c.c

rm -f get_unused_unit.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -DBIT32 -D_BZIP_NO get_unused_unit.F > get_unused_unit.f90
/usr/bin/gfortran-7 -c -ffree-form -ffree-line-length-none -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -I/usr/local/netcdf/include get_unused_unit.f90
/usr/bin/gcc-6 -c -I/usr/local/JASPER/include decode_jpeg2000.c
/usr/bin/gcc-6 -c -D_BZIP_NO io_f.c

rm -f module_grib.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -DBIT32 -D_BZIP_NO module_grib.F > module_grib.f90
/usr/bin/gfortran-7 -c -ffree-form -ffree-line-length-none -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -I/usr/local/netcdf/include module_grib.f90

rm -f module_geo_em.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ -DBIT32 -D_BZIP_NO module_geo_em.F > module_geo_em.f90
/usr/bin/gfortran-7 -c -ffree-form -ffree-line-length-none -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -I/usr/local/netcdf/include module_geo_em.f90
rm -f libsmda.a
ar q libsmda.a module_grib2.o module_grib2_tables.o trig_degrees.o module_input_data_structure.o arguments_module.o gbytesys.o swap4f.o module_llxy.o cio.o kwm_date_utilities.o kwm_grid_utilities.o kwm_timing_utilities.o kwm_string_utilities.o swap4c.o get_unused_unit.o decode_jpeg2000.o io_f.o module_mapinfo.o module_grib1.o module_grib.o module_grib_common.o module_geo_em.o
ar: creating libsmda.a
make[2]: Leaving directory '/home/lxr/hrldas-release-3.7.1/HRLDAS/HRLDAS_forcing/lib'
(make -f Makefile all)
make[2]: Entering directory '/home/lxr/hrldas-release-3.7.1/HRLDAS/HRLDAS_forcing'

rm -f create_forcing.f90
/usr/bin/cpp-6 -P -traditional -D_GFORTRAN_ create_forcing.F > create_forcing.f90
/usr/bin/gfortran-7 -ffree-form -ffree-line-length-none -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -c -I/usr/local/netcdf/include -I./lib -I./lib create_forcing.f90
(cd lib; make)
make[3]: Entering directory '/home/lxr/hrldas-release-3.7.1/HRLDAS/HRLDAS_forcing/lib'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/lxr/hrldas-release-3.7.1/HRLDAS/HRLDAS_forcing/lib'
/usr/bin/gfortran-7 -o create_forcing.exe -I./lib -g -fconvert=big-endian -fbounds-check -fno-range-check -fno-underscoring -I./lib create_forcing.o
-L./lib -lsmda -L/usr/local/netcdf/lib -lnetcdf -lnetcdff -ljpeg -L/usr/local/JASPER/lib -ljasper
./lib/libsmda.a(module_grib2.o): In function __module_grib2_MOD_fortran_decode_jpeg2000': /home/lxr/hrldas-release-3.7.1/HRLDAS/HRLDAS_forcing/lib/module_grib2.f90:148: undefined reference to info_jpeg2000'
/home/lxr/hrldas-release-3.7.1/HRLDAS/HRLDAS_forcing/lib/module_grib2.f90:156: undefined reference to decode_jpeg2000' ./lib/libsmda.a(module_grib.o): In function __module_grib_MOD_findgrib':
/home/lxr/hrldas-release-3.7.1/HRLDAS/HRLDAS_forcing/lib/module_grib.f90:186: undefined reference to io_fread' /home/lxr/hrldas-release-3.7.1/HRLDAS/HRLDAS_forcing/lib/module_grib.f90:203: undefined reference to io_fread'
/home/lxr/hrldas-release-3.7.1/HRLDAS/HRLDAS_forcing/lib/module_grib.f90:223: undefined reference to io_fread' /home/lxr/hrldas-release-3.7.1/HRLDAS/HRLDAS_forcing/lib/module_grib.f90:280: undefined reference to io_ftell'
./lib/libsmda.a(module_grib.o): In function __module_grib_MOD_getgrib': /home/lxr/hrldas-release-3.7.1/HRLDAS/HRLDAS_forcing/lib/module_grib.f90:114: undefined reference to io_fread'
./lib/libsmda.a(module_grib.o): In function __module_grib_MOD_gribclose': /home/lxr/hrldas-release-3.7.1/HRLDAS/HRLDAS_forcing/lib/module_grib.f90:77: undefined reference to c_close'
./lib/libsmda.a(module_grib.o): In function __module_grib_MOD_gribopen': /home/lxr/hrldas-release-3.7.1/HRLDAS/HRLDAS_forcing/lib/module_grib.f90:67: undefined reference to c_gribopen'
collect2: error: ld returned 1 exit status
Makefile:28: recipe for target 'create_forcing.exe' failed
make[2]: *** [create_forcing.exe] Error 1
make[2]: Leaving directory '/home/lxr/hrldas-release-3.7.1/HRLDAS/HRLDAS_forcing'
Makefile:12: recipe for target 'default' failed
make[1]: *** [default] Error 2
make[1]: Leaving directory '/home/lxr/hrldas-release-3.7.1/HRLDAS/HRLDAS_forcing'
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 2

undefined reference to `info_jpeg2000' “ I don't know how to solve these undefined reference problems.

I have not changed any other code. So I hope you an solve my problem.

By the way ,I can successfully install the HRLDAS-3.6 in my conputer.(didn't change the gnu,netcdf,jasper et al)

I'm looking forward to your reply.
Many thanks and best wishes!

liuxiaoran

irrigation scheme

how can i run irrition scheme ? i try to run , but it says need reading agriculture data. i don't know the example of the data. can anybody help me? thanks for thousands.

Questions about installation of HRLDAS 3.6 using intel fortran with parallel capability

Hi all, I use intel fortran to compile parallel HRLDAS 3.6, and the following is my user_osptions:

2 #=============================================================================================
3 # Options for Linux with Intel Fortran MPI
4 #=============================================================================================
5
6 COMPILERF90 = mpif90 -f90=ifort
7 FREESOURCE = -free
8 F90FLAGS = -convert big_endian -g -O2 #-fpe0
9 MODFLAG = -I
10 LDFLAGS =
11 CPP = cpp
12 CPPFLAGS = -P -traditional -DgFortran -D_PARALLEL_ # -DSPATIAL_SOIL -D_PARALLEL_ -DMPP_LAND
13 LIBS =
14 LIBJASPER = -ljpeg -L/stor9000/apps/users/NWSUAF/2014011989/soft/jasper-1.900.2/lib -ljasper
15 INCJASPER = -I/stor9000/apps/users/NWSUAF/2014011989/soft/jasper-1.900.2/include
16 NETCDFMOD = -I/stor9000/apps/users/NWSUAF/2014011989/soft/hdf5-1.10.1/include
17 NETCDFLIB = /stor9000/apps/users/NWSUAF/2014011989/soft/hdf5-1.10.1/lib/libnetcdff.a /stor9000/apps/users/NWSUAF/2014011989/soft/hdf5-1.10.1/l ib/libnetcdf.a -lhdf5_hl -lhdf5 # -lz -lm
18 NETCDF4_COMPRESS = NO
19 BZIP2 = NO
20 BZIP2_INCLUDE = -I/stor9000/apps/users/NWSUAF/2014011989/soft/bzip2-1.0.6/include
21 BZIP2_LIB = -L/stor9000/apps/users/NWSUAF/2014011989/soft/bzip2-1.0.6/lib -lbz2
22 RM = rm -f
23 CC = mpiicc #cc

But when I make, there is an error:

image

Annual mean temperature unit

@barlage I am wandering what is the right unit (°C/K) for annual mean temperature for initializing HRLDAS.

In this, otherwise very useful, NCL script is is defined in °C ("annual_mean_temperature = 10.9 ; will be used as deep soil temperature"), but the variable TMN where it is stored is generally considered to be in K (in the HRLDAS code)

https://github.com/NCAR/hrldas-release/blob/c4e69907d684338c81dc8a1804ab39d9c47d4774/HRLDAS/HRLDAS_forcing/run/examples/single_point/create_setup.ncl

Thank you for help.

Noah-MP - gecros

I am running Noah-MP with crop model as 0 but after running model for around 15 years, I get an error regarding gecros_state stated in the image attached while running on cheyenne (ifort MPT). Is it an issue related to cluster or input forcing?
My guess is that the cluster is limiting the stack size. Any help would be appreciated.

Screenshot at 2019-10-03 12-00-46

File naming convention

Hello Mike,

Sorry to disturb you again.
Now I'm trying to run single point forcing. Because the time interval of site observations is half an hour. So my forcing files look like this: 199805020930.LDASIN_DOMAIN1. But maybe the model now doesn't support the interval of half an hour, so hrldas.exe failed when reading my forcing files.

Prof.Yuan advised me to modify it myself, but I wonder whether you can help me with that. For one thing, others won't trust what I will modify. For another, if the release codes do not include that, when the newest version comes out again and again, we'll modify it again and again unless we don't use the newest.

Even though I don't know whether I should ask you for this help, I still ask you for a try because I think we users are eager for that.
By the way, if the codes can include the spinup option in the namelist like the old version of Offline 1D Noah-MP LSM v1.1, I think it could be more convenient.

I'm looking forward to your reply.
Thanks and best wishes!

***** Problem nf90_create for ../HRLDAS/LADSOUT//2020090100.LDASOUT_DOMAIN2

Hello,

I got the error below when using hrldas model forced by GFS FNL 0.25 deg data.
The create_forcing.exe was run successfully and the forcing data was created
here is the user_build_options used to compile the binaries

 COMPILERF90    =       gfortran
 FREESOURCE     =       -ffree-form  -ffree-line-length-none
 F90FLAGS       =       -g -fconvert=big-endian -fbounds-check -fno-range-check
 MODFLAG        =       -I
 LDFLAGS        =
 CPP            =       /lib/cpp -P -nostdinc
 CPPFLAGS       =       -P -traditional -D_GFORTRAN_
 LIBS           =
 LIBJASPER      =       -ljpeg -L/opt/local/lib -ljasper
 INCJASPER      =       -I/usr/local/include
 NETCDFMOD      =       -I/usr/local/include
 NETCDFLIB      =       -L/usr/local/lib -lnetcdf -lnetcdff
 BZIP2          =       NO
 BZIP2_LIB      =       -lbz2
 BZIP2_INCLUDE  =       -I/usr/local/include
 RM             =       rm -f
 CC             =       cc

Any help with this issue

Thank you

wrfinput_flnm: '/home/rabah/HRLDAS/LADSIN/HRLDAS_setup_2020090100_d2'
wrfinput_flnm: '/home/rabah/HRLDAS/LADSIN/HRLDAS_setup_2020090100_d2'
netcdf_flnm: '/home/rabah/HRLDAS/LADSIN/HRLDAS_setup_2020090100_d2'
LDASIN TITLE attribute: OUTPUT FROM CONSOLIDATE_GRIB v20150518
ldasin_version = 20150518
LDASIN MMNINLU attribute: MODIFIED_IGBP_MODIS_NOAH
layer_bottom(1:4) = 0.1000 0.4000 1.0000 2.0000
layer_top(1:4) = 0.0000 0.1000 0.4000 1.0000
Soil depth = 0.100000 0.300000 0.600000 1.000000
k, dst_centerpoint(k) = 1 5.00000007E-02
k, dst_centerpoint(k) = 2 0.250000000
k, dst_centerpoint(k) = 3 0.700000048
k, dst_centerpoint(k) = 4 1.50000000

k, src_centerpoint(k) = 1 5.00000007E-02
k, src_centerpoint(k) = 2 0.250000000
k, src_centerpoint(k) = 3 0.699999988
k, src_centerpoint(k) = 4 1.50000000
(Near) match for destination layer: Taking destination layer at 0.0500 from source layer at 0.0500
(Near) match for destination layer: Taking destination layer at 0.2500 from source layer at 0.2500
(Near) match for destination layer: Taking destination layer at 0.7000 from source layer at 0.7000
(Near) match for destination layer: Taking destination layer at 1.5000 from source layer at 1.5000
k, dst_centerpoint(k) = 1 5.00000007E-02
k, dst_centerpoint(k) = 2 0.250000000
k, dst_centerpoint(k) = 3 0.700000048
k, dst_centerpoint(k) = 4 1.50000000

k, src_centerpoint(k) = 1 5.00000007E-02
k, src_centerpoint(k) = 2 0.250000000
k, src_centerpoint(k) = 3 0.699999988
k, src_centerpoint(k) = 4 1.50000000
(Near) match for destination layer: Taking destination layer at 0.0500 from source layer at 0.0500
(Near) match for destination layer: Taking destination layer at 0.2500 from source layer at 0.2500
(Near) match for destination layer: Taking destination layer at 0.7000 from source layer at 0.7000
(Near) match for destination layer: Taking destination layer at 1.5000 from source layer at 1.5000
SOIL TEXTURE CLASSIFICATION = STAS FOUND 19 CATEGORIES
SNOW HEIGHT NOT FOUND - VALUE DEFINED IN LSMINIT
NTIME = 48 KHOUR= 48 dtbl = 3600.00000

No such file or directory

***** Problem nf90_create for /home/rabah/HRLDAS/LADSOUT//2020090100.LDASOUT_DOMAIN2

STOP Stopped

Subwindow does not work

I try the options for sub domain in Noah-MP 4.0.1. But the result is still at the wrfinput domain scale. However, in NoahMP 3.6, the options work well!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.