[yt-users] About using mapserver

Matthew Turk matthewturk at gmail.com
Fri Jul 25 11:53:59 PDT 2014


Hi Jia-Hung,

Oh, looks like I am wrong -- I am sorry.  Can you open an issue?  For
now, a projection might get you closer to the type of exploration
you're looking for, but I will look into adding a coordinate for the
slice.

On Fri, Jul 25, 2014 at 10:07 AM, 吳佳鴻 <r00222055 at ntu.edu.tw> wrote:
> Hi Matt,
>
> Thank you for the work on colorbar!  And you mean I can plot a slice with mapserver at a specific position, right?
> I typed:  yt mapserver -h
> ===================================================
> usage: yt mapserver [-h] [-p] [-f FIELD] [-g WEIGHT] [-a AXIS] [-o HOST]
>                     pf [pf ...]
>
> Serve a plot in a GMaps-style interface
>
> positional arguments:
>   pf                    Parameter files to run on
>
> optional arguments:
>   -h, --help            show this help message and exit
>   -p, --projection      Use a projection rather than a slice
>   -f FIELD, --field FIELD
>                         Field to color by
>   -g WEIGHT, --weight WEIGHT
>                         Field to weight projections with
>   -a AXIS, --axis AXIS  Axis (4 for all three)
>   -o HOST, --host HOST  IP Address to bind on
> ===========================================
>
> I'm not sure with which option I could give specific coordinates.
>
> Thanks again,
> Jia-Hung
> -----Original Message-----
> From: yt-users [mailto:yt-users-bounces at lists.spacepope.org] On Behalf Of Matthew Turk
> Sent: Friday, July 25, 2014 10:28 PM
> To: Discussion of the yt analysis package
> Subject: Re: [yt-users] About using mapserver
>
> Hi Jia-Hung,
>
> Glad it worked for you!
>
> Colorbars are somewhat tricky because they require global knowledge, but each tile is generated independently.  Ben Keller, Sam Skillman and Nathan Goldbaum were working on a widget for IPython that would provide something like htat.  For specific positions, you should be able to specify the coordinate of a slice, but it's not possible right now to do it more generally during the course of the exploration.
> --help should describe how to make projections, change coordinate of slice, etc etc.
>
> -Matt
>
> On Fri, Jul 25, 2014 at 3:46 AM, 吳佳鴻 <r00222055 at ntu.edu.tw> wrote:
>> Hi Matt,
>>
>> It works!!  This is pretty amazing that one can inspect his/her own data like Google map style!
>> I got some questions to ask about the mapserver options, The first
>> question is , it seems like one can only plot the domain-center slice along x/y/z axis, or projection.
>> Is there any way, I can give a specific position[a,b,c] to simulation box, not using domain-center? Like yt plot did.
>> And the second question is anyway to plot colorbar on it? If so, how should I do it?
>>
>> Many thanks,
>> Jia-Hung
>>
>> -----Original Message-----
>> From: yt-users [mailto:yt-users-bounces at lists.spacepope.org] On Behalf
>> Of Matthew Turk
>> Sent: Friday, July 25, 2014 7:47 AM
>> To: Discussion of the yt analysis package
>> Subject: Re: [yt-users] About using mapserver
>>
>> Hi Jia-Hung,
>>
>> My apologies that this is a bit confusing.  I think the easiest way to do it is to forward the 8080 port.  If your original SSH command was something like:
>>
>> ssh jiahung at some.remote.system.org
>>
>> what you would do is:
>>
>> ssh -L 8080:localhost:8080 jiahung at some.remote.system.org
>>
>> The part "-L 8080:localhost:8080" is verbatim, and will not need to be changing.  Once you then log in, and run the mapserver command, you can connect *locally* to http://127.0.0.1:8080/ and it should work.
>>
>> Let me know if that works!
>>
>> -Matt
>>
>> On Thu, Jul 24, 2014 at 1:01 PM, 吳佳鴻 <r00222055 at ntu.edu.tw> wrote:
>>> Hi Matt,
>>>
>>> Sorry, I tried several times but I still couldn't make it work.  I know it is due to lack of my Linux basic knowledge, could you teach me more please?
>>> First step I type: "yt mapserver Data/Data00", and it would be followed by the previous message we discussed.
>>> It means it is actually working successfully now.
>>> But what should I do following this step exactly?
>>> You said I need to forward the port, but I typed " ssh -L 8080:localhost:8080 myusername at myhost " It would only make me login to some computer.
>>> And here, I don't need to change the numbers "8080", I just change the username and host IP, is that right?
>>> I think I was doing it in the wrong way. The web address is http://127.0.0.1:8080/ ,right?  Can I use browser like Chrome to inspect the data map?
>>>
>>> Many thanks,
>>> Jia-hung
>>>
>>>
>>> -----Original Message-----
>>> From: yt-users [mailto:yt-users-bounces at lists.spacepope.org] On
>>> Behalf Of Matthew Turk
>>> Sent: Thursday, July 24, 2014 10:01 PM
>>> To: Discussion of the yt analysis package
>>> Subject: Re: [yt-users] About using mapserver
>>>
>>> Hi Jia-Hung,
>>>
>>> If you connect remotely, you have to forward the port.  One way to do
>>> this on the fly is to press enter a few times, then type
>>>
>>> ~C
>>>
>>> this will show a prompt like ssh>  .  At this prompt, type:
>>>
>>> -L 8080:localhost:8080
>>>
>>> You can also initiate your ssh connection with ssh -L
>>> 8080:localhost:8080 username at host
>>>
>>> -Matt
>>>
>>> On Thu, Jul 24, 2014 at 8:59 AM, 吳佳鴻 <r00222055 at ntu.edu.tw> wrote:
>>>> Hi Matt,
>>>>
>>>> I use SSH to connect to remote machine. Is there any step I missed?
>>>> The link (http://127.0.0.1:8080/) is correct, right?
>>>>
>>>> Jia-Hung
>>>>
>>>> -----Original Message-----
>>>> From: yt-users [mailto:yt-users-bounces at lists.spacepope.org] On
>>>> Behalf Of Matthew Turk
>>>> Sent: Thursday, July 24, 2014 9:46 PM
>>>> To: Discussion of the yt analysis package
>>>> Subject: Re: [yt-users] About using mapserver
>>>>
>>>> Hi Jia-Hung,
>>>>
>>>> This should definitely work (I just tested it) -- and the message
>>>> you're seeing isn't an error, it's desired behavior.  Are you
>>>> running locally, or on a remote machine?
>>>>
>>>> -Matt
>>>>
>>>> On Thu, Jul 24, 2014 at 8:36 AM, 吳佳鴻 <r00222055 at ntu.edu.tw> wrote:
>>>>> Hi All,
>>>>>
>>>>>
>>>>> I’m new to yt’s mapserver function.
>>>>> I’m trying this feature with a sample FLASH data which I got from
>>>>> data hub on my current yt (2.6 version).
>>>>> However, error message came out like the following.
>>>>> And when I used browser to connect to http://127.0.0.1:8080/, I got nothing.
>>>>>
>>>>> Is there anything that I did it in wrong way? Any suggestion is welcome.
>>>>> Thank you in advance.
>>>>>
>>>>>
>>>>> Many thanks,
>>>>> Jia-Hung Wu
>>>>> =======Error Message=============
>>>>>
>>>>> Bottle server starting up (using RocketServer())...
>>>>>
>>>>> Listening on http://127.0.0.1:8080/
>>>>>
>>>>> Use Ctrl-C to quit.
>>>>>
>>>>>
>>>>>
>>>>> Rocket.Errors.ThreadPool: [INFO     ] 2014-07-24 21:20:52,711 Starting
>>>>> Rocket 1.2.3
>>>>>
>>>>> Rocket.Errors.ThreadPool: [INFO     ] 2014-07-24 21:20:52,718 Listening on
>>>>> sockets: 127.0.0.1:8080
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> =====================
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> yt-users mailing list
>>>>> yt-users at lists.spacepope.org
>>>>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>>>>
>>>> _______________________________________________
>>>> yt-users mailing list
>>>> yt-users at lists.spacepope.org
>>>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>>> _______________________________________________
>>>> yt-users mailing list
>>>> yt-users at lists.spacepope.org
>>>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>> _______________________________________________
>>> yt-users mailing list
>>> yt-users at lists.spacepope.org
>>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>> _______________________________________________
>>> yt-users mailing list
>>> yt-users at lists.spacepope.org
>>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org



More information about the yt-users mailing list