[ncl-talk] multiply_files_with_different_grid_shape

Kunal Bali kunal.bali9 at gmail.com
Wed Nov 29 04:25:29 MST 2017


please ignore the previous mail.

I have sorted out this problem.


regards
Kunal Bali






On Wed, Nov 29, 2017 at 3:02 PM, Kunal Bali <kunal.bali9 at gmail.com> wrote:

>
> Dear NCL users,
>
> I have 2 files (file1, file2) with different grid structure/shape. file1
> has a curvilinear grid structure and file2 has a uniform grid structure
> (see the attached file).
>
> file1 has 1km (0.01) resolution and file2 was initially in .asc file with
> 10km (0.1) resolution, then I converted into .nc using CDO and then
> regridding into 1km (extact 0.0152).
>
> Now I want to multiply file1 with file2 and get the result with the same
> grid structure as of file1.
>
> Could anyone please let me know how can I do that.
> I hope you have understood my point.
>
>
>
> *file1:*
>
>    dimensions:
>       XDim_grid1km = 1200
>       YDim_grid1km = 1200
>       time = 1  // unlimited
>       bnds = 2
>    variables:
>       double time ( time )
>          standard_name :    time
>          bounds :    time_bnds
>          units :    hours since 2000-1-1 00:00:00
>          calendar :    standard
>          axis :    T
>
>       double time_bnds ( time, bnds )
>
>       double lat ( YDim_grid1km, XDim_grid1km )
>          long_name :    latitude
>          units :    degrees_north
>          projection :    Albers Conical Equal_Area
>          corners :    ( 21.85876153675459, 24.54921980985786,
> 13.83114494678434, 11.2940312768897 )
>
>       double lon ( YDim_grid1km, XDim_grid1km )
>          long_name :    longitude
>          units :    degrees_east
>          projection :    Albers Conical Equal_Area
>          corners :    ( 68.08003670367275, 79.47671412331489,
> 81.63171349927691, 71.2292608800723 )
>
>       short Optical_Depth_055_grid1km ( time, YDim_grid1km, XDim_grid1km )
>          long_name :    AOT at 0.55 micron
>          add_offset :       0
>          scale_factor :    0.001
>          _FillValue :    -28672
>          missing_value :    -28672
>          hdfeos_name :    Optical_Depth_055
>          projection :    Albers Conical Equal_Area
>          unit :    None
>
>
>
> *file2*:
>
> dimensions:
>       lon = 2497
>       lat = 2112
>       time = 1  // unlimited
>    variables:
>       float lon ( lon )
>          standard_name :    longitude
>          long_name :    longitude
>          units :    degrees_east
>          axis :    X
>
>       float lat ( lat )
>          standard_name :    latitude
>          long_name :    latitude
>          units :    degrees_north
>          axis :    Y
>
>       double time ( time )
>          standard_name :    time
>          units :    hours since 0-0-0 00:00:00
>          calendar :    proleptic_gregorian
>          axis :    T
>
>       float var1 ( time, lat, lon )
>          code :    1
>          _FillValue :    -9e+33
>          missing_value :    -9e+33
>
>
>
>
> regards
> kunal
>>  file2.nc
> <https://drive.google.com/file/d/1cbQoE4yMNFwXjjadO297GsM7Eabzbyn4/view?usp=drive_web>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171129/345f7e43/attachment.html>


More information about the ncl-talk mailing list