Re: Change of dimension size

From: Wei Huang <huangwei_at_nyahnyahspammersnyahnyah>
Date: Tue Mar 05 2013 - 12:14:35 MST

Jianwei,

Check out:
http://www.ncl.ucar.edu/Applications/method_2.shtml

You may follow this example to get what you want.

Wei

huangwei@ucar.edu
VETS/CISL
National Center for Atmospheric Research
P.O. Box 3000 (1850 Table Mesa Dr.)
Boulder, CO 80307-3000 USA
(303) 497-8924

On Mar 5, 2013, at 12:08 PM, Jianwei Li <jianweili.2@gmail.com> wrote:

> Hi,
>
> I have a netcdf file with 5 dimensions and 8 variables as shown below.
> I want to change the dimension "soil size: 10" to "soil size: 20", with the output file should keep all variables and data from the original file.
>
>
>
>
> Does anyone have the idea?
> I appreciate your help.
>
> Sincerely,
> Jianwei
>
>
>
>
> [1] "file E:/Jianwei/sample.nc has 5 dimensions:"
> [1] "longitude Size: 360"
> [1] "latitude Size: 150"
> [1] "patch Size: 1"
> [1] "soil Size: 10"
> [1] "time Size: 12"
> [1] "------------------------"
> [1] "file E:/Jianwei/sample.nc has 8 variables:"
> [1] "float area[longitude,latitude] Longname:area Missval:-99"
> [1] "int iveg[longitude,latitude] Longname:classification of veg type Missval:-1"
> [1] "float patchfrac[longitude,latitude,patch] Longname:Patch fraction; 1.0 for 1x1 grid Missval:-1"
> [1] "int isoil[longitude,latitude] Longname:Zobler soil type Missval:-1"
> [1] "float soilmoist[longitude,latitude,soil,time] Longname:Soil moisture profile from previous GSWP runs Missval:-1"
> [1] "float soiltemp[longitude,latitude,soil,time] Longname:Soil temperature profile from previous GSWP runs Missval:-1"
> [1] "float SnowDepth[longitude,latitude,time] Longname:SnowDepth Missval:-1"
> [1] "float LAI[longitude,latitude,time] Longname:Leaf area index Missval:-1"
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Mar 5 12:14:48 2013

This archive was generated by hypermail 2.1.8 : Thu Mar 07 2013 - 08:55:58 MST