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

Issue running convert_mpas

mantovani

New member
Hi there,

I am using convert_mpas and I have included some variables in the include_fields, but some of them are not written in latlon.nc. I would like to get both xtime and initial_time, however convert_mpas are not including it. Why? I have already checked diag.nc files and they have both variable there.

Thanks,
Mantovani.
 
Mantovani,
convert_mpas doesn't process 'xtime' and 'initial_time'. If you look at the source code, you will find that the output of convert_mpas doesn't include these two variables. Sorry for the inconvenience caused by this.
 
If you don't mind I will hijack the thread.

Small limited area model

The setup:
1. the .pts file
Name: 3km_e_alps
Type: ellipse
Point: 47, 13
Semi-major-axis: 120000 # Meters
Semi-minor-axis: 90000 # Meters
Orientation-angle: 75

which looks like confirmed by ncl generated .pdf. See attached
2. the history.*.nc has hpbl var. I can see it via
ncdump -v hpbl ./history.2024-08-06_12.00.00.nc

3. following postproc_and_viz.pdf the target_domain file
startlat=46
endlat=48
startlon=11.0
endlon=15
nlat=220
nlon=300
and the include_fields file
th2m
hpbl
u10
v10

The outcome:
1. output of convert_mpas ./latlon.nc doesn't have any values in hpbl. Just list of empty, coma separated fields
2. same happens if I remove target_domain and include_fields files - i.e. in case I somehow missed the domain (I am not)

The output of conversion (I don't see anything suspicious)
Reading MPAS mesh information from file './history.2024-08-06_12.00.00.nc'

Reading target domain specification from file 'target_domain'
Setting startlat = 46.0000000
Setting endlat = 48.0000000
Setting startlon = 11.0000000
Setting endlon = 15.0000000
Setting nlat = 220
Setting nlon = 300

Computing remapping weights
Time to compute remap weights: 1.318356 s
Existing output file has 1 records

Reading list of fields to include in remapped output
Found 4 lines in 'include_fields' file
List of fields to be excluded from output ('exclude_fields') not found
Remapping MPAS fields from file './history.2024-08-06_12.00.00.nc'
Input file has 1 records

Remapping field hpbl, frame 1
read: 0.000036 s
remap: 0.000303 s
write: 0.000797 s
Remapping field u10, frame 1
read: 0.000022 s
remap: 0.000331 s
write: 0.000636 s
Remapping field v10, frame 1
read: 0.000038 s
remap: 0.000224 s
write: 0.000609 s
Remapping field th2m, frame 1
read: 0.000018 s
remap: 0.000215 s
write: 0.000589 s

Total runtime: 1.340084

The file: history.2024-08-06_12.00.00.nc
66.1MB

Any suggestion what might go wrong?
 

Attachments

  • 2024-08-10_22-31.png
    2024-08-10_22-31.png
    106.3 KB · Views: 2
Hi,

I can repeat your issue, and I don't have an immediate answer why convert_mpas doesn't work.

I suppose your history file is output of standard MPAS regional model. Please let me know if I am wrong.
 
Top