nco,减少昏暗,netcdf

nco, reduce dim, netcdf

我有一个netcdf文件

dimensions:
        lsmlat = 1400 ;
        lsmlon = 2800 ;
        time = UNLIMITED ; // (1 currently)
        lsmpft = 1 ;
variables:
        double LATIXY(lsmlat, lsmlon) ;
                LATIXY:long_name = "latitude" ;
                LATIXY:units = "degrees north" ;
        double LONGXY(lsmlat, lsmlon) ;
                LONGXY:long_name = "longitude" ;
                LONGXY:units = "degrees east" ;

我希望变量为

double LATIXY(lsmlat) ;
            LATIXY:long_name = "latitude" ;
            LATIXY:units = "degrees north" ;
    double LONGXY(lsmlon) ;
            LONGXY:long_name = "longitude" ;
            LONGXY:units = "degrees east" ;

以便可以在 GIS 中读取该文件。 任何 nco 命令都值得赞赏。 谢谢

您的原始文件具有曲线网格结构,其中 lat 和 lon 数组都是二维的。您想要的网格是矩形的,其中纬度和经度都是一维的。通常,唯一的方法是重新网格化。 NCO 操作员 ncremap 重新网格化...