Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

The number of times in the latlon.nc file obtained by convert_mpas is different from the number in the history.*.nc file

meteowang

New member
The time range of my history file is from June 29, 2021 to August 1, 2021, and there are 793 files in total. I use the ./convert_mpas history.2021-0* command to generate the latlon.nc file. I extracted the v10 value of a certain latitude and longitude in the latlon.nc file, and there were only 792 lines of data, indicating that there were only 792 times. I don't know when the data was lost.
 
According to the README.md file:
If two or more file arguments are given, the MPAS mesh information will be read from the first file and fields to be remapped will be read from the subsequent files.
So if you're processing multiple history files, you can give as the first command-line argument any file that contains mesh information (e.g., your static.nc file, or your init.nc file); then you can list all history files to be converted. In fact, even the default history files should have mesh information, so you could try something like:
Bash:
./convert_mpas history.2021-06-29_00.00.00.nc history.2021-0*
 
According to the README.md file:

So if you're processing multiple history files, you can give as the first command-line argument any file that contains mesh information (e.g., your static.nc file, or your init.nc file); then you can list all history files to be converted. In fact, even the default history files should have mesh information, so you could try something like:
Bash:
./convert_mpas history.2021-06-29_00.00.00.nc history.2021-0*
Thanks for your advice! I just used your command, and the amount of interpolation is correct now!
 
Top