Opened 8 months ago

Closed 7 months ago

#2692 closed help (fixed)

NDdiag with packed pp files

Reported by: bharvey Owned by: um_support
Component: NDdiag Keywords: byte swapping
Cc: Platform: JASMIN
UM Version: 10.4

Description

I've not used NDdiag before, but would like to run it over some operational UM output to compare the outputs with some diagnostics I've produced.

I've retrieved some prodm_op_gl-up files from moose:/opfc/atm/global but NDdiag fails on these with

At line 1465 of file PP_ROUTINES.f90 (unit = 31, file = '/home/users/bjharvey/workspaces/ncas_weather/NDdiag_test/prodm_op_gl-up_20161231_00_000_swapb.pp')
Fortran runtime error: I/O past end of record on unformatted file

I think this is because the files are packed pp files. Does NDdiag require unpacked files?

If yes, should I use pp_unpack to do this? I'm working on jasmin. Is there a compiled version of pp_unpack available there already?

Thanks,

Ben

Change History (4)

comment:1 Changed 7 months ago by willie

  • Platform set to Other

Hi Ben,

I think it is more likely to be byte swapped. I have a program on JASMIN in /home/users/wmcginty/bin called swapbytes. The usage is

swapbytes <input file> <output file>

Try this and use the output in NDdiag.

Willie

comment:2 Changed 7 months ago by willie

  • Keywords byte swapping added; pp_unpack removed
  • Platform changed from Other to JASMIN

comment:3 Changed 7 months ago by bharvey

Thanks Willie.

I've solved this problem now, it turns I out I needed to swap bytes and unpack as well. In case it's useful to future users, the error I got when I needed to swap bytes was

STOP Can't determine the number of RHO-levels.

and the error I got when I needed to unpack was

At line 1465 of file PP_ROUTINES.f90 (unit = 31, file = '/home/users/bjharvey/workspaces/ncas_weather/NDdiag_test/prodm_op_gl-up_20161231_00_000_swapb.pp')
Fortran runtime error: I/O past end of record on unformatted file

Cheers

Ben

comment:4 Changed 7 months ago by willie

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.