[RegCNET] ~~~~~~~~about regcm3~~~~~~~

IMRAN NADEEM qphoton at gmail.com
Fri Feb 19 15:48:56 CET 2010


Hi Suman,
     RegCM3 doesn't accept data in grib format. You have to convert it to
netcdf. There are several ways to do the conversion. You should have
knowledge of NCO (Netcdf operators) for doing this. Few hints for
conversion:

1) Using NCAR COMMAND LANGUAGE (NCL):

a) ncl_convert2nc infile.grb -u initial_time0_hours -U time

output file name will be similar to infile excpet now extension will be .nc,
-u initial_time0_hours  : to make time record dimension (unlimited)
-U time                 : to assing a newname "time" to coordinate variable
initial_time0_hours.

convert one file at a time.


b) Using (Xconv/Convsh - http://badc.nerc.ac.uk/help/software/xconv/)

convsh subset.tcl -i infiles.grib -o outfile.nc -of netcdf
(subset.tcl is attached)

The script subset.tcl should be in the directory where conversion is being
done.
Advantage: Convert multiple input files and create one outfile file. Also
you can
subset variables if you have more than one variables in input file.


c) Climate Data Operators:

cdo -f nc copy infile.grb outfile.nc


2) ncrcat infiles.nc outfile.nc      (to concatenate nc files along record
dimension)

3) ncrename -h -v Temp,T infile.nc      (to rename a variable from Temp  to
T in nc file)

   ncrename -v p,levelist -v t,date -v R,r -d p,levelist -d t,date infile.nc
(to raname  variables and dimensions)

4) ncatted  -a units,levelist,m,c,"millibars" infile.nc            (to
change file attributes)

Regards
Nadeem



On Fri, Feb 19, 2010 at 9:32 AM, Suman Maity <suman.buie at gmail.com> wrote:

> dear all,
> myself suman maity from india.i am using regcm3 for last two years.actually
> to run regcm3,four type of data required----------landuse data,terrain
> data,sst data and meteorological data.now this meteorological data are of
> different types.we are using mainly 3 type of data(NNRP1,NNRP2 and
> ERA40).they are all in netCDF format.if i download these data from *
> www.dss.ucar.edu* then they are in grib1 format.my question is can regcm3
> accept these grib1 data?  if yes then how????or i have to conclude that
> regcm3 can access netCDF data???
>
>
> please help me.it's urgent....
>
>
> suman maity
> research scholar
> IIT,Kharagpore,India.
> _______________________________________________
> RegCNET mailing list
> RegCNET at lists.ictp.it
> https://lists.ictp.it/mailman/listinfo/regcnet
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ictp.it/pipermail/regcnet/attachments/20100219/92ffa37c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: subset.tcl
Type: application/x-tcl
Size: 15234 bytes
Desc: not available
URL: <https://lists.ictp.it/pipermail/regcnet/attachments/20100219/92ffa37c/attachment-0002.tcl>


More information about the RegCNET mailing list