Re: regrid and outputing nc file

From: Debasish PaiMazumder <debasish_at_nyahnyahspammersnyahnyah>
Date: Tue, 28 Jul 2009 11:24:23 -0400

Dear Sunflower,

First of all you declare

LAT = ispan (-90,90,1)
LON = ispan (0,360,1)

The dimension size of LAT is 181 and dimension size of LON 361

Therefore dimension of f0 are (ntime, 181, 361)

You also declare

dim_fo = dimsizes(fo)

ntim = dimsizes(0)
nlat = dimsizes(1)
mlon = dimsizes(2)

I guess the above three lines are incorrect. It should be like

dim_fo = dimsizes(fo)

ntim = dim_fo(0)
nlat = dim_fo(1)
mlon = dim_fo(2)

Good Luck

Debasish

On 09-07-28, at 10:33, yanling_1220 wrote:

> Hi,
> Thanks for your suggestion,but after modified the script as you
> said,it pop up en error message at the same line(line 56 in the
> script attched).Can you help me to see where is the error? Thanks.
>
> At the same time , Can I ignore the last odd line in the content
> from the "print(LAT)" ?
> (0) -90
> (1) -89
> (2) -88
> ....
> (179) 89
> (180) 90
> (0) changeCaseChar: this function has been deprecated.
> (0) Will use str_switch.
> (0) changeCaseChar: this function has been deprecated.
> (0) Will use str_switch.
>
> Regrads,
> sunflower
>
>
>
>
>
>
> 网易YEAH.NET免费邮箱:您的终身免费邮箱
> <a_runs_average_sresa2_nc_2001_2030_celsius_linint_1.0_2.ncl>

Debasish PaiMazumder, PhD
Hydrology & Climate Science
Postdoctoral Researcher at UQÀM/Ouranos
550, Sherbrooke west, 19th floor, west tower,
Montréal, QC, Canada H3A 1B9
Tel: (514) 282-6464-343
      (514) 937-0042 (R)
email: debasish_at_sca.uqam.ca

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Jul 28 2009 - 09:24:23 MDT

This archive was generated by hypermail 2.2.0 : Wed Jul 29 2009 - 09:07:41 MDT