Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

Issue with Interpic_new

yixia

Yi Xia
New Member
Hi,
I'm trying to interpret my cam initial condition from f09_f09 to f02_f02. I successfully make the executable interpic_new in cam tools. And also add the vertical layers to my template file as following

Code:
cp fv_0.23x0.31.nc fv_0.23x0.31_L32.nc
ncks -vhyai,hyam,hybi,hybm cami-mam3_0000-01-01_0.9x1.25_L32_c141031.nc fv_0.23x0.31_L32.nc

But when I try to interpret my initial condition files one by one (I'm not sure that's the right way to do so, like interpret cam, clm... one by one), some errors showed up.

My command (deleted parts of my directory):
Code:
./interpic -t fv_0.23x0.31_L32.nc f.e20.FHIST.f02_f02.cesm2_1.001_v2/1979-01-01/f.e20.FHIST.f09_f09.cesm2_1.001_v2.cam.i.1979-01-01-00000.nc f.e20.FHIST.f02_f02.cesm2_1.001_v2/1979-01-01/f.e20.FHIST.f02_f02.cesm2_1.001_v2.cam.i.1979-01-01-00000.nc

Result:
Code:
 create var P0 ndims=           0  dids= vid=           7
 create var time ndims=           1  dids=           5  vid=           8
 create var date ndims=           1  dids=           5  vid=           9
 create var datesec ndims=           1  dids=           5  vid=          10
 create var time_bnds ndims=           2  dids=           6           5  vid=
          11
 create var date_written ndims=           2  dids=           7           5  vid=
          12
 create var time_written ndims=           2  dids=           7           5  vid=
          13
 create var ndbase ndims=           0  dids= vid=          14
 create var nsbase ndims=           0  dids= vid=          15
 create var nbdate ndims=           0  dids= vid=          16
 create var nbsec ndims=           0  dids= vid=          17
 create var mdt ndims=           0  dids= vid=          18
 create var ndcur ndims=           1  dids=           5  vid=          19
 create var nscur ndims=           1  dids=           5  vid=          20
 create var nsteph ndims=           1  dids=           5  vid=          21
 create var CLDICE ndims=           4  dids=           2           1           4
           5  vid=          22
 nf_inq_varid: lon not found
 NetCDF: Variable not found                                                     
 
abort:

Can someone help me with this? Thank you so much!
 

peverley

Courtney Peverley
Moderator
Staff member
Hi,

It looks like you are missing the "lon" variable from your file. I would try amending your "ncks" command to include "lon"

Courtney
 
Top