importing time series Log Out | Topics | Search
Moderators | Register | Edit Profile

FlexPDE User's Forum » User Postings » importing time series « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Fernando Buezas (fernandob)
Member
Username: fernandob

Post Number: 8
Registered: 02-2007
Posted on Wednesday, September 12, 2007 - 02:33 pm:   

Dear R Nelson:
I have knowledge that flexpde can import a function of the space variable through the command table.
How can import a function that depend of the space so much at of the time?
Top of pagePrevious messageNext messageBottom of page Link to this message

Robert G. Nelson (rgnelson)
Moderator
Username: rgnelson

Post Number: 951
Registered: 06-2003
Posted on Wednesday, September 12, 2007 - 06:58 pm:   

Any defined name or names can be used as the independent variable or variables in a table lookup.

The names declared in the table file are compared with all known names in the script. If a match is found, that name is used as the table coordinate.

To construct a table that depends on time, simply declare "t" as the coordinate in the table file. See "TABLE File Format" in the Help index.

You can also redefine the table coordinates in the calling script. See "TABLE Input Function" in the Help index ("Modifying Table Coordinates" section).
Top of pagePrevious messageNext messageBottom of page Link to this message

Fernando Buezas (fernandob)
Member
Username: fernandob

Post Number: 9
Registered: 02-2007
Posted on Thursday, September 13, 2007 - 10:43 am:   

Dear Nelson:
How can I export a result function of space and time and then importing in another flex model?
Top of pagePrevious messageNext messageBottom of page Link to this message

Robert G. Nelson (rgnelson)
Moderator
Username: rgnelson

Post Number: 952
Registered: 06-2003
Posted on Thursday, September 13, 2007 - 04:08 pm:   

There is no direct way to create a (space,time) table output, but you can do it with some manual modification of files.

PLOTS
for t=0 by 1 to 10
TABLE(f) file='test.txt' MERGE

This will create a single file 'test.txt' with multiple complete spatial blocks, each identified with a time value in the header comments.

You will need to assemble the time points into a new coordinate block at the beginning of the table, then delete all the headers after the first. The result will be a TABLE in the correct format with T as one of the table coordinates.

Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:

Topics | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration