[gradsusr] lats4d regrid

Arlindo da Silva dasilva at alum.mit.edu
Mon Apr 25 21:19:09 EDT 2011


On Fri, Apr 22, 2011 at 12:49 PM, Ghan, Steven J <Steve.Ghan at pnl.gov> wrote:

> I am a novice user of lats4d, and am trying to use it to regrid data.
>
> I have a netcdf file with data on the grid that I want to regrid to, but
> it's not clear to me how to use it. The documentation says
> "If you already have a sample file at the desired new resolution, great!
> Otherwise you can get one by creating a fake GrADS control file. There are a
> few samples on the last4d home page: geos1x1.ctl, geos4x5.ctl and
> geos2x25.ctl. This file is used to define the dimension environment at the
> new desired resolution through the "-de" option."
> The example
>
> lats4d -i model -de geos1x1  -func
> re(@,360,linear,-180,1,181,linear,-90,1,bl)
>
>
> is apparently for the case when a control file is needed. What do I do if I
> have file with data on the grid I want?
>
>
No problem, just use this file to provide the dimension environment. For
example, suppose your have a file called "newgrid.nc", do this

% lats4d.sh -i input.ctl -o output -de newgrid.nc  -func
're(@,360,linear,-180,1,181,linear,-90,1,bl)' -v

and file output.nc will be created. The dimension environment file is needed
to facilitate the creation of the output file. In principle this information
could be derived from the re() arguments but lats4d does not know anything
about re()...

   Arlindo









>
> -Steve Ghan
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>



-- 
Arlindo da Silva
dasilva at alum.mit.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110425/5455ad4d/attachment.html 


More information about the gradsusr mailing list