Re: Regridding Daymet Joined Tiles with ESMF_Regridding on NCL 6.1.0

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Fri Nov 02 2012 - 09:55:42 MDT

Ping,

Examples 2 and 3 don't set the destination grid file name, so this means the default name "destination_grid_file.nc" will be used.

Example 3 is confusing, because it sets the names:

    dstGridName_2x3 = "dst_SCRIP_2x3.nc"
    dstGridName_5x5 = "dst_SCRIP_5x5.nc"

But then it doesn't use them! The code will still work, but this means that the "destination_grid_file.nc" file will keep getting overwritten.

The code *should* have had the following lines, which I have now added:

    Opt5x5@DstFileName = dstGridName_5x5
    Opt2x3@DstFileName = dstGridName_2x3
 

I believe that is all you need to do in your code, is to set the "DstFileName" option to dstPathName.

--Mary

On Nov 1, 2012, at 10:20 AM, Ping Yang wrote:

> Hi NCL,
>
> For both the Example 2 and Example 3, I tried to find the destination file:
>
> ;---Set the destination file name
> dstDirName = "./"
> dstFileName = str_upper(vname)+"."+year+"_"+tile+".esmf.nc"
> dstPathName = dstDirName+dstFileName
>
> Which were supposed to be: PRCP.2010_12296.esmf.nc
>
> However, I didn't get it.
>
> How can I get the regrided output file? I was suggested that the file will be generated by default(no need the dstFile=addfile(dstPathName, "c"))
>
> Thanks,
>
> Ping
>
> On Wed, Oct 31, 2012 at 5:22 PM, Dennis Shea <shea@ucar.edu> wrote:
> These are just examples. You must adjust for your needs.
>
> So, if one degree of latitude is ~111.1km and you want 4km spacing,
> the 'dll' in *Example 3* should be adjusted accordingly.
>
> dll = 4.0/111.1 ; km/(km/deg) => deg
>
> [SNIP]
> I also have questions on the code creating the destination grid:
>
> ;---Create the destination lat/lon grid
> NLAT = nlat/4 ; 4 is arbitrary
> MLON = mlon/3 ; 3 is arbitrary
> lat = fspan( min(lat2d),max(lat2d),NLAT)
> lon = fspan( min(lon2d),max(lon2d),MLON)
>
> Opt@DstGridType = "rectilinear"
> Opt@DstGridLat = lat
> Opt@DstGridLon = lon
>
>
> I saw the number 4 and 3 are arbitrary, why? If I plan to regrid this 1
> KM to 4 KM, are they should be
> *nlat/2 *and *mlon/2*?
>
>
> _______________________________________________
> 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 Fri Nov 2 09:55:51 2012

This archive was generated by hypermail 2.1.8 : Tue Nov 06 2012 - 15:05:49 MST