Opened 13 years ago

Closed 13 years ago

#248 closed defect (fixed)

Concatenation of ROPP files

Reported by: Ian Culverwell Owned by: Ian Culverwell
Priority: normal Milestone: 6.0
Component: ropp_io Version: 4.1
Keywords: ncks concatenation Cc:

Description

We should investigate the use of ncks to glue ROPP files together (should DMI want to include T in their BUFR output, for example).

Attachments (10)

atm20110912_000312_M02_1230427200_N0019_XXXX.nc (600.7 KB ) - added by Ian Culverwell 13 years ago.
1dvar_sol.nc (38.5 KB ) - added by Ian Culverwell 13 years ago.
1dvar_sol_with_obsN.nc (38.8 KB ) - added by Ian Culverwell 13 years ago.
atm20110912_000312_M02_1230427200_N0019_XXXX.cdl (7.9 KB ) - added by Ian Culverwell 13 years ago.
atm20110912_000312_M02_1230427200_N0019_XXXX.bufr.dh (1.4 KB ) - added by Ian Culverwell 13 years ago.
transplant.sh (2.0 KB ) - added by Ian Culverwell 13 years ago.
atm20110912_000312_M02_1230427200_N0019_XXXX_1dvar.cdl (11.5 KB ) - added by Ian Culverwell 13 years ago.
atm20110912_000312_M02_1230427200_N0019_XXXX_1dvar.nc (609.3 KB ) - added by Ian Culverwell 13 years ago.
atm20110912_000312_M02_1230427200_N0019_XXXX_1dvar.bufr (18.3 KB ) - added by Ian Culverwell 13 years ago.
atm20110912_000312_M02_1230427200_N0019_XXXX_1dvar.bufr.dh (1.4 KB ) - added by Ian Culverwell 13 years ago.

Download all attachments as: .zip

Change history (15)

comment:1 by Ian Culverwell, 13 years ago

Owner: set to Ian Culverwell
Status: newassigned

by Ian Culverwell, 13 years ago

Attachment: 1dvar_sol.nc added

by Ian Culverwell, 13 years ago

Attachment: 1dvar_sol_with_obsN.nc added

comment:2 by Ian Culverwell, 13 years ago

Milestone: 5.16.0

Example solution (thanks to Chris Burrows for the data)

We seek to transplant the observed refractivity into the 1dVAR output, which by default contains the refractivity obtained by forward modelling the retrieved {T, q, p}.

This is how to do it.

OBS=atm20110912_000312_M02_1230427200_N0019_XXXX.nc # input file, containing refractivity derived from bending angle

ANL=1dvar_sol.nc # 1dvar solution, containing forward-modelled refractivity based on 1DVAR retrieval.

OUT=1dvar_sol_with_obsN.nc # desired output file

ncks -a -x -vrefrac $ANL -O $OUT # extract all but refrac from the retrieval file

ncks -vrefrac $OBS -A $OUT # append observed refractivity to the output file.

That's it. The 3 files are attached. As a check:

ncks -H -F -ddim_lev2a,1 -vrefrac -Q $OBS

refrac(1)=151.03

ncks -H -F -ddim_lev2a,1 -vrefrac -Q $ANL

refrac(1)=151.812574607

ncks -H F -ddim_lev2a,1 -vrefrac -Q $OUT

refrac(1)=151.03

This shows that the observed refractivity has been transplanted into the output file.

comment:3 by Ian Culverwell, 13 years ago

Alternatively, we could start transplant the 1dvar retrieval ({T, q, p}) into the observation file, and then convert that into BUFR, as DMI would do in practice. This procedure is carried out in the attached transplant.sh script. The nc and bufr output from this script are also attached, as are the "cdl" and "dh" summaries of the contents of the original and transplanted obs files.

by Ian Culverwell, 13 years ago

Attachment: transplant.sh added

comment:4 by Ian Culverwell, 13 years ago

Needs passing by DMI customers to see if it does what they want.

comment:5 by Ian Culverwell, 13 years ago

Resolution: fixed
Status: assignedclosed

No response from DMI after asking for feedback twice, so closing ticket.

Note: See TracTickets for help on using tickets.