Error: unable to open existing NetCDF file

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
langlangxie
Posts: 42
Joined: Fri Jul 11, 2014 3:03 pm
Location: Hohai University

Error: unable to open existing NetCDF file

#1 Unread post by langlangxie »

Hi,everyone.
I have had some trouble in my ROMS.
Look :NLM: GET_STATE - Read state initial conditions, t = 0 00:00:00
(Grid 01, File: roms_ini_Y2001M1.nc, Rec=0001, Index=1)
- free-surface
(Min = 3.77269772E-01 Max = 9.62686659E-01)
- vertically integrated u-momentum component
(Min = -2.90209194E-01 Max = 2.30861325E-01)
- vertically integrated v-momentum component
(Min = -3.20704000E-01 Max = 1.98291190E-01)
- u-momentum component
(Min = -6.59128062E-01 Max = 4.74615451E-01)
- v-momentum component
(Min = -7.47192880E-01 Max = 8.06815021E-01)
- potential temperature
(Min = 1.18689602E+00 Max = 2.95576195E+01)
- salinity
(Min = 2.94315109E+01 Max = 3.49142715E+01)

NETCDF_OPEN - unable to open existing NetCDF file:
I think my .nc have error,can you tell me some new suggestions.
My .h:
/*
** svn $Id: weddell.h 25 2007-04-09 23:43:58Z arango $
*******************************************************************************
** Copyright (c) 2002-2007 The ROMS/TOMS Group **
** Licensed under a MIT/X style license **
** See License_ROMS.txt **
*******************************************************************************
**
**
**
** Application flag: Control run for the Indian Ocean
** Input script: ioctl.in
*/

/**************************** Basic physics options **************************/
#define SOLVE3D
#define UV_COR
#define UV_ADV
#define UV_VIS2
#define TS_DIF2
#define SALINITY
#define MIX_GEO_TS /* mixing on geopotential (constant Z) surfaces */
#define MIX_S_UV /* use if mixing along constant S-surfaces */
#define NONLIN_EOS

/*************************** Basic numerics options **************************/
#define CURVGRID
#define MASKING
#define SPLINES /* use to activate parabolic splines reconstruction */
#define TS_U3HADVECTION /* define if 3rd-order upstream horiz. advection */
#define TS_C4VADVECTION /* use if 4th-order centered vertical advection */
#define DJ_GRADPS
!#define PROFILE /* use if time profiling */

/************************************ Outputs ********************************/
#define AVERAGES
!#define DIAGNOSTICS_UV
!#define DIAGNOSTICS_TS

/*************************atmospheric boundary layer***********************************/
#define BULK_FLUXES
#ifdef BULK_FLUXES
#define COOL_SKIN
#define EMINUSP
#define LONGWAVE
#define SHORTWAVE
#endif

!#define ANA_HUMIDITY
!#define ANA__MASK
!#define ANA_SMFLUX
!#define ANA_SRFLUX
!#define ANA_STFLUX
!#define ANA_TAIR
!#define ANA_WINDS


/*********************** Surface and bottom boundary conditions **************/
/* Bottom boundary conditions */
#define ANA_BSFLUX /* analytical bottom salinity flux */
#define ANA_BTFLUX /* analytical bottom temperature flux */
#undef ANA_INITIAL
#define UV_QDRAG /* use to turn ON or OFF linear bottom friction */

/* Surface boundary conditions */
#define QCORRECTION
#define SCORRECTION
My .in:
GRDNAME == roms_grd.nc
ININAME == roms_ini_Y2001M1.nc
ITLNAME == ocean_itl.nc
IRPNAME == ocean_irp.nc
IADNAME == ocean_iad.nc
FWDNAME == ocean_fwd.nc
ADSNAME == ocean_ads.nc
BRYNAME == roms_bry_Y2001M1.nc
! CLMNAME == scs_clm_Y2001M1.nc
NFFILES == 2 ! number of unique forcing files
FRCNAME == roms_frc_CFSR_Y2001M1.nc |
roms_blk_CFSR_Y2001M1.nc
Thanks a lot!
xie

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: Error: unable to open existing NetCDF file

#2 Unread post by kate »

You need to find out which file it's not reading. After the (successful) call to get_state, the next data calls are get_idata and get_data. Do you have any point sources? They would get set in your ocean.in file (LuvSrc and friends). If not, then it's going to your boundary, climatology and forcing files. How did you set all those options in your ocean.in?

Post Reply