Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
• Status: Solved
• Priority: Medium
• Security: Public
• Views: 157

how can i make plot values with this function part2

0
pearcedn
• 10
• 8
1 Solution

Commented:
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 Commented:
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 Commented:
the poleward one is the inside of the oval the equatorward the outside
0

Commented:
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

Commented:
any progress? ...
0

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

Author Commented:
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

Commented:
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 Commented:
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 Commented:
got a problem?
see this man
0

Commented:
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 Commented:
err, its the same:(
0

Commented:
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 Commented:
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 Commented:
thats it, gottit now, cheers
0

Commented:
that's ok mate ! :)

now u've got it...
0

Author Commented:
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

Commented:
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

• 10
• 8
Tackle projects and never again get stuck behind a technical roadblock.