Opened 6 months ago

Last modified 5 months ago

#3141 accepted help

merging two JULES output data files (netCDF)

Reported by: NoelClancy Owned by: pmcguire
Component: JULES Keywords: NETCDF, FLUXNET, JULES
Cc: Platform:
UM Version:

Description

When you run a suite such as u-bm175 for example. /roses/u-bm175/app/jules/rose-app.conf

Lets say for example in the namelists have 25 output variables for daily data and 15 output variables for hourly data

[namelist:jules_output_profile(1)]
nvars=25
[namelist:jules_output_profile(2)]
nvars=15

If you re-run the same suite with more variables, the experiment takes much longer, for example:

[namelist:jules_output_profile(1)]
nvars=35
[namelist:jules_output_profile(2)]
nvars=25

The netCDF files for second experiment will overwrite those for the first.

If after that you need an extra 2 output variables but you don’t want to run a long experiment can you add the two variables to the original suite

[namelist:jules_output_profile(1)]
nvars=25+2
[namelist:jules_output_profile(2)]
nvars=15+2

And then if the output folder is different, can you merge with the larger netCDF files

[namelist:jules_output_profile(1)]
nvars=35+2
[namelist:jules_output_profile(2)]
nvars=25+2

How can you do this?

Change History (2)

comment:1 Changed 6 months ago by pmcguire

  • Cc mcguirepatr@… removed
  • Keywords NETCDF, FLUXNET, JULES added
  • Status changed from new to accepted

Hi Noel
Maybe you can use 'cdo merge' to merge the two NETCDF files together into a new NETCDF file? Does that work?
Patrick

comment:2 Changed 5 months ago by pmcguire

Hi Noel
Are you still working on this?
One way to do this is to first use 'cdo select' to select the variables you want from one file and save those variables/fields to a new file. Then you can use 'cdo merge' to merge the new file with the other file with the other variables.
Does that work?
Patrick

Note: See TracTickets for help on using tickets.