Git Product home page Git Product logo

Comments (3)

0xCoto avatar 0xCoto commented on May 28, 2024

@kevinawilson Could you comment on this? I don't remember much from the meta implementation, but I don't fully understand this particular line of the commit.

Why was if vlsr changed to if vlsr or meta? Isn't that the cause of the error (considering the user did not provide a location)? @davewyers that's just an assumption, please confirm or deny whether the location was indeed not part of the observing parameters (obs_parameters=obs).

from virgo.

davewyers avatar davewyers commented on May 28, 2024

Hi @0xCoto

The Lat and Long are defined in the file then called in the obs object.

Define observation parameters

obs = {
    'dev_args': '',
    'rf_gain': 10,
    'if_gain': 0,
    'bb_gain': 0,
    'frequency': freq,
    'bandwidth': 2.4e6,
    'channels': 2048,
    't_sample': 1,
    'duration': 240,
    'loc': str(lat) + ' ' + str(lon) + ' ' + str(height),
    'ra_dec': str(RA) + ' '+ str(DEC),
    'az_alt': str(az) + ' ' + str(alt)
 }

gal_l, gal_b = virgo.galactic(RA,DEC)
print ('Galactic l = '+str(gal_l))
print ('Galactic b = '+str(gal_b))
virgo.simulate(gal_l, gal_b, beamwidth, -400, 400, prefix+'_simulate.png')

print ('Observe run start')
virgo.observe(obs_parameters=obs, obs_file=prefix+'_observation.dat')
print ('Observe run end')

from virgo.

prestoeatstacos avatar prestoeatstacos commented on May 28, 2024

I know this has been out there awhile but appears still an issue with recent, I've had success to change to recommended from EarthLocation changing to for geocentric; lon, lat, height for geodetic). Also note longitude is EAST only so 0 to 360

line 720 change order
original obs_location = EarthLocation.from_geodetic(loc[0], loc[1], loc[2])
change obs_location = EarthLocation.from_geodetic(loc[1], loc[0], loc[2])

line 624 added this global to remove error spam
added global mjd

line 145, 228 change order
original loc = EarthLocation(lat=latu.deg, lon=lonu.deg, height=heightu.m)
changed loc = EarthLocation(lon=lon
u.deg, lat=latu.deg, height=heightu.m)

example obs

Define observation parameters

obs = {
'rf_gain': 15,
'if_gain': 5,
'bb_gain': 5,
'dev_args': '',
'frequency': 1420e6,
'bandwidth': 2.4e6,
'channels': 2048,
't_sample': 1,
'duration': 120,
'loc': [32.62, 233.39, 300.00],
'ra_dec': '',
'az_alt': [180, 60],
'spectrometer': 'FTF',
'obs_file': 'firstob.dat6'
}

1

from virgo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.