Solved

# how can i make plot values with this function part2

Posted on 2003-02-27
Medium Priority
155 Views
0
Question by:pearcedn
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 10
• 8

LVL 6

Expert Comment

ID: 8033184
ok ..

why is that so?
anyway, have u got anything back from ur tutor yet?

anyway, i have posted the update fla here...
not much has been done, i did the loop as mention for phi which goes from -pi (-180 degree) to pi (180 degree), there was some minor mistakes in ur original fla which returns the value twice etc ... etc ...

http://www.smartclever.net/example/flash/aurora/auroraLights3.zip

so .. have a look at that and see if u can add some more info to it.

cheers
0

Author Comment

ID: 8033401
there should be two sets of values returned, one set of 360 for the equatorward edge and one for poleward edge, this will make the overall oval
0

Author Comment

ID: 8033446
the poleward one is the inside of the oval the equatorward the outside
0

LVL 6

Expert Comment

ID: 8033762
yeah ... i hardcoded the 2 set of values from
2000-jan-01 0000-0300

and those values are in the plotValues function then i run plotValues() at startup, trace the output...

2 sets - and u can see from the trace - the values starts from -71.6922661980866 to -74.something ...

then what to do?
say if we want to convert the spherical to cartesian coordinates for the plot the "RHO" is missing.

i thing that's something to do with the "Holzworth and Meng" formula which will give the ovals geomagnetic coordinates. then again another eq to convert to geographic coordinates, am i right?

something is missing ... something ...
0

LVL 6

Expert Comment

ID: 8035137
any progress? ...
0

Author Comment

ID: 8035291
im a bit confused, it outputs 2 sets of 180 points, is that right?
0

Author Comment

ID: 8035390
no, what ami saying, 2 sets of 360 making a full circle for both, i need to play with it now to get rid of the hard coding so that it outputs different amounts, right?
couldnt see my tutor today, i will be seeing him tomorrow(busy man)
0

LVL 6

Accepted Solution

henryww earned 2000 total points
ID: 8035426
ok ...
u want me to remove those hardcode values, thingy for u ...?

i hard coded the vars there so i can check the results faster, anyway, if u see the output (trace).
no no .. it is 360 per set (the loop is from -180 to 180 degree). sorry for that

do u think we can make the plot from that?

ok ... i'll wait :)
0

Author Comment

ID: 8035517
yes please if u dont mind, it will take you 5 mins, me 2 hours!
i will be on twelvestones forum in a bit to see if they have any answers. i emailed that holzworth bumf last night for someone to have a look at. i will let u know what happens. if nothing does, then it will be my tutor tomorrow, thanks for all your help, your a very kind man
0

Author Comment

ID: 8035534
got a problem?
see this man
0

LVL 6

Expert Comment

ID: 8035826
wow ... again?

ha ha ha ... thanks for the compliment & the pts.. but i really want to solve the problem, cos we have done so much already ... u know...

thanks ...

ok ... same location for the updated file.
0

Author Comment

ID: 8035986
err, its the same:(
0

LVL 6

Expert Comment

ID: 8036037
what is the same ?
u mean the file?

ok ok .. i have just uploaded again ...

i removed the hardcoded vars and fixed the array problem ...

see the trace for the 2 sets of 360s :)

cheers
0

Author Comment

ID: 8036105
the file is the same still
i am clicking the right link right?
http://www.smartclever.net/example/flash/aurora/auroraLights3.zip
not sure whats wrong mate#:o(
give it a try and see what you get
0

Author Comment

ID: 8036178
thats it, gottit now, cheers
0

LVL 6

Expert Comment

ID: 8036290
that's ok mate ! :)

now u've got it...
0

Author Comment

ID: 8056422
hi henry,
you were right, it needs to go from goemag to geographic first (will get the equation thurs hopefully).then it will prob be another eq to put it to x,y coordinates, maybe somehing like this
ive been trying to comment the code i have, but am stuck on a couple of things
1. what does the dataSet = new XML() line do?
2. why -180 to 180, rather than 0 to 360?
0

LVL 6

Expert Comment

ID: 8056607
hi pearcedn,

1) this declares a new variable dataSet and make it into an xml object, so u can do search & stuff etc with the xml u get from the php file

2) -180 to 180 is the same as 0 - 360 ... he he he ... it is a cricle ... no i was justing following the convention as given ...

so, ... if u have found out what formula is need, let me know,...

cheers :)
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,â€¦
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are sâ€¦
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
###### Suggested Courses
Course of the Month15 days, 16 hours left to enroll