NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Thanks Jon, that's exactly what I needed! --john On 03/23/2011 12:56 AM, Jon Blower wrote: > Hi John, > > You need a "positive" attribute on your vertical axis, e.g. "positive: up". > Vertical axes are recognised either by the presence of this attribute or by > units of pressure. > > HTH, > Jon > > -----Original Message----- > From: John.C.Cartwright@xxxxxxxx > Sent: 23/03/2011, 3:14 am > To: netcdf-java@xxxxxxxxxxxxxxxx > Subject: [netcdf-java] "no gridded fields in file" > > > Hello All, > > I'm sure that I'm overlooking something simple, but I'm not seeing why the > grid described > below is not recognized as a grid by NetCDF Tools (4.2). Can someone please > point out the > problem? > > Thanks! > > --john > > > netcdf pres_temp_4D { > dimensions: > lat = 6 ; > lon = 12 ; > elev = 2 ; > time = UNLIMITED ; // (2 currently) > variables: > double lon(lon) ; > lon:units = "degrees_east" ; > lon:standard_name = "longitude" ; > lon:long_name = "longitude" ; > float elev(elev) ; > elev:units = "meters" ; > double lat(lat) ; > lat:units = "degrees_north" ; > lat:long_name = "latitude" ; > lat:standard_name = "latitude" ; > float time(time) ; > time:units = "days since 1970-01-01 00:00:00" ; > float pressure(time, elev, lat, lon) ; > pressure:units = "hPa" ; > float temperature(time, elev, lat, lon) ; > temperature:units = "celsius" ; > > // global attributes: > :Conventions = "CF-1.0" ; > data: > > lon = -125, -120, -115, -110, -105, -100, -95, -90, -85, -80, -75, -70 ; > > elev = 100, 200 ; > > lat = 25, 30, 35, 40, 45, 50 ; > > time = 1, 2 ; > > pressure = > 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, > 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, > 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, > 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, > 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, > 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, > 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, > 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, > 996, 997, 998, 999, 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, > 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, > 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, > 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039, 1040, 1041, 1042, 1043, > 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, > 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, > 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, > 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, > 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, > 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, > 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, > 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, > 996, 997, 998, 999, 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, > 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, > 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, > 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039, 1040, 1041, 1042, 1043 ; > > temperature = > 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, > 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, > 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, > 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, > 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, > 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, > 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, > 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, > 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, > 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, > 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, > 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, > 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, > 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, > 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, > 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, > 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, > 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, > 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, > 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, > 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, > 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, > 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, > 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152 ; > } > > _______________________________________________ > netcdf-java mailing list > netcdf-java@xxxxxxxxxxxxxxxx > For list information or to unsubscribe, visit: > http://www.unidata.ucar.edu/mailing_lists/
netcdf-java
archives: