unidata

convert a netcdf time variable to an R date object

自作多情 提交于 2020-07-15 03:36:49
问题 I have a netcdf file with a timeseries and the time variable has the following typical metadata: double time(time) ; time:standard_name = "time" ; time:bounds = "time_bnds" ; time:units = "days since 1979-1-1 00:00:00" ; time:calendar = "standard" ; time:axis = "T" ; Inside R I want to convert the time into an R date object. I achieve this at the moment in a hardwired way by reading the units attribute and splitting the string and using the third entry as my origin (thus assuming the spacing

Unidata database export - how to add headings using TO DELIM

狂风中的少年 提交于 2019-12-22 12:37:10
问题 In Unidata, when dumping a query to a delimited file, e.g. list MYFILE '1000' ATB1 ATB2 ATB3 TO DELIM "|" /tmp/extract.txt Are there any UDT.OPTIONS that control if a heading row is written or not? The only workaround currently involves some really hokey BY.EXP action, and changing EVERY atb to be multivalued and return the heading:@VM:value if we're on the first row. That really, really, sucks. Looking for something similar to UDT.OPTIONS 91 which controls whether external formatting is

UniCommand differences for UniData

北战南征 提交于 2019-12-14 02:32:58
问题 I'm new to the world of UniObjects as I've been in .NET land since it debuted. After building a simple app to return the select list of a UniCommand statement I noticed that there are some major differences in how UniData and how UniObjects parses the UniCommand statments. From what I've found it looks like it is differences in the flavors of PICK used. What I'm asking is for other UniObjects programmers (UniVerse or UniData) that know of the differences or know of commands that can be

UniData Data Access Products for .NET

和自甴很熟 提交于 2019-12-12 09:45:01
问题 I am doing some research about how to access data in a UniData database from .NET code. From what I have found, I can use UniObjects for .NET and U2.NET. I have also found this information, which I think is possible by using U2.NET, but I'm not quite sure. I am also unsure as to the cost of these products, and if they are free, how to download them. Can anyone answer these questions and advise what the differences are between them? 回答1: UniObjects for .NET is free, and part of the UniData

How do you change the UniObjects.NET mode from using … to using [ and ]?

旧街凉风 提交于 2019-12-11 09:58:49
问题 How do you programmatically change the UniObjects.NET mode from using ... to using [ and ] when using the query command? 回答1: I believe this is driven by the flavour of the account to which you are connecting. You could change it programmatically by executing a TCL command to change the flavour via UniObjects. 来源: https://stackoverflow.com/questions/6632702/how-do-you-change-the-uniobjects-net-mode-from-using-to-using-and

UniObjects for Java: How to get response String when error occurred in UniCommand.exec()

心不动则不痛 提交于 2019-12-08 07:38:54
问题 I would like to be able to determine the exact reason that a UniCommand could not complete using UniObjects for Java in order to tell the user. I have the following code that behaves as expected under ideal conditions, but if command is not a valid command, uniCommand.response() returns an empty String . I would like to know exactly why the command could not execute. I tried to use uniCommand.getSystemReturnCode() , but it always returns -1 if the command did not complete successfully and

Unidata database export - how to add headings using TO DELIM

▼魔方 西西 提交于 2019-12-06 11:15:15
In Unidata, when dumping a query to a delimited file, e.g. list MYFILE '1000' ATB1 ATB2 ATB3 TO DELIM "|" /tmp/extract.txt Are there any UDT.OPTIONS that control if a heading row is written or not? The only workaround currently involves some really hokey BY.EXP action, and changing EVERY atb to be multivalued and return the heading:@VM:value if we're on the first row. That really, really, sucks. Looking for something similar to UDT.OPTIONS 91 which controls whether external formatting is applied using TO DELIM. Currently the output would be: 1000|100|200|300 And what I'm looking for is: @ID

Where to get UniObjects for .NET?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 10:19:20
问题 I hate IBM's site. It is extremely hard to find anything on there let alone try to find it twice! I'm looking for the UniObjects for .NET. I did find the below files and have installed them (can't find them now on IBM's website) however when I go to install the database add-ins for Visual Studio (v9.7) it says the IBM Data Server Provider for .Net isn't installed. I'm looking for someone to point me to links and steps to get the Add-Ins for Visual Studio installed and so that I can be able to

MySQL procedure to load data from staging table to other tables. Need to split up multivalue field in the process

偶尔善良 提交于 2019-11-28 06:10:31
问题 I'm trying to export data from a multivalue database (Unidata) into MySQL. Lets say my source data was a person's ID number, their first name and all the states they've lived in. The states field is a multi value field and I'm exporting them so that the different values within that field are seperated by a ~. A sample extract looks like: "1234","Sally","NY~NJ~CT" "1235","Dave","ME~MA~FL" "3245","Fred","UT~CA" "2344","Sue","OR" I've loaded this data into a staging table Table:staging Column 1: