NCO:仅将一个netcdf文件中的数据复制到另一个netcdf文件中

时间:2018-05-21 19:28:32

标签: replace nco

我有两个NetCDF文件具有完全相同的尺寸(时间,纬度,经度)。下面是其中一个文件的标题。

netcdf file1 {
dimensions:
        lon = 360 ;
        lat = 177 ;
        time = 360 ;
variables:
        double lon(lon) ;
                lon:units = "degrees_east" ;
                lon:long_name = "Longitude" ;
        double lat(lat) ;
                lat:units = "degrees_north" ;
                lat:long_name = "Latitude" ;
        double time(time) ;
                time:long_name = "Time" ;
                time:units = "months since 1989-05-01 00:00" ;
        double tmp(time, lat, lon) ;
                tmp:_FillValue = -999000000. ;
}

我想将值从一个文件复制到另一个文件中,但仅限于由lat1,lat2和lon1,lon2确定的小区域。两个文件都具有相同的时间坐标。

类似于:(lon1<lon<=lon2) & (lat1<lat<=lat2) file1 = file2

我想知道我是否可以用NCO做到这一点。

任何帮助将不胜感激。感谢

1 个答案:

答案 0 :(得分:1)

阅读request, err := http.NewRequest(http.MethodPut, url, request.Body) import React, { Component } from 'react'; import {StyleSheet, Text, View} from 'react-native'; import {DrawerNavigator, StackNavigator, TabNavigator} from 'react-navigation' import Icon from 'react-native-vector-icons/FontAwesome'; import MyCustomers from "./mycustomers"; import ProductCatalogue from "./productcatalogue"; import Login from "./login"; import Home from "./home"; import Plain from "./plain"; const ProductCatalogueRoutes = StackNavigator({ ProductCatalogue: { screen: ProductCatalogue }, }) const MyCustomerRoutes = StackNavigator({ MyCustomers: { screen: MyCustomers }, }) const DrawerRoutes = DrawerNavigator({ Plain: { screen: Plain}, MyCustomers: {screen: MyCustomerRoutes}, ProductCatalogue: {screen:ProductCatalogueRoutes}, }) const HomeRoutes = StackNavigator({ Home: { screen: Home }, // DrawerRoutes: { screen: DrawerRoutes}, //if the drawer menu is part of the header }) const Tabs = TabNavigator({ Home: { screen: HomeRoutes }, MyCustomers: {screen: MyCustomerRoutes}, ProductCatalogue: {screen: ProductCatalogueRoutes}, Menu: {screen: DrawerRoutes} }, {order: [ 'Home', 'ProductCatalogue', 'MyCustomers' , 'Menu'], animationEnabled:true, } ); export const Stack = StackNavigator({ Login: {screen: Login}, TabNavigation: {screen: Tabs} }, {initialRouteName: 'Login', header: null, navigationOptions: { headerVisible: false, header: null, }, }); const styles = StyleSheet.create({ title: { color: '#ff5d00', fontSize: 15, textAlign: 'center', marginTop: 2, opacity: 0.9, } }); 功能的manual部分。它描述了如何在hyperslab上使用的位置。那样做:

ncap2