CGD Forum  

Go Back   CGD Forum > Atmospheric Modeling with CAM > Working with input datasets for CAM

Reply
 
Thread Tools Display Modes
  #1  
Old 04-30-2009, 10:47 AM
ianderson ianderson is offline
Junior Member
 
Join Date: Apr 2009
Posts: 2
Default Preparing an SST boundary file for CAM3.1

Hello,

I am trying to use the Merged Hadley OI.v2 SST and Sea Ice dataset as a boundary file for a CAM simulation for the period 1979-2006.
I have used the utilities regrid and bcgen supplied with CAM (060418 version) to create a boundary file on the 64x128 grid, and have succesfully run it for 2 months in cyclic mode. However, when I try to run with sstcyc = .false. the model complains about dates:

SSTINI: Failed to find dates bracketing ncdate, ncsec= 19781231 85200

I am using the standard initial data, and setting
start_ymd = 19790101
start_tod = 0

My settings in the bcgen namelist are:
mon1 = 1
iyr1 = 1978
monn = 12
iyrn = 2007
mon1rd = 1
iyr1rd = 1979
monnrd = 12
iyrnrd = 2006
mon1clm = 1
iyr1clm = 1982
monnclm = 12
iyrnclm = 2001
mon1out = 1
iyr1out = 1979
monnout = 12
iyrnout = 2006

Is this a correct namelist for running for the period Jan 1979 - Dec 2006?
Does bcgen do everything necessary to prepare an SST boundary file for CAM or are there other steps?
The format of the time axis in the file produced by bcgen is 'days since 1979-01-01', whereas the standard CAM SST file has dates in the format '%Y%m%d.%f'

Thanks for any help,
Iain
Reply With Quote
  #2  
Old 05-05-2009, 05:57 AM
Ilit Ilit is offline
Junior Member
 
Join Date: Jul 2007
Posts: 11
Default Preparing an SST boundary file for CAM3.1

Dear Iain,
I am trying to use the regrid and bcgen utilities and have some questions.
I am manipulating the SST and ice_cov variables and then want to insert them to the model as boundaries (from T42 to T42, so I don't need to change resolution).

I understand that I need 2 separate files: one for SST and one for ice_cov, but I am not sure that I build them correctly (I get an error: "NetCDF: Invalid dimension ID or name" ).
Do you have such files for example (maybe the files MODEL.had+oiv2.sst.mnly.49-01.unf.nc
and MODEL.had+oiv2.ice.mnly.49-01.unf.nc that are in the description)?

Many thanks,
Ilit
__________________
_________________
Ilit Shlezak
Weizmann Institute
Reply With Quote
  #3  
Old 05-06-2009, 04:06 PM
ianderson ianderson is offline
Junior Member
 
Join Date: Apr 2009
Posts: 2
Default Preparing an SST boundary file for CAM3.1

Problem solved.
Because I want to start the model on 1st January 1979 and the monthly SST data is labeled the 16th, I need to include December 1978 on the SST file.

Hello Ilit,
I'm really a beginner with the CAM model, so perhaps someone else is better placed to help, but I can point you towards where I downloaded the Merged Hadley SST/Ice datasets. They are available from the NCAR Community Data Portal (you have to register):
http://cdp.ucar.edu/browse/browse.ht...ed.thredds.xml

Iain
Reply With Quote
  #4  
Old 05-10-2009, 09:48 AM
Ilit Ilit is offline
Junior Member
 
Join Date: Jul 2007
Posts: 11
Default Preparing an SST boundary file for CAM3.1

Thanks Iain.
I will post a new question about it.
__________________
_________________
Ilit Shlezak
Weizmann Institute
Reply With Quote
  #5  
Old 10-21-2009, 09:06 AM
skywater skywater is offline
Junior Member
 
Join Date: Mar 2009
Posts: 9
Default

Hi,Iain

I meet a problem when regrid the sst and ice data to T42 data set from 1870-2000. I used icesst tool of 060418 version.
My steps is that:
Code:
make
cd regrid
REGRID.p1 T42
./regrid -i xxxx.ice.xxx.nc -s xxxx.sst.xxx.nc -o regrid.T42.nc
After the last step, it appeared that "Attribute not found Abort (core dumped)". And there is nothing but lat and lon in file regrid.T42.nc.

Could you give me any suggestion?

Thanks a lot!
Reply With Quote
  #6  
Old 10-23-2009, 03:58 PM
hannay hannay is offline
Member
 
Join Date: Oct 2004
Posts: 19
Thumbs up

You need to specify the grid you want to use using the -g option:
./regrid -i ice_inputfile.nc -s sst_inputfile.nc -g grid_T42.nc -o outputfile.nc

where:
- ice_inputfile.nc is your 1x1 input netcdf ICE concentration file
- sst_inputfile.nc is your 1x1 input netcdf SST file
- grid_T42.nc is the grid you want to use:

For T42 it will be a netcdf file with
dimensions:
lat = 48 ;
lon = 96 ;
variables:
double gw(lat) ;
gw:long_name = "gauss weights" ;
double lat(lat) ;
lat:long_name = "latitude" ;
lat:units = "degrees_north" ;
double lon(lon) ;
lon:long_name = "longitude" ;
lon:units = "degrees_east" ;

- outputfile.nc is the output file
__________________
++++++++++++++++++++++++++++++++++++++++++++
Cecile Hannay
National Center for Atmospheric Research
email: hannay@ucar.edu
webpage: http://www.cgd.ucar.edu/cms/hannay
++++++++++++++++++++++++++++++++++++++++++++
Reply With Quote
  #7  
Old 11-02-2009, 08:26 AM
skywater skywater is offline
Junior Member
 
Join Date: Mar 2009
Posts: 9
Default

I get it. And problems have been resolved. Thanks you very much!
Reply With Quote
  #8  
Old 11-04-2009, 11:17 AM
hannay hannay is offline
Member
 
Join Date: Oct 2004
Posts: 19
Default

New icesst tools is available at:
ftp://ftp.cgd.ucar.edu/archive/icesst/

The icesst code allows to build CAM-readable SST and sea ice concentration boundary datasets at an arbitrary resolution.

The icesst tool was part of CAM3.1. The code has been updated to recognize the new datasets being provided at:
http://cdp.ucar.edu/MergedHadleyOI
This new code will be released as a part of CAM4.
__________________
++++++++++++++++++++++++++++++++++++++++++++
Cecile Hannay
National Center for Atmospheric Research
email: hannay@ucar.edu
webpage: http://www.cgd.ucar.edu/cms/hannay
++++++++++++++++++++++++++++++++++++++++++++
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 02:49 AM.