steve-marshall-piq
New member
I'm having quite a bit of trouble running mpas_init_atmosphere. I am running MPAS v8.2.2, compiled within the JEDI framework (mpas-bundle, release 3.0.2). I am running this within the latest jedi development container on a Linux system (not a super-computing environment).
I have used the WPS ungrib program to convert a GDAS GRIB2 files into a file in WRF intermediate format. I have downloaded the 480km MPAS mesh and static files. I untarred these files and have links to all of these files in my current working directory (i.e. the "run" directory). NOTE: I have also tried this with the 30 km mesh, and gotten the same error, but it takes much longer to produce.
I have created the namelist.init_atmosphere and streams.init_atmosphere config files according to a tutorial found here (page 17). I've attached both of those files and the logs from my run of mpas_init_atmosphere.
I get warning messages about my namelist file, but the problems do not seem to be fatal. I've tried to resolve those issues, but some of the configuration did not work, so I have commented out the interpolation_control and decomposition sections.
The fatal problem is coming from configuration of the input stream in streams.init_atmosphere.
------
Details:
For initial testing, I am trying to make this work using the coarsest global mesh: the 480 km uniform MPAS mesh (x1.2562).
This is the command I am using to create an MPAS initialization file:
mpirun -np 1 /home/smarshall/jedi/mpas-bundle/rel3/build/bin/mpas_init_atmosphere
Here is the contents of my run directory (which I also used for running ungrib). The run directory is my current working directory when I run the command above:
-rw-r--r-- 1 smarshall smarshall 39487682 Apr 18 20:39 gdas.t00z.pgrb2.1p00.f000
lrwxrwxrwx 1 smarshall smarshall 25 Apr 21 12:47 GRIBFILE.AAA -> gdas.t00z.pgrb2.1p00.f000
lrwxrwxrwx 1 smarshall smarshall 75 Apr 21 12:47 Vtable -> /home/smarshall/jedi/mpas-bundle/rel3/WPS/ungrib/Variable_Tables/Vtable.GFS
-rw-rw-r-- 1 smarshall smarshall 709 Apr 21 12:48 namelist.wps
-rw-rw-r-- 1 smarshall smarshall 51391784 Apr 21 13:06 GFS:2024-01-01_00
-rw-rw-r-- 1 smarshall smarshall 30614 Apr 21 13:06 ungrib.log
lrwxrwxrwx 1 smarshall smarshall 100 Apr 21 14:43 x1.2562.static.nc -> /home/pyxis/Test/2023-12-15_ro_development/hofx_exp_202502/mpas_cache/mesh/x1.2562/x1.2562.static.nc
lrwxrwxrwx 1 smarshall smarshall 101 Apr 21 18:28 x1.2562.graph.info -> /home/pyxis/Test/2023-12-15_ro_development/hofx_exp_202502/mpas_cache/mesh/x1.2562/x1.2562.graph.info
lrwxrwxrwx 1 smarshall smarshall 109 Apr 21 18:28 x1.2562.graph.info.part.12 -> /home/pyxis/Test/2023-12-15_ro_development/hofx_exp_202502/mpas_cache/mesh/x1.2562/x1.2562.graph.info.part.12
lrwxrwxrwx 1 smarshall smarshall 109 Apr 21 18:28 x1.2562.graph.info.part.16 -> /home/pyxis/Test/2023-12-15_ro_development/hofx_exp_202502/mpas_cache/mesh/x1.2562/x1.2562.graph.info.part.16
lrwxrwxrwx 1 smarshall smarshall 108 Apr 21 18:28 x1.2562.graph.info.part.4 -> /home/pyxis/Test/2023-12-15_ro_development/hofx_exp_202502/mpas_cache/mesh/x1.2562/x1.2562.graph.info.part.4
lrwxrwxrwx 1 smarshall smarshall 108 Apr 21 18:28 x1.2562.graph.info.part.2 -> /home/pyxis/Test/2023-12-15_ro_development/hofx_exp_202502/mpas_cache/mesh/x1.2562/x1.2562.graph.info.part.2
lrwxrwxrwx 1 smarshall smarshall 108 Apr 21 18:28 x1.2562.graph.info.part.6 -> /home/pyxis/Test/2023-12-15_ro_development/hofx_exp_202502/mpas_cache/mesh/x1.2562/x1.2562.graph.info.part.6
lrwxrwxrwx 1 smarshall smarshall 108 Apr 21 18:28 x1.2562.graph.info.part.8 -> /home/pyxis/Test/2023-12-15_ro_development/hofx_exp_202502/mpas_cache/mesh/x1.2562/x1.2562.graph.info.part.8
lrwxrwxrwx 1 smarshall smarshall 98 Apr 21 18:28 x1.2562.grid.nc -> /home/pyxis/Test/2023-12-15_ro_development/hofx_exp_202502/mpas_cache/mesh/x1.2562/x1.2562.grid.nc
-rw-rw-r-- 1 smarshall smarshall 970 Apr 21 19:49 namelist.init_atmosphere
-rw-rw-r-- 1 smarshall smarshall 403 Apr 21 20:12 streams.init_atmosphere
-rw-rw-r-- 1 smarshall smarshall 2886 Apr 21 20:12 log.init_atmosphere.0000.out
-rw-rw-r-- 1 smarshall smarshall 441 Apr 21 20:12 log.init_atmosphere.0000.err
The crux of the error (from the .out log file) is:
Initializing MPAS_streamInfo from file streams.init_atmosphere
Reading streams configuration from file streams.init_atmosphere
Found mesh stream with filename template x1.2562.static.nc
Using default io_type for mesh stream
ERROR: Invalid DateTime string (invalid time substring) initial_time
** Attempting to bootstrap MPAS framework using stream: input
Bootstrapping framework with mesh fields from input file 'x1.2562.static.nc'
* Requested field lbc_scalars is deactivated due to packages, or is a scratch variable.
* Requested field lbc_u is deactivated due to packages, or is a scratch variable.
* Requested field lbc_w is deactivated due to packages, or is a scratch variable.
* Requested field lbc_rho is deactivated due to packages, or is a scratch variable.
* Requested field lbc_theta is deactivated due to packages, or is a scratch variable.
Parsing run-time I/O configuration from streams.init_atmosphere ...
----- found immutable stream "input" in streams.init_atmosphere -----
filename template: x1.2562.static.nc
filename interval: none
direction: input
reference time: initial_time
record interval: -
CRITICAL ERROR: xml stream parser failed: streams.init_atmosphere
The error seems to come from parsing the value of "reference_time", which I have not explicitly set, but which is getting the value "initial_time". I've tried explicitly setting filename_interval, record_interval, and reference_time for the input stream, but I cannot find a format that does not result in some other kind of error.
I have used the WPS ungrib program to convert a GDAS GRIB2 files into a file in WRF intermediate format. I have downloaded the 480km MPAS mesh and static files. I untarred these files and have links to all of these files in my current working directory (i.e. the "run" directory). NOTE: I have also tried this with the 30 km mesh, and gotten the same error, but it takes much longer to produce.
I have created the namelist.init_atmosphere and streams.init_atmosphere config files according to a tutorial found here (page 17). I've attached both of those files and the logs from my run of mpas_init_atmosphere.
I get warning messages about my namelist file, but the problems do not seem to be fatal. I've tried to resolve those issues, but some of the configuration did not work, so I have commented out the interpolation_control and decomposition sections.
The fatal problem is coming from configuration of the input stream in streams.init_atmosphere.
------
Details:
For initial testing, I am trying to make this work using the coarsest global mesh: the 480 km uniform MPAS mesh (x1.2562).
This is the command I am using to create an MPAS initialization file:
mpirun -np 1 /home/smarshall/jedi/mpas-bundle/rel3/build/bin/mpas_init_atmosphere
Here is the contents of my run directory (which I also used for running ungrib). The run directory is my current working directory when I run the command above:
-rw-r--r-- 1 smarshall smarshall 39487682 Apr 18 20:39 gdas.t00z.pgrb2.1p00.f000
lrwxrwxrwx 1 smarshall smarshall 25 Apr 21 12:47 GRIBFILE.AAA -> gdas.t00z.pgrb2.1p00.f000
lrwxrwxrwx 1 smarshall smarshall 75 Apr 21 12:47 Vtable -> /home/smarshall/jedi/mpas-bundle/rel3/WPS/ungrib/Variable_Tables/Vtable.GFS
-rw-rw-r-- 1 smarshall smarshall 709 Apr 21 12:48 namelist.wps
-rw-rw-r-- 1 smarshall smarshall 51391784 Apr 21 13:06 GFS:2024-01-01_00
-rw-rw-r-- 1 smarshall smarshall 30614 Apr 21 13:06 ungrib.log
lrwxrwxrwx 1 smarshall smarshall 100 Apr 21 14:43 x1.2562.static.nc -> /home/pyxis/Test/2023-12-15_ro_development/hofx_exp_202502/mpas_cache/mesh/x1.2562/x1.2562.static.nc
lrwxrwxrwx 1 smarshall smarshall 101 Apr 21 18:28 x1.2562.graph.info -> /home/pyxis/Test/2023-12-15_ro_development/hofx_exp_202502/mpas_cache/mesh/x1.2562/x1.2562.graph.info
lrwxrwxrwx 1 smarshall smarshall 109 Apr 21 18:28 x1.2562.graph.info.part.12 -> /home/pyxis/Test/2023-12-15_ro_development/hofx_exp_202502/mpas_cache/mesh/x1.2562/x1.2562.graph.info.part.12
lrwxrwxrwx 1 smarshall smarshall 109 Apr 21 18:28 x1.2562.graph.info.part.16 -> /home/pyxis/Test/2023-12-15_ro_development/hofx_exp_202502/mpas_cache/mesh/x1.2562/x1.2562.graph.info.part.16
lrwxrwxrwx 1 smarshall smarshall 108 Apr 21 18:28 x1.2562.graph.info.part.4 -> /home/pyxis/Test/2023-12-15_ro_development/hofx_exp_202502/mpas_cache/mesh/x1.2562/x1.2562.graph.info.part.4
lrwxrwxrwx 1 smarshall smarshall 108 Apr 21 18:28 x1.2562.graph.info.part.2 -> /home/pyxis/Test/2023-12-15_ro_development/hofx_exp_202502/mpas_cache/mesh/x1.2562/x1.2562.graph.info.part.2
lrwxrwxrwx 1 smarshall smarshall 108 Apr 21 18:28 x1.2562.graph.info.part.6 -> /home/pyxis/Test/2023-12-15_ro_development/hofx_exp_202502/mpas_cache/mesh/x1.2562/x1.2562.graph.info.part.6
lrwxrwxrwx 1 smarshall smarshall 108 Apr 21 18:28 x1.2562.graph.info.part.8 -> /home/pyxis/Test/2023-12-15_ro_development/hofx_exp_202502/mpas_cache/mesh/x1.2562/x1.2562.graph.info.part.8
lrwxrwxrwx 1 smarshall smarshall 98 Apr 21 18:28 x1.2562.grid.nc -> /home/pyxis/Test/2023-12-15_ro_development/hofx_exp_202502/mpas_cache/mesh/x1.2562/x1.2562.grid.nc
-rw-rw-r-- 1 smarshall smarshall 970 Apr 21 19:49 namelist.init_atmosphere
-rw-rw-r-- 1 smarshall smarshall 403 Apr 21 20:12 streams.init_atmosphere
-rw-rw-r-- 1 smarshall smarshall 2886 Apr 21 20:12 log.init_atmosphere.0000.out
-rw-rw-r-- 1 smarshall smarshall 441 Apr 21 20:12 log.init_atmosphere.0000.err
The crux of the error (from the .out log file) is:
Initializing MPAS_streamInfo from file streams.init_atmosphere
Reading streams configuration from file streams.init_atmosphere
Found mesh stream with filename template x1.2562.static.nc
Using default io_type for mesh stream
ERROR: Invalid DateTime string (invalid time substring) initial_time
** Attempting to bootstrap MPAS framework using stream: input
Bootstrapping framework with mesh fields from input file 'x1.2562.static.nc'
* Requested field lbc_scalars is deactivated due to packages, or is a scratch variable.
* Requested field lbc_u is deactivated due to packages, or is a scratch variable.
* Requested field lbc_w is deactivated due to packages, or is a scratch variable.
* Requested field lbc_rho is deactivated due to packages, or is a scratch variable.
* Requested field lbc_theta is deactivated due to packages, or is a scratch variable.
Parsing run-time I/O configuration from streams.init_atmosphere ...
----- found immutable stream "input" in streams.init_atmosphere -----
filename template: x1.2562.static.nc
filename interval: none
direction: input
reference time: initial_time
record interval: -
CRITICAL ERROR: xml stream parser failed: streams.init_atmosphere
The error seems to come from parsing the value of "reference_time", which I have not explicitly set, but which is getting the value "initial_time". I've tried explicitly setting filename_interval, record_interval, and reference_time for the input stream, but I cannot find a format that does not result in some other kind of error.